From cf4c204df8c4b01b1745452492164deca82bfcca Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Mon, 20 Jun 2022 11:08:08 +0200 Subject: [PATCH 1/2] * doc/misc/eww.texi (Overview, Basics): Fix typos. --- doc/misc/eww.texi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/misc/eww.texi b/doc/misc/eww.texi index df1eb53c9d5..b3ec52f7ab8 100644 --- a/doc/misc/eww.texi +++ b/doc/misc/eww.texi @@ -69,7 +69,7 @@ Indices @chapter Overview @dfn{EWW}, the Emacs Web Wowser, is a web browser for GNU Emacs. It can load, parse, and display various web pages using @dfn{shr.el}. -However a GNU Emacs with @code{libxml2} support is required. +However, a GNU Emacs with @code{libxml2} support is required. @node Basics @chapter Basic Usage @@ -213,7 +213,7 @@ switch EWW buffers through a minibuffer prompt, press @kbd{s} @cindex External Browser Although EWW and shr.el do their best to render webpages in GNU Emacs some websites use features which can not be properly represented -or are not implemented (E.g., JavaScript). If you have trouble +or are not implemented (e.g., JavaScript). If you have trouble viewing a website with EWW then hit @kbd{&} (@code{eww-browse-with-external-browser}) inside the EWW buffer to open the website in the external browser specified by From 2eb738f2b8a3948b590ac7a6640f317a5cb12918 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 20 Jun 2022 19:04:06 +0300 Subject: [PATCH 2/2] Support builds configured with a separate --bindir * src/emacs.c (load_pdump): Don't overwrite the leading directories of the Emacs executable just because the pdumper file was not found in the expected directory relative to the binary. This is needed to support builds with a separate --bindir configure-time option and native-compilation. (Bug#55741) --- src/emacs.c | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/src/emacs.c b/src/emacs.c index ccc0dd269f4..0a90b0913be 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -940,20 +940,24 @@ load_pdump (int argc, char **argv) sprintf (dump_file, "%s%c%s%s", path_exec, DIRECTORY_SEP, argv0_base, suffix); #if !defined (NS_SELF_CONTAINED) - /* Assume the Emacs binary lives in a sibling directory as set up by - the default installation configuration. */ - const char *go_up = "../../../../bin/"; - needed += (strip_suffix ? strlen (strip_suffix) : 0) - - strlen (suffix) + strlen (go_up); - if (exec_bufsize < needed) + if (!(emacs_executable && *emacs_executable)) { - xfree (emacs_executable); - emacs_executable = xpalloc (NULL, &exec_bufsize, needed - exec_bufsize, - -1, 1); + /* If we didn't find the Emacs binary, assume that it lives in a + sibling directory as set up by the default installation + configuration. */ + const char *go_up = "../../../../bin/"; + needed += (strip_suffix ? strlen (strip_suffix) : 0) + - strlen (suffix) + strlen (go_up); + if (exec_bufsize < needed) + { + xfree (emacs_executable); + emacs_executable = xpalloc (NULL, &exec_bufsize, + needed - exec_bufsize, -1, 1); + } + sprintf (emacs_executable, "%s%c%s%s%s", + path_exec, DIRECTORY_SEP, go_up, argv0_base, + strip_suffix ? strip_suffix : ""); } - sprintf (emacs_executable, "%s%c%s%s%s", - path_exec, DIRECTORY_SEP, go_up, argv0_base, - strip_suffix ? strip_suffix : ""); #endif result = pdumper_load (dump_file, emacs_executable);