mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Merge from origin/emacs-28
f9ee83bfb9do_switch_frame: before leaving mini-window, check other (...908e2e09d0Fix commands used to produce on-line HTML docsfff770fb97Fix a bad cross-reference in elisp.pdfebea3415b0Fix documentation of 'string-pad'
This commit is contained in:
commit
6303cb7e9f
4 changed files with 28 additions and 11 deletions
|
|
@ -351,11 +351,13 @@ Optional argument TYPE is type of output (nil means all)."
|
|||
\"https://www.w3.org/TR/html4/loose.dtd\">\n\n")
|
||||
|
||||
(defconst manual-meta-string
|
||||
"<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||
<link rev=\"made\" href=\"mailto:bug-gnu-emacs@gnu.org\">
|
||||
"<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">\n")
|
||||
|
||||
(defconst manual-links-string
|
||||
"<link rev=\"made\" href=\"mailto:bug-gnu-emacs@gnu.org\">
|
||||
<link rel=\"icon\" type=\"image/png\" href=\"/graphics/gnu-head-mini.png\">
|
||||
<meta name=\"ICBM\" content=\"42.256233,-71.006581\">
|
||||
<meta name=\"DC.title\" content=\"gnu.org\">\n\n")
|
||||
<meta name=\"DC.title\" content=\"gnu.org\">\n")
|
||||
|
||||
(defconst manual-style-string "<style type=\"text/css\">
|
||||
@import url('/software/emacs/manual.css');\n</style>\n")
|
||||
|
|
@ -486,6 +488,12 @@ the @import directive."
|
|||
(delete-region opoint (point))
|
||||
(search-forward "<meta http-equiv=\"Content-Style")
|
||||
(setq opoint (match-beginning 0)))
|
||||
(search-forward "</title>\n")
|
||||
(delete-region opoint (point))
|
||||
(search-forward "<link href=")
|
||||
(goto-char (match-beginning 0))
|
||||
(insert manual-links-string)
|
||||
(setq opoint (point))
|
||||
(search-forward "</head>")
|
||||
(goto-char (match-beginning 0))
|
||||
(delete-region opoint (point))
|
||||
|
|
|
|||
|
|
@ -629,7 +629,10 @@ Attempts to match @var{pattern1}, @var{pattern2}, @dots{}, in order,
|
|||
until one of them succeeds. In that case, @code{or} likewise matches,
|
||||
and the rest of the sub-patterns are not tested.
|
||||
|
||||
To present a consistent environment (@pxref{Intro Eval})
|
||||
To present a consistent environment
|
||||
@ifnottex
|
||||
(@pxref{Intro Eval})
|
||||
@end ifnottex
|
||||
to @var{body-forms} (thus avoiding an evaluation error on match),
|
||||
the set of variables bound by the pattern is the union of the
|
||||
variables bound by each sub-pattern. If a variable is not bound by
|
||||
|
|
|
|||
|
|
@ -443,12 +443,12 @@ strings.
|
|||
@end defun
|
||||
|
||||
@defun string-pad string length &optional padding start
|
||||
Pad @var{string} to the be of @var{length} using @var{padding} as the
|
||||
padding character (defaulting to the space character). If
|
||||
@var{string} is shorter than @var{length}, no padding is done. If
|
||||
@var{start} is @code{nil} (or not present), the padding is done to the
|
||||
end of the string, and if it's non-@code{nil}, to the start of the
|
||||
string.
|
||||
Pad @var{string} to be of the given @var{length} using @var{padding}
|
||||
as the padding character. @var{padding} defaults to the space
|
||||
character. If @var{string} is longer than @var{length}, no padding is
|
||||
done. If @var{start} is @code{nil} or omitted, the padding is
|
||||
appended to the characters of @var{string}, and if it's
|
||||
non-@code{nil}, the padding is prepended to @var{string}'s characters.
|
||||
@end defun
|
||||
|
||||
@defun string-chop-newline string
|
||||
|
|
|
|||
|
|
@ -1576,8 +1576,14 @@ do_switch_frame (Lisp_Object frame, int track, int for_deletion, Lisp_Object nor
|
|||
to a different window, the most recently used one, unless there is a
|
||||
valid active minibuffer in the mini-window. */
|
||||
if (EQ (f->selected_window, f->minibuffer_window)
|
||||
/* The following test might fail if the mini-window contains a
|
||||
non-active minibuffer. */
|
||||
&& NILP (Fminibufferp (XWINDOW (f->minibuffer_window)->contents, Qt)))
|
||||
Fset_frame_selected_window (frame, call1 (Qget_mru_window, frame), Qnil);
|
||||
{
|
||||
Lisp_Object w = call1 (Qget_mru_window, frame);
|
||||
if (WINDOW_LIVE_P (w)) /* W can be nil in minibuffer-only frames. */
|
||||
Fset_frame_selected_window (frame, w, Qnil);
|
||||
}
|
||||
|
||||
Fselect_window (f->selected_window, norecord);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue