Skip to content

Commit 1903e99

Browse files
committed
Merge from origin/emacs-26
5ca093d (origin/emacs-26) Fix doc of 'display-buffer-in-previous-wind... add2cac lisp/*.el: Minor docstring fixes
2 parents e545d61 + 5ca093d commit 1903e99

File tree

4 files changed

+20
-14
lines changed

4 files changed

+20
-14
lines changed

doc/lispref/windows.texi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2598,6 +2598,9 @@ If @var{alist} has a @code{previous-window} entry and the window
25982598
specified by that entry is live and not dedicated to another buffer,
25992599
that window will be preferred, even if it never showed @var{buffer}
26002600
before.
2601+
2602+
This function will not choose the selected window if it finds another
2603+
eligible window that has shown @var{buffer} previously.
26012604
@end defun
26022605

26032606
@defun display-buffer-use-some-window buffer alist

lisp/subr.el

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5519,15 +5519,15 @@ This is the simplest safe way to acquire and release a mutex."
55195519
(defvar definition-prefixes (make-hash-table :test 'equal)
55205520
"Hash table mapping prefixes to the files in which they're used.
55215521
This can be used to automatically fetch not-yet-loaded definitions.
5522-
More specifically, if there is a value of the form (FILES...) for a string PREFIX
5523-
it means that the FILES define variables or functions with names that start
5524-
with PREFIX.
5522+
More specifically, if there is a value of the form (FILES...) for
5523+
a string PREFIX it means that the FILES define variables or functions
5524+
with names that start with PREFIX.
55255525

55265526
Note that it does not imply that all definitions starting with PREFIX can
55275527
be found in those files. E.g. if prefix is \"gnus-article-\" there might
5528-
still be definitions of the form \"gnus-article-toto-titi\" in other files, which would
5529-
presumably appear in this table under another prefix such as \"gnus-\"
5530-
or \"gnus-article-toto-\".")
5528+
still be definitions of the form \"gnus-article-toto-titi\" in other files,
5529+
which would presumably appear in this table under another prefix such as
5530+
\"gnus-\" or \"gnus-article-toto-\".")
55315531

55325532
(defun register-definition-prefixes (file prefixes)
55335533
"Register that FILE uses PREFIXES."

lisp/svg.el

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
(eval-when-compile (require 'subr-x))
3131

3232
(defun svg-create (width height &rest args)
33-
"Create a new, empty SVG image with dimensions WIDTHxHEIGHT.
33+
"Create a new, empty SVG image with dimensions WIDTH x HEIGHT.
3434
ARGS can be used to provide `stroke' and `stroke-width' parameters to
3535
any further elements added."
3636
(dom-node 'svg
@@ -42,8 +42,8 @@ any further elements added."
4242

4343
(defun svg-gradient (svg id type stops)
4444
"Add a gradient with ID to SVG.
45-
TYPE is `linear' or `radial'. STOPS is a list of percentage/color
46-
pairs."
45+
TYPE is `linear' or `radial'.
46+
STOPS is a list of percentage/color pairs."
4747
(svg--def
4848
svg
4949
(apply
@@ -66,9 +66,9 @@ pairs."
6666
"Create a rectangle on SVG, starting at position X/Y, of WIDTH/HEIGHT.
6767
ARGS is a plist of modifiers. Possible values are
6868
69-
:stroke-width PIXELS. The line width.
70-
:stroke-color COLOR. The line color.
71-
:gradient ID. The gradient ID to use."
69+
:stroke-width PIXELS The line width.
70+
:stroke-color COLOR The line color.
71+
:gradient ID The gradient ID to use."
7272
(svg--append
7373
svg
7474
(dom-node 'rect

lisp/window.el

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7783,8 +7783,11 @@ selected frame if `display-buffer-reuse-frames' and
77837783
terminal if either of those variables is non-nil.
77847784

77857785
If ALIST has a `previous-window' entry, the window specified by
7786-
that entry will override any other window found by the methods
7787-
above, even if that window never showed BUFFER before."
7786+
that entry may override any other window found by the methods
7787+
above, even if that window never showed BUFFER before.
7788+
7789+
Avoid using the selected window if another eligible window has
7790+
shown BUFFER before."
77887791
(let* ((alist-entry (assq 'reusable-frames alist))
77897792
(inhibit-same-window
77907793
(cdr (assq 'inhibit-same-window alist)))

0 commit comments

Comments
 (0)