aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2019-06-15 09:50:32 -0700
committerGlenn Morris2019-06-15 09:50:32 -0700
commit689e7c0070827033a0f9ef954eb006778acde0cf (patch)
treee6b21e7f07fa3ab326d1e0bb7ed75e3a04383a8c
parentca0b4edf1364fd8d894f91c6032634e49b797c26 (diff)
parentf53ce87b07cf845b14774ca24aef1e4285e54f78 (diff)
downloademacs-689e7c0070827033a0f9ef954eb006778acde0cf.tar.gz
emacs-689e7c0070827033a0f9ef954eb006778acde0cf.zip
Merge from origin/emacs-26
f53ce87 ; ChangeLog.3 update eca2677 Fix description of 'display-buffer-in-previous-window' again ... 7be50cd Consistently use @minus{} for negative arguments # Conflicts: # ChangeLog.3
-rw-r--r--ChangeLog.3877
-rw-r--r--doc/emacs/display.texi2
-rw-r--r--doc/emacs/killing.texi2
-rw-r--r--doc/emacs/mark.texi4
-rw-r--r--doc/emacs/programs.texi11
-rw-r--r--doc/lispref/display.texi2
-rw-r--r--doc/lispref/searching.texi4
-rw-r--r--doc/lispref/windows.texi50
-rw-r--r--doc/misc/gnus.texi2
-rw-r--r--lisp/window.el22
10 files changed, 942 insertions, 34 deletions
diff --git a/ChangeLog.3 b/ChangeLog.3
index fbaf8138528..c04940257fa 100644
--- a/ChangeLog.3
+++ b/ChangeLog.3
@@ -1,3 +1,878 @@
12019-06-15 Martin Rudalics <rudalics@gmx.at>
2
3 Fix description of 'display-buffer-in-previous-window' again (Bug#36161)
4
5 * lisp/window.el (display-buffer-in-previous-window): Make
6 doc-string more explicit (Bug#36161).
7 * doc/lispref/windows.texi (Buffer Display Action Functions):
8 Make description of 'display-buffer-in-previous-window' more
9 explicit.
10 (Buffer Display Action Alists): Mention
11 'display-buffer-in-previous-window' in description of
12 'reusable-frames' entry.
13
142019-06-15 Eli Zaretskii <eliz@gnu.org>
15
16 Consistently use @minus{} for negative arguments
17
18 * doc/emacs/mark.texi (Marking Objects):
19 * doc/misc/gnus.texi (Selecting a Group):
20 * doc/emacs/programs.texi (Comment Commands):
21 * doc/emacs/killing.texi (Deletion):
22 * doc/emacs/display.texi (Recentering):
23 * doc/lispref/display.texi (Face Attributes):
24 * doc/lispref/searching.texi (String Search, Regexp Search):
25 Make the markup of "-N" use @minus{} uniformly. (Bug#35885)
26
272019-06-15 Martin Rudalics <rudalics@gmx.at>
28
29 Fix doc of 'display-buffer-in-previous-window' (Bug#36161)
30
31 * doc/lispref/windows.texi (Buffer Display Action Functions):
32 * lisp/window.el (display-buffer-in-previous-window): Tell
33 that 'display-buffer-in-previous-window' prefers
34 non-selected windows (Bug#36161).
35
362019-06-15 Juanma Barranquero <lekktu@gmail.com>
37
38 lisp/*.el: Minor docstring fixes
39
40 * lisp/subr.el (definition-prefixes): Reflow docstring.
41
42 * lisp/svg.el (svg-create): Doc fix to allow arg higlighting.
43 (svg-gradient, svg-rectangle): Improve docstring formatting.
44
452019-06-15 Eli Zaretskii <eliz@gnu.org>
46
47 Avoid assertion violation when comparing with main-thread
48
49 * src/thread.c (unmark_main_thread): New function.
50 * src/lisp.h (unmark_main_thread): Prototype it.
51 * src/alloc.c (garbage_collect_1): Call it after sweeping.
52 (Bug#33073)
53
54 * test/src/thread-tests.el (threads-test-bug33073): New test.
55
562019-06-15 Andreas Schwab <schwab@linux-m68k.org>
57
58 Revert "Don't mark main_thread (Bug#36155)"
59
60 This reverts commit 1877b7b4d79b3434379fd5a4abd85906c25df00c.
61
622019-06-15 Andreas Schwab <schwab@linux-m68k.org>
63
64 Don't mark main_thread (Bug#36155)
65
66 * src/thread.c (mark_threads_callback): Don't mark main_thread.
67
682019-06-15 Eli Zaretskii <eliz@gnu.org>
69
70 More quotation fixes (Bug#35885)
71
72 * doc/emacs/text.texi (Quotation Marks): Fix a typo.
73 * doc/emacs/modes.texi (Minor Modes): Fix another case of
74 showing quotations.
75
762019-06-15 Eli Zaretskii <eliz@gnu.org>
77
78 Minor copyedits in efaq-w32
79
80 * doc/misc/efaq-w32.texi (Grep, Recursive grep): More accurate
81 description of using 'findstr' as a poor-man's replacement for
82 'grep'. Reported by 范凯 <m_pupil@163.com>
83
842019-06-15 Eli Zaretskii <eliz@gnu.org>
85
86 Tiny improvement of documentation of major mode conventions
87
88 * doc/lispref/modes.texi (Major Mode Conventions): More
89 accurate advice regarding customization of 'C-M-a' by major
90 modes.
91
922019-06-15 Juanma Barranquero <lekktu@gmail.com>
93
94 * nt/addpm.c (main): Fix buffer overflow
95
962019-06-15 Eli Zaretskii <eliz@gnu.org>
97
98 Resurrect display-line-number-mode in client frames
99
100 * lisp/linum.el (linum-on): Mention bug#35726 in a comment.
101 * lisp/display-line-numbers.el
102 (display-line-numbers--turn-on): Don't check for daemon.
103 (Bug#35726)
104
1052019-06-15 Eli Zaretskii <eliz@gnu.org>
106
107 * src/fns.c (Fmapconcat): Doc fix. (Bug#35710)
108
1092019-06-15 Phillip Lord <phillip.lord@russet.org.uk>
110
111 Fix typo
112
113 * nt/README.W32:
114
1152019-06-15 Eli Zaretskii <eliz@gnu.org>
116
117 * lisp/term/w32-win.el ([noname]): Bind to 'ignore'. (Bug#36083)
118
1192019-06-15 Eli Zaretskii <eliz@gnu.org>
120
121 Fix styling of Unicode codepoints in manuals
122
123 * doc/lispref/nonascii.texi (Character Properties):
124 * doc/lispref/display.texi (Glyphless Chars)
125 (Bidirectional Display):
126 * doc/emacs/search.texi (Lax Search):
127 * doc/emacs/text.texi (Quotation Marks):
128 * doc/emacs/basic.texi (Inserting Text): Canonicalize the
129 style of "U+NNNN CHARACTER NAME". (Bug#35885)
130
1312019-06-15 Eli Zaretskii <eliz@gnu.org>
132
133 Fix a few uses of quotes in user manual
134
135 * doc/emacs/text.texi (Quotation Marks):
136 * doc/emacs/display.texi (Text Display):
137 * doc/emacs/basic.texi (Inserting Text): Fix some more
138 quotes. (Bug#35885)
139
1402019-06-15 Eli Zaretskii <eliz@gnu.org>
141
142 More minor copyedits in the Emacs manual
143
144 * doc/emacs/basic.texi (Arguments):
145 * doc/emacs/display.texi (Recentering, Text Display):
146 * doc/emacs/regs.texi (Text Registers, Rectangle Registers):
147 * doc/emacs/mark.texi (Disabled Transient Mark): Fix
148 inaccuracies and typos. (Bug#35885)
149
1502019-06-15 Eli Zaretskii <eliz@gnu.org>
151
152 Fix minor issues in the Emacs manual
153
154 * doc/emacs/search.texi (Regexp Replace, Regexps):
155 * doc/emacs/kmacro.texi (Keyboard Macro Query)
156 (Save Keyboard Macro): Fix inaccuracies and typos.
157 (Bug#35885)
158
1592019-06-15 Martin Rudalics <rudalics@gmx.at>
160
161 Try to improve text on atomic windows in Elisp manual
162
163 * doc/lispref/windows.texi (Deleting Windows): Mention how
164 'delete-window' and 'delete-other-windows' handle atomic
165 windows. Minor rewrite.
166 (Quitting Windows): Mention how 'quit-restore-window' handles
167 atomic windows and that it tries to avoid raising an error.
168 (Atomic Windows): Tell how to dissolve atomic windows.
169
1702019-06-15 Noam Postavsky <npostavs@gmail.com>
171
172 Don't recommend insert-before-markers in process filters
173
174 See <https://lists.gnu.org/r/emacs-devel/2019-05/msg00062.html> and
175 Bug#35334.
176 * doc/lispref/processes.texi (Filter Functions): Go back to using
177 plain insert in the example filter. Add note about updating window
178 point.
179
1802019-06-15 Noam Postavsky <npostavs@gmail.com>
181
182 Disable byte-compile-cond-use-jump-table (Bug#35770)
183
184 * lisp/emacs-lisp/bytecomp.el (byte-compile-cond-use-jump-table): Set
185 to nil by default.
186
187 Don't merge to master, the bug is already fixed there.
188
1892019-06-15 Noam Postavsky <npostavs@gmail.com>
190
191 Allow macros autoloaded as functions during bytecomp (Bug#36022)
192
193 * lisp/emacs-lisp/bytecomp.el (byte-compile-callargs-warn): Don't pass
194 symbols which don't have a known definition to
195 byte-compile--function-signature, it fails to compile code which
196 previously compiled successfully (for example, gnus.el until
197 2019-06-01 "* lisp/gnus/gnus.el: Mark autoloaded macros as such" which
198 autoloads some macros as if they were functions).
199
2002019-06-15 Glenn Morris <rgm@gnu.org>
201
202 * lisp/gnus/gnus.el: Mark autoloaded macros as such.
203
204 This avoids a build failure.
205
2062019-06-15 Eli Zaretskii <eliz@gnu.org>
207
208 Speed up redisplay of HELLO
209
210 * etc/HELLO: Set 'inhibit-compacting-font-caches' non-nil
211 locally. (Bug#36032)
212
213 * lisp/files.el: Add 'inhibit-compacting-font-caches' to the
214 list of built-in variables for which we set up
215 'safe-local-variable' properties.
216
2172019-06-15 Eli Zaretskii <eliz@gnu.org>
218
219 Improve documentation of 'safe-local-variable' property
220
221 * doc/lispref/variables.texi (File Local Variables): Document
222 how to define 'safe-local-variable' properties for built-in
223 variables.
224
2252019-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
226
227 * lisp/emacs-lisp/package.el: Obey buffer-file-coding-system (bug#35739)
228
229 `url-insert-file-contents` saves in buffer-file-coding-system
230 the coding-system used to decode the contents. Preserve this
231 as the contents is moved from buffer to string to buffer, and use
232 it when saving the contents to file, so as to try and better preserve
233 the original byte sequence.
234
235 (package--buffer-string, package--cs): New functions.
236 (package--check-signature): Encode `string` if a coding-system
237 was specified in buffer-file-coding-system.
238 (package--download-one-archive, package-install-from-archive):
239 Obey and preserve the buffer-file-coding-system if specified.
240
241 Do not merge.
242
2432019-06-15 Noam Postavsky <npostavs@gmail.com>
244
245 Warn about wrong number of args for subrs (Bug#35767)
246
247 * lisp/emacs-lisp/bytecomp.el (byte-compile-callargs-warn): Don't
248 assume byte-compile-fdefinition will return non-nil.
249 * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-warn-wrong-args)
250 (bytecomp-warn-wrong-args-subr): New tests.
251
2522019-06-15 Noam Postavsky <npostavs@gmail.com>
253
254 Use plain symbols for eieio type descriptors (Bug#29220)
255
256 Since Emacs 26, eieio objects use a class record (with circular
257 references) as the type descriptor of the object record. This causes
258 problems when reading back an object from a string, because the class
259 record is not `eq' to the canonical one (which means that read objects
260 don't satisfy the foo-p predicate).
261 * lisp/emacs-lisp/eieio.el (make-instance): As a (partial) fix, set
262 the record's type descriptor to a plain symbol for the type descriptor
263 when eieio-backward-compatibility is non-nil (the default).
264 * lisp/emacs-lisp/eieio-core.el (eieio--object-class): Call
265 eieio--class-object on the type tag when eieio-backward-compatibility
266 is non-nil.
267 (eieio-object-p): Use eieio--object-class instead of
268 eieio--object-class-tag.
269 * test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el
270 (eieio-test-persist-hash-and-vector)
271 (eieio-test-persist-interior-lists): Make into functions.
272 (eieio-persist-hash-and-vector-backward-compatibility)
273 (eieio-persist-hash-and-vector-no-backward-compatibility)
274 (eieio-test-persist-interior-lists-backward-compatibility)
275 (eieio-test-persist-interior-lists-no-backward-compatibility): New
276 tests which call them, eieio-backward-compatibility let-bound.
277
2782019-06-15 Paul Eggert <eggert@cs.ucla.edu>
279
280 Pacify GCC 9 -Wredundant-decls
281
282 * src/gmalloc.c (_fraghead) [!HYBRID_MALLOC]:
283 Make it static in this case, too. This avoids having both
284 ‘extern struct list _fraghead[];’ and
285 ‘static struct list _fraghead[BLOCKLOG];’, which
286 GCC 9 complains about.
287
2882019-06-15 Paul Eggert <eggert@cs.ucla.edu>
289
290 Pacify librsvg 2.45.1 and later
291
292 * src/image.c (svg_load_image): Pacify librsvg 2.45.1 and later,
293 and add a FIXME comment about the deprecated librsvg functions.
294 Backport from master.
295
2962019-06-15 Paul Eggert <eggert@cs.ucla.edu>
297
298 Simplify xd_signature to pacify GCC 9
299
300 * src/dbusbind.c (xd_signature): Use simpler way to set up
301 the subsignature. This also pacifies GCC 9 on Fedora 30 x86-64.
302 Backport from master.
303
3042019-06-15 Paul Eggert <eggert@cs.ucla.edu>
305
306 Pacify GCC when compiling unexelf.c on Fedora 30
307
308 * src/unexelf.c (unexec): Pacify GCC 9.
309
3102019-06-15 Paul Eggert <eggert@cs.ucla.edu>
311
312 Suppress GCC 9 “no longer supported” messages
313
314 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wchkp.
315 This suppresses a boatload of warnings of the form
316 “gcc: warning: switch ‘-Wchkp’ is no longer supported”.
317 when using GCC 9. Do not merge to master.
318
3192019-06-15 Stefan Kangas <stefankangas@gmail.com>
320
321 Fix docstring of bookmark-get-bookmark
322
323 * lisp/bookmark.el (bookmark-get-bookmark): Document optional
324 argument NOERROR. (bug#20148)
325
3262019-06-15 Noam Postavsky <npostavs@gmail.com>
327
328 Avoid infloop in read-multiple-choice (Bug#32257)
329
330 * lisp/emacs-lisp/rmc.el (read-multiple-choice): When `read-char'
331 signals an error "Non-character input-event", call `read-event' to
332 take the non-character event out of the queue. Don't merge to master,
333 we just use `read-event' directly there, rather than this solution
334 which relies a particular error message.
335
3362019-06-15 Eli Zaretskii <eliz@gnu.org>
337
338 Improve documentation of decoding into a unibyte buffer
339
340 * doc/lispref/nonascii.texi (Explicit Encoding): Document what
341 happens when DESTINATION of decoding is a unibyte buffer.
342
343 * src/coding.c (Fdecode_coding_region)
344 (Fdecode_coding_string): Document what happens if DESTINATION
345 is a unibyte buffer.
346
3472019-06-15 Mauro Aranda <maurooaranda@gmail.com>
348
349 Remove redundants "See" before @xref or @pxref (Bug#35793)
350
351 * doc/lispref/control.texi (Control Structures):
352 * doc/lispref/modes.texi (Search-based Fontification):
353 * doc/misc/cc-mode.texi (Filling and Line Breaking Commands)
354 (Auto-newline Insertion, Other Special Indentations):
355 * doc/misc/dbus.texi (Errors and Events):
356 * doc/misc/dired-x.texi (Find File At Point):
357 * doc/misc/eudc.texi (Display of Query Results, Inline Query Expansion):
358 * doc/misc/gnus-faq.texi (FAQ 3-11):
359 * doc/misc/gnus.texi (Group Parameters, Posting Styles)
360 (Spam Package Introduction):
361 * doc/misc/org.texi (LaTeX fragments, Previewing LaTeX fragments):
362 * doc/misc/reftex.texi (Commands):
363 Remove redundant "See" before cross references.
364 * doc/lispref/functions.texi (Function Safety): Redundant "see" is in
365 ignored text, but remove it anyway.
366 * doc/lispref/positions.texi (Skipping Characters): Remove redundant
367 "See" before cross references. Change @xref to @pxref, which is
368 more suitable when at the end of a sentence.
369
370 Most of the redundants "See" found by Noam Postavsky.
371
3722019-06-15 Dario Gjorgjevski <dario.gjorgjevski@gmail.com>
373
374 Fix customization type of recentf-max-saved-items
375
376 Change the customization type of recentf-max-saved-items to include
377 nil, as it is an allowed value (Bug#35771).
378 * lisp/recentf.el (recentf-max-saved-items): Change the customization
379 type in the defcustom.
380
3812019-06-15 Tom Levy <tomlevy93@gmail.com> (tiny change)
382
383 Fix a typo in ELisp manual
384
385 * doc/lispref/sequences.texi (Sequence Functions): Fix a typo.
386 (Bug#35817)
387
3882019-06-15 Noam Postavsky <npostavs@gmail.com>
389
390 Add option to disable help completion autoloading (Bug#28607)
391
392 * lisp/help-fns.el (help-enable-completion-auto-load): New option.
393 (help--symbol-completion-table): Consult it.
394 * doc/emacs/building.texi (Lisp Libraries): Document it.
395 * etc/NEWS: Announce it.
396 * doc/lispref/loading.texi (Autoload by Prefix): New section.
397 (Autoload): Reference it.
398
3992019-06-15 Noam Postavsky <npostavs@gmail.com>
400
401 Don't segfault on force-window-update of deleted window
402
403 * src/window.c (Fforce_window_update): Do nothing for deleted
404 windows (Bug#35784).
405
4062019-06-15 Mauro Aranda <maurooaranda@gmail.com>
407
408 Fix typo in ELisp manual
409
410 * doc/lispref/variables.texi (Directory Local Variables): Fix typo in
411 dir-locals-set-class-variables description. (Bug#35799)
412
4132019-06-15 Mauro Aranda <maurooaranda@gmail.com>
414
415 Remove repeated function call in picture.el
416
417 * lisp/textmodes/picture.el (picture-mode-map): Remove repeated
418 define-key call. (Bug#35772)
419
4202019-06-15 Basil L. Contovounesios <contovob@tcd.ie>
421
422 Fix Hideshow key binding typo in Emacs manual
423
424 * doc/emacs/programs.texi (Hideshow): Add missing function and key
425 index entries. Fix hs-toggle-hiding binding typo. (bug#35798)
426
4272019-06-15 Eric Abrahamsen <eric@ericabrahamsen.net>
428
429 Backport: Fix name of gnus-summary-sort-by-mark(s)
430
431 * lisp/gnus/gnus-sum.el (gnus-summary-sort-by-marks): Needs the
432 "s", according to docs and keymap both. (bug#35765)
433
434 (cherry picked from commit 13248f7444630508cfc3b78a07e8d96613af11c8)
435
4362019-06-15 Eli Zaretskii <eliz@gnu.org>
437
438 Remove from docs references to obsolete MULE variables
439
440 * src/search.c (search_buffer): Remove obsolete text from a
441 comment.
442 * src/fns.c (Fstring_make_unibyte): Remove obsolete text from
443 a doc string.
444
4452019-06-15 Konstantin Kharlamov <Hi-Angel@yandex.ru>
446
447 Do potentially destructive operations in prepare-commit-msg
448
449 * build-aux/git-hooks/prepare-commit-msg: If someone occasionally puts
450 Signed-off line, it will likely get there through -s option of git.
451 Exploit this fact to abort before a user got a chance to type commit
452 message. (Bug#35368)
453
4542019-06-15 Paul Eggert <eggert@cs.ucla.edu>
455
456 Backport: fix broken build on m68k
457
458 The GCC + valgrind fix caused the m68k build to fail (Bug#35711).
459 Simplify string allocation a bit to make similar problems less
460 likely in the future.
461 * src/alloc.c (sdata, SDATA_NBYTES, SDATA_DATA) [GC_CHECK_STRING_BYTES]:
462 Use the same implementation as with !GC_CHECK_STRING_BYTES,
463 as the special case is no longer needed.
464 (SDATA_ALIGN): New constant.
465 (SDATA_SIZE): Remove this macro, replacing with ...
466 (sdata_size): ... this new function. All uses changed.
467 Properly account for sizes and alignments even in the m68k case,
468 and even if GC_CHECK_STRING_BYTES is not defined.
469
4702019-06-15 Noam Postavsky <npostavs@gmail.com>
471
472 Handle GNUTLS_E_AGAIN in emacs_gnutls_read (Bug#34341)
473
474 Don't merge to master, this has already been fixed there by 2019-01-15
475 "Fix unlikely races with GnuTLS, datagrams".
476 * src/gnutls.c (emacs_gnutls_read): Similar to emacs_gnutls_write,
477 when gnutls_record_recv returns GNUTLS_E_AGAIN set errno to EGAIN.
478
4792019-06-15 Neil Roberts <bpeeluk@yahoo.co.uk>
480
481 Let dir locals for more specific modes override those from less
482
483 The list of dir local variables to apply is now sorted by the number
484 of parent modes of the mode used as the key in the association list.
485 That way when the variables are applied in order the variables from
486 more specific modes will override those from less specific modes.
487
488 If there are directory entries in the list then they are sorted in
489 order of name length. The list of modes for that dir is then
490 recursively sorted with the same mechanism. That way variables tied
491 to a particular subdirectory override those in in a parent directory.
492
493 Previously the behaviour didn’t seem to be well defined anyway and was
494 dependent on the order they appeared in the file. However this order
495 was changed in version 26.1 and it probably also depended on the
496 number of dir-local files that are merged.
497
498 Bug#33400
499
500 * lisp/files.el (dir-locals-get-sort-score, dir-locals-sort-variables)
501 (dir-locals-read-from-dir): Sort the dir locals so that more precise
502 modes and directory-specific entries have override lesser ones.
503 * doc/emacs/custom.texi (Directory Variables): Document the priority.
504
5052019-06-15 Eli Zaretskii <eliz@gnu.org>
506
507 Improve documentation of Hexl mode
508
509 * doc/emacs/misc.texi (Editing Binary Files): Clarify
510 "insertion". Improve wording. Add a few Hexl commands.
511 (Bug#35580)
512
5132019-06-15 Alan Mackenzie <acm@muc.de>
514
515 Fix description of (move-to-column <n> t) when column <n> is inside a tab
516
517 This fixes bug #35647. State that when indent-tabs-mode is non-nil, spaces
518 are inserted before the tab rather than the tab being replaced by spaces.
519
520 * doc/lispref/text.texi (columns)
521 * src/indent.c (move-to-column): Make the above documentation amendment.
522
5232019-06-15 Noam Postavsky <npostavs@gmail.com>
524
525 Recognize single quote attribute values in nxml and sgml (Bug#35381)
526
527 * lisp/textmodes/sgml-mode.el (sgml-specials): Add single quote.
528 (sgml-syntax-propertize-rules): Handle single quote.
529 * test/lisp/nxml/nxml-mode-tests.el (nxml-mode-font-lock-quotes): New
530 test.
531 * test/lisp/textmodes/sgml-mode-tests.el
532 (sgml-delete-tag-bug-8203-should-not-delete-apostrophe): Now passes.
533
5342019-06-15 Noam Postavsky <npostavs@gmail.com>
535
536 Disable extra display of &#10; in nxml-mode (Bug#32897)
537
538 * lisp/nxml/nxml-mode.el (nxml-char-ref-display-extra): Don't put
539 display for the newline, it makes the indentation look wrong.
540
5412019-06-15 Noam Postavsky <npostavs@gmail.com>
542
543 Fix nxml-get-inside (Bug#32003)
544
545 The change from 2016-01-16 "lisp/nxml: Use syntax-tables for comments"
546 made nxml-get-inside return non-nil for any string or comment,
547 including attribute strings. This caused incorrect and therefore
548 indentation.
549 * lisp/nxml/nxml-rap.el: Update commentary to reflect changes to
550 nxml-mode parsing.
551 (nxml-get-inside): Only return non-nil when inside comments and
552 generic strings, not normal quote-delimited strings.
553 * test/lisp/nxml/nxml-mode-tests.el: New tests.
554
5552019-06-15 Eli Zaretskii <eliz@gnu.org>
556
557 Fix positioning client buffer as instructed by emacsclient
558
559 * lisp/server.el (server-switch-buffer): Let-bind
560 switch-to-buffer-preserve-window-point to nil when switching
561 to the client buffer, when the client requested a specific
562 position. (Bug#35602)
563
5642019-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
565
566 * etc/package-keyring.gpg: Add the 2019 key (backport)
567
5682019-06-15 Vitalie Spinu <spinuvit@gmail.com>
569
570 Fix incorrect cloning of eieio-instance-inheritor objects (Bug#34840)
571
572 * lisp/emacs-lisp/eieio-base.el (clone): Unbound slots of
573 eieio-instance-inheritor objects as documented in the docs string
574 and implemented in the original eieio implementation.
575
5762019-06-15 Vitalie Spinu <spinuvit@gmail.com>
577
578 Fix cloning of eieio-named objects (Bug#22840)
579
580 * lisp/emacs-lisp/eieio-base.el (clone): Correctly set the name of the
581 cloned objects from eieio-named instances.
582
5832019-06-15 Basil L. Contovounesios <contovob@tcd.ie>
584
585 Fix ibuffer-unmark-backward synopsis (bug#35572)
586
587 * lisp/ibuffer.el (ibuffer-mode): Fix synopsis of
588 ibuffer-unmark-backward along with other minor copy-edits.
589
5902019-06-15 Noam Postavsky <npostavs@gmail.com>
591
592 Clarify handling of long options (Bug#24949)
593
594 * doc/emacs/cmdargs.texi (Emacs Invocation): Note that space can be
595 used instead of "=" only if an option requires an argument.
596
5972019-06-15 Eli Zaretskii <eliz@gnu.org>
598
599 Improve documentation of the daemon and emacsclient
600
601 * doc/emacs/misc.texi (emacsclient Options):
602 * doc/emacs/cmdargs.texi (Initial Options): Document that
603 using --daemon=NAME will need to specify the same NAME when
604 invoking 'emacscilent'. (Bug#35547)
605
6062019-06-15 Noam Postavsky <npostavs@gmail.com>
607
608 * etc/NEWS.24: Belatedly announce delete-consecutive-dups.
609
6102019-06-15 Glenn Morris <rgm@gnu.org>
611
612 * admin/update_autogen: Handle git worktree.
613
6142019-06-15 Noam Postavsky <npostavs@gmail.com>
615
616 Update process filter example (Bug#35044)
617
618 * doc/lispref/processes.texi (Filter Functions): Use
619 insert-before-markers in the "ordinary" filter example, like
620 internal-default-process-filter does.
621
6222019-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
623
624 * src/macfont.m (macfont_shape): Use convenient LGLYPH_NEW.
625
6262019-06-15 Noam Postavsky <npostavs@gmail.com>
627
628 Recommend using font-lock-face over face (Bug#35044)
629
630 * doc/lispref/modes.texi (Precalculated Fontification): Explain
631 advantages of using font-lock-face over face.
632
6332019-06-15 Noam Postavsky <npostavs@gmail.com>
634
635 Check if mouse_face_overlay was deleted (Bug#35273)
636
637 * src/xdisp.c (note_mouse_highlight): Check if the mouse_face_overlay
638 actually points to a buffer, before calling
639 mouse_face_overlay_overlaps on it.
640
6412019-06-15 Paul Eggert <eggert@cs.ucla.edu>
642
643 Port to platforms where tputs is in libtinfow
644
645 * configure.ac (tputs_library): Also try tinfow, ncursesw (Bug#33977).
646
647 (cherry picked from commit a3d52b3057c98bce581bc94912ef3ced6fad6f14)
648
6492019-06-15 Glenn Morris <rgm@gnu.org>
650
651 * admin/admin.el (set-version): Check for increase in version length,
652 rather than a .50 version.
653
6542019-06-15 Noam Postavsky <npostavs@gmail.com>
655
656 Be more careful about indent-sexp going over eol (Bug#35286)
657
658 * lisp/emacs-lisp/lisp-mode.el (indent-sexp): Only go over multiple
659 sexps if the end of line is within a sexp.
660 * test/lisp/emacs-lisp/lisp-mode-tests.el
661 (indent-sexp-stop-before-eol-comment)
662 (indent-sexp-stop-before-eol-non-lisp): New tests.
663
6642019-06-15 Basil L. Contovounesios <contovob@tcd.ie>
665
666 Backport: Improve pure and side-effect-free docs
667
668 For discussion, see thread starting at:
669 https://lists.gnu.org/archive/html/emacs-devel/2019-04/msg00316.html
670 * doc/lispref/customize.texi (Composite Types): Do not overspecify
671 :match-alternatives predicates.
672 * doc/lispref/eval.texi (Intro Eval): Anchor definition of "side
673 effect" for cross-referencing...
674 * doc/lispref/functions.texi (What Is a Function): ...from here.
675 Define what a pure function is.
676 * doc/lispref/internals.texi (Writing Emacs Primitives): Describe
677 currently preferred approach to marking primitives as pure and
678 side-effect-free.
679 * doc/lispref/symbols.texi (Standard Properties): Expand description
680 of pure and side-effect-free properties.
681
682 (cherry picked from commit 4430a9b54fca266e48d0eb8b72d83706910f10b8)
683
6842019-06-15 Basil L. Contovounesios <contovob@tcd.ie>
685
686 Backport: Avoid using obsolete indent-relative-maybe
687
688 * lisp/electric.el (electric-indent-functions-without-reindent):
689 * lisp/indent.el (indent-according-to-mode): Check for
690 indent-relative-first-indent-point in addition to its obsolete alias
691 indent-relative-maybe.
692 * lisp/obsolete/vi.el (vi-com-map): Use
693 indent-relative-first-indent-point in place of its obsolete alias
694 indent-relative-maybe.
695
696 (cherry picked from commit 0e468a620458fecd003c396050aa6deb722982c1)
697
6982019-06-15 Mauro Aranda <maurooaranda@gmail.com>
699
700 Avoid false positives and false negatives of Info-quoted face
701
702 * lisp/info.el (Info-mode-font-lock-keywords): Modify the regexp, for
703 matching single quotes of opening single quote and closing single
704 quote, and avoid matching text followed by a curly quote when it is
705 not quoting. (Bug#35202)
706
7072019-06-15 Eli Zaretskii <eliz@gnu.org>
708
709 Fix markup related to quoting in Info
710
711 * doc/misc/sc.texi (Citations): Fix markup of '>'.
712 * doc/misc/mh-e.texi (Speedbar): Fix markup in a @table.
713 * doc/misc/calc.texi (Yacas Language Mode): Fix a typo.
714 * doc/emacs/mark.texi (Setting Mark): Remove duplicate
715 quoting. (Bug#35202)
716
7172019-06-15 Noam Postavsky <npostavs@gmail.com>
718
719 Use pkg-config to find lcms2 CFLAGS and LIBS (Bug#30346)
720
721 * configure.ac: Use EMACS_CHECK_MODULES fors LCMS2 rather than
722 AC_SEARCH_LIBS.
723 * src/Makefile.in: Get LCMS2_LIBS and LCMS2_CFLAGS from configure,
724 instead of just LIBLCMS2.
725
726 (cherry picked from commit cb3863370cbe574810f796726faa39ba0de0a429)
727
7282019-06-15 Glenn Morris <rgm@gnu.org>
729
730 Add a package: line to c-submit-bug-report.
731
732 * lisp/progmodes/cc-mode.el (c-submit-bug-report):
733 Add a Package: line for mail clients that do not support X- headers.
734
7352019-06-15 Glenn Morris <rgm@gnu.org>
736
737 * admin/admin.el (set-version): Add NEWS headers for a .50 version.
738
7392019-06-15 Eli Zaretskii <eliz@gnu.org>
740
741 Backport doc improvement in ELisp manual
742
743 * doc/lispref/processes.texi (Accepting Output): Backport:
744 document how do avoid race conditions while waiting for all of
745 the process's output to arrive.
746
7472019-06-15 Noam Postavsky <npostavs@gmail.com>
748
749 Document insert-image-file's return value (Bug#32978)
750
751 * lisp/image-file.el (insert-image-file): Document return value.
752
7532019-06-15 Braun Gábor <braungb88@gmail.com> (tiny change)
754
755 Autoload cua-toggle-rectangle-mark (Bug#34947)
756
757 * lisp/emulation/cua-base.el (cua-toggle-rectangle-mark): Autoload it.
758 Library cua-base.el binds cua-toggle-rectangle-mark to a key in the
759 :set function in (defcustom cua-rectangle-mark-key ...), so it should
760 ensure that the command is defined.
761
7622019-06-15 Noam Postavsky <npostavs@gmail.com>
763
764 Tell xclip not to expect job-control under eshell (Bug#35257)
765
766 * lisp/eshell/esh-proc.el (eshell-needs-pipe): Add "xclip" and other
767 programs that xclip.el (in GNU ELPA) calls with
768 `process-connection-type' bound to nil.
769
7702019-06-15 Basil L. Contovounesios <contovob@tcd.ie>
771
772 Fix off-by-one-link error in image--set-property
773
774 * lisp/image.el (image--set-property): Ensure new value is set even
775 in the unlikely case that the plist is empty. Fix off-by-one-link
776 error when deleting a property. (bug#35285)
777 * test/lisp/image-tests.el: New file.
778 (image--set-property): New test.
779
7802019-06-15 Glenn Morris <rgm@gnu.org>
781
782 * admin/admin.el (make-manuals-dist--1):
783 Update for incompatible copy-file change re "directories".
784
7852019-06-15 Robert Pluim <rpluim@gmail.com>
786
787 Document some compilation-mode faces
788
789 * doc/emacs/building.texi (Compilation Mode): Describe faces
790 available to affect appearance of compilation-mode buffers.
791
7922019-06-15 Eli Zaretskii <eliz@gnu.org>
793
794 Mention the assignment form in "Copyright Assignment"
795
796 * doc/emacs/trouble.texi (Copyright Assignment): Mention the
797 copyright assignment form explicitly. Suggested by Konstantin
798 Kharlamov <hi-angel@yandex.ru>.
799
8002019-06-15 Eli Zaretskii <eliz@gnu.org>
801
802 Fix confusing wording in the user manual
803
804 * doc/emacs/maintaining.texi (VC Undo): Remove a potentially
805 inaccurate, outdated, and/or confusing sentence. (Bug#35290)
806
8072019-06-15 Eli Zaretskii <eliz@gnu.org>
808
809 Fix the MSDOS build when running under CWSDPMI
810
811 * src/msdos.c (the_only_tty_output): Define.
812 * src/msdos.h (the_only_tty_output): Declare.
813 * src/frame.c (make_terminal_frame) [MSDOS]:
814 * src/dispnew.c (init_display) [MSDOS]: Set up
815 f->output_data.tty pointer using the_only_tty_output, before
816 dereferencing the pointer. This prevents crashes with DPMI
817 servers that provide NULL pointer protection.
818
8192019-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
820
821 * lisp/progmodes/python.el: Be more careful about temp file removal
822
823 (python-shell-prompt-detect): Use unwind-protect to try and not leave
824 file behind in case of error.
825
8262019-06-15 Alexander Gramiak <agrambot@gmail.com>
827
828 Backport: Plug memory leak in GTK x-display-monitor-attributes-list
829
830 * src/frame.c (free_monitors) [USE_GTK]: Define in the GTK case as
831 well.
832
833 * src/xfns.c (x-display-monitor-attributes-list) [USE_GTK]: Plug
834 memory leak. Use dupstring over xstrdup as gdk_monitor_get_model may
835 return NULL.
836
8372019-06-15 Alexander Gramiak <agrambot@gmail.com>
838
839 Backport: * lisp/frame.el (frame--size-history): Fix infloop. (Bug#35272)
840
8412019-06-15 Robert Pluim <rpluim@gmail.com>
842
843 Downcase charset
844
845 RFC 2046 specifies that the charset parameter is case-insensitive.
846
847 * lisp/gnus/gnus-icalendar.el (gnus-icalendar-with-decoded-handle):
848 Downcase charset. Suggested by Christophe TROESTLER
849 <Christophe.TROESTLER@umons.ac.be>. (Bug#35265).
850
8512019-06-15 Phillip Lord <phillip.lord@russet.org.uk>
852
853 Update for Emacs-26
854
855 * nt/README.W32: Update details about packaging which changed for
856 Emacs-26.
857
8582019-06-15 Eli Zaretskii <eliz@gnu.org>
859
860 * doc/lispref/display.texi (Showing Images): Fix a typo. (Bug#35240
861
8622019-06-15 Nicolas Petton <nicolas@petton.fr>
863
864 Bump Emacs version to 26.2
865
866 * README:
867 * configure.ac:
868 * msdos/sed2v2.inp:
869 * nt/README.W32: Bump Emacs version to 26.2.
870
8712019-06-15 Nicolas Petton <nicolas@petton.fr>
872
873 * etc/HISTORY: Update for Emacs 26.2 release.
874
875 * etc/AUTHORS: Update.
12019-05-25 Eric S. Raymond <esr@thyrsus.com> 8762019-05-25 Eric S. Raymond <esr@thyrsus.com>
2 877
3 Implement and document XDG-style startup files under ~/.config. 878 Implement and document XDG-style startup files under ~/.config.
@@ -65099,7 +65974,7 @@
65099 65974
65100This file records repository revisions from 65975This file records repository revisions from
65101commit 9d56a21e6a696ad19ac65c4b405aeca44785884a (exclusive) to 65976commit 9d56a21e6a696ad19ac65c4b405aeca44785884a (exclusive) to
65102commit 85829363f728c410e33ffdc3839202977b2115cc (inclusive). 65977commit eca2677b1db94a126b6d2871526a1d6fce98353d (inclusive).
65103See ChangeLog.1 for earlier changes. 65978See ChangeLog.1 for earlier changes.
65104 65979
65105;; Local Variables: 65980;; Local Variables:
diff --git a/doc/emacs/display.texi b/doc/emacs/display.texi
index b9449f812a2..f92f7529ea9 100644
--- a/doc/emacs/display.texi
+++ b/doc/emacs/display.texi
@@ -202,7 +202,7 @@ screen lines between point and the top or bottom of the window
202argument, @kbd{C-u C-l}, simply recenters the line showing point. A 202argument, @kbd{C-u C-l}, simply recenters the line showing point. A
203positive argument @var{n} moves line showing point @var{n} lines down 203positive argument @var{n} moves line showing point @var{n} lines down
204from the top of the window. An argument of zero moves point's line to 204from the top of the window. An argument of zero moves point's line to
205the top of the window. A negative argument @var{-n} moves point's 205the top of the window. A negative argument @minus{}@var{n} moves point's
206line @var{n} lines from the bottom of the window. When given an 206line @var{n} lines from the bottom of the window. When given an
207argument, @kbd{C-l} does not clear the screen or cycle through 207argument, @kbd{C-l} does not clear the screen or cycle through
208different screen positions. 208different screen positions.
diff --git a/doc/emacs/killing.texi b/doc/emacs/killing.texi
index 2d56f1d26e1..9b9c890331e 100644
--- a/doc/emacs/killing.texi
+++ b/doc/emacs/killing.texi
@@ -124,7 +124,7 @@ point, regardless of the number of spaces that existed previously
124(even if there were none before). With a numeric argument @var{n}, it 124(even if there were none before). With a numeric argument @var{n}, it
125leaves @var{n} spaces before point if @var{n} is positive; if @var{n} 125leaves @var{n} spaces before point if @var{n} is positive; if @var{n}
126is negative, it deletes newlines in addition to spaces and tabs, 126is negative, it deletes newlines in addition to spaces and tabs,
127leaving @var{-n} spaces before point. The command @code{cycle-spacing} 127leaving @minus{}@var{n} spaces before point. The command @code{cycle-spacing}
128acts like a more flexible version of @code{just-one-space}. It 128acts like a more flexible version of @code{just-one-space}. It
129does different things if you call it repeatedly in succession. 129does different things if you call it repeatedly in succession.
130The first call acts like @code{just-one-space}, the next removes 130The first call acts like @code{just-one-space}, the next removes
diff --git a/doc/emacs/mark.texi b/doc/emacs/mark.texi
index 8ad5fc7c9e4..bbeb4cb039e 100644
--- a/doc/emacs/mark.texi
+++ b/doc/emacs/mark.texi
@@ -193,8 +193,8 @@ located before point, @kbd{M-@@} moves the mark backwards from its
193current position one word at a time. 193current position one word at a time.
194 194
195 This command also accepts a numeric argument @var{n}, which tells it 195 This command also accepts a numeric argument @var{n}, which tells it
196to advance the mark by @var{n} words. A negative argument moves the 196to advance the mark by @var{n} words. A negative argument
197mark back by @var{n} words. 197@minus{}@var{n} moves the mark back by @var{n} words.
198 198
199@kindex C-M-@@ 199@kindex C-M-@@
200@findex mark-sexp 200@findex mark-sexp
diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi
index 28bfa5b578f..fe5093147b0 100644
--- a/doc/emacs/programs.texi
+++ b/doc/emacs/programs.texi
@@ -969,7 +969,7 @@ delimiters to enclose the text in the region.
969 If you supply a prefix argument to @kbd{M-;} when a region is 969 If you supply a prefix argument to @kbd{M-;} when a region is
970active, that specifies the number of comment delimiters to add or 970active, that specifies the number of comment delimiters to add or
971delete. A positive argument @var{n} adds @var{n} delimiters, while a 971delete. A positive argument @var{n} adds @var{n} delimiters, while a
972negative argument @var{-n} removes @var{n} delimiters. 972negative argument @minus{}@var{n} removes @var{n} delimiters.
973 973
974 If the region is not active, and there is no existing comment on the 974 If the region is not active, and there is no existing comment on the
975current line, @kbd{M-;} adds a new comment to the current line. If 975current line, @kbd{M-;} adds a new comment to the current line. If
@@ -1000,10 +1000,11 @@ lines. When a region is active (@pxref{Mark}), @kbd{C-x C-;} either
1000comments or uncomments the lines in the region. If the region is not 1000comments or uncomments the lines in the region. If the region is not
1001active, this command comments or uncomments the line point is on. 1001active, this command comments or uncomments the line point is on.
1002With a positive prefix argument @var{n}, it operates on @var{n} lines 1002With a positive prefix argument @var{n}, it operates on @var{n} lines
1003starting with the current one; with a negative @var{n}, it affects 1003starting with the current one; with a negative argument
1004@var{n} preceding lines. After invoking this command with a negative 1004@minus{}@var{n}, it affects @var{n} preceding lines. After invoking
1005argument, successive invocations with a positive argument will operate 1005this command with a negative argument, successive invocations with a
1006on preceding lines as if the argument were negated. 1006positive argument will operate on preceding lines as if the argument
1007were negated.
1007 1008
1008@findex comment-kill 1009@findex comment-kill
1009@kindex C-u M-; 1010@kindex C-u M-;
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index 93c5217c362..68d308c7f79 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -2409,7 +2409,7 @@ Draw a box with lines of width 1, in color @var{color}.
2409@item @code{(:line-width @var{width} :color @var{color} :style @var{style})} 2409@item @code{(:line-width @var{width} :color @var{color} :style @var{style})}
2410This way you can explicitly specify all aspects of the box. The value 2410This way you can explicitly specify all aspects of the box. The value
2411@var{width} specifies the width of the lines to draw; it defaults to 2411@var{width} specifies the width of the lines to draw; it defaults to
24121. A negative width @var{-n} means to draw a line of width @var{n} 24121. A negative width @minus{}@var{n} means to draw a line of width @var{n}
2413whose top and bottom parts occupy the space of the underlying text, 2413whose top and bottom parts occupy the space of the underlying text,
2414thus avoiding any increase in the character height. 2414thus avoiding any increase in the character height.
2415 2415
diff --git a/doc/lispref/searching.texi b/doc/lispref/searching.texi
index 24f30b4dac6..33455114dac 100644
--- a/doc/lispref/searching.texi
+++ b/doc/lispref/searching.texi
@@ -101,7 +101,7 @@ previous match. If all these successive searches succeed, the
101function call succeeds, moving point and returning its new value. 101function call succeeds, moving point and returning its new value.
102Otherwise the function call fails, with results depending on the value 102Otherwise the function call fails, with results depending on the value
103of @var{noerror}, as described above. If @var{count} is a negative 103of @var{noerror}, as described above. If @var{count} is a negative
104number -@var{n}, the search is done @var{n} times in the opposite 104number @minus{}@var{n}, the search is done @var{n} times in the opposite
105(backward) direction. 105(backward) direction.
106@end deffn 106@end deffn
107 107
@@ -1130,7 +1130,7 @@ previous match. If all these successive searches succeed, the
1130function call succeeds, moving point and returning its new value. 1130function call succeeds, moving point and returning its new value.
1131Otherwise the function call fails, with results depending on the value 1131Otherwise the function call fails, with results depending on the value
1132of @var{noerror}, as described above. If @var{count} is a negative 1132of @var{noerror}, as described above. If @var{count} is a negative
1133number -@var{n}, the search is done @var{n} times in the opposite 1133number @minus{}@var{n}, the search is done @var{n} times in the opposite
1134(backward) direction. 1134(backward) direction.
1135 1135
1136In the following example, point is initially before the @samp{T}. 1136In the following example, point is initially before the @samp{T}.
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index 860c439d9a0..a6cb86eb84c 100644
--- a/doc/lispref/windows.texi
+++ b/doc/lispref/windows.texi
@@ -2582,25 +2582,47 @@ operations (@pxref{Preserving Window Sizes}).
2582This function fails if no window can be split. More often than not, 2582This function fails if no window can be split. More often than not,
2583this happens because no window is large enough to allow splitting. 2583this happens because no window is large enough to allow splitting.
2584Setting @code{split-height-threshold} or @code{split-width-threshold} 2584Setting @code{split-height-threshold} or @code{split-width-threshold}
2585to lower values may help in this regard. Spliting also fails when the 2585to lower values may help in this regard. Splitting also fails when
2586selected frame has an @code{unsplittable} frame parameter; 2586the selected frame has an @code{unsplittable} frame parameter;
2587@pxref{Buffer Parameters}. 2587@pxref{Buffer Parameters}.
2588@end defun 2588@end defun
2589 2589
2590@defun display-buffer-in-previous-window buffer alist 2590@defun display-buffer-in-previous-window buffer alist
2591This function tries to display @var{buffer} in a window where it was 2591This function tries to display @var{buffer} in a window where it was
2592previously displayed. If @var{alist} has a non-@code{nil} 2592displayed previously.
2593@code{inhibit-same-window} entry, the selected window is not eligible 2593
2594for reuse. If @var{alist} contains a @code{reusable-frames} entry, 2594If @var{alist} contains a non-@code{nil} @code{inhibit-same-window}
2595its value determines which frames to search for a suitable window. 2595entry, the selected window is not eligible for use. A dedicated
2596 2596window is usable only if it already shows @var{buffer}. If
2597If @var{alist} has a @code{previous-window} entry and the window 2597@var{alist} contains a @code{previous-window} entry, the window
2598specified by that entry is live and not dedicated to another buffer, 2598specified by that entry is usable even if it never showed @var{buffer}
2599that window will be preferred, even if it never showed @var{buffer}
2600before. 2599before.
2601 2600
2602This function will not choose the selected window if it finds another 2601If @var{alist} contains a @code{reusable-frames} entry (@pxref{Buffer
2603eligible window that has shown @var{buffer} previously. 2602Display Action Alists}), its value determines which frames to search
2603for a suitable window. If @var{alist} contains no
2604@code{reusable-frames} entry, this function searches just the selected
2605frame if @code{display-buffer-reuse-frames} and @code{pop-up-frames}
2606are both @code{nil}; it searches all frames on the current terminal if
2607either of those variables is non-@code{nil}.
2608
2609If more than one window qualifies as usable according to these rules,
2610this function makes a choice in the following order of preference:
2611
2612@itemize @bullet
2613@item
2614The window specified by any @code{previous-window} @var{alist} entry,
2615provided it is not the selected window.
2616
2617@item
2618A window that showed @var{buffer} before, provided it is not the
2619selected window.
2620
2621@item
2622The selected window if it is either specified by a
2623@code{previous-window} @var{alist} entry or showed @var{buffer}
2624before.
2625@end itemize
2604@end defun 2626@end defun
2605 2627
2606@defun display-buffer-use-some-window buffer alist 2628@defun display-buffer-use-some-window buffer alist
@@ -2850,7 +2872,9 @@ Ordering}).
2850 2872
2851A major client of this is @code{display-buffer-reuse-window}, but all 2873A major client of this is @code{display-buffer-reuse-window}, but all
2852other action functions that try to reuse a window are affected as 2874other action functions that try to reuse a window are affected as
2853well. 2875well. @code{display-buffer-in-previous-window} consults it when
2876searching for a window that previosuly displayed the buffer on another
2877frame.
2854 2878
2855@vindex inhibit-switch-frame@r{, a buffer display action alist entry} 2879@vindex inhibit-switch-frame@r{, a buffer display action alist entry}
2856@item inhibit-switch-frame 2880@item inhibit-switch-frame
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
index 11ee62d5462..6f339140ad2 100644
--- a/doc/misc/gnus.texi
+++ b/doc/misc/gnus.texi
@@ -2126,7 +2126,7 @@ considered big. The default value is 200. If the group has more
2126(unread and/or ticked) articles than this, Gnus will query the user 2126(unread and/or ticked) articles than this, Gnus will query the user
2127before entering the group. The user can then specify how many 2127before entering the group. The user can then specify how many
2128articles should be fetched from the server. If the user specifies a 2128articles should be fetched from the server. If the user specifies a
2129negative number (@var{-n}), the @var{n} oldest articles will be 2129negative number (@minus{}@var{n}), the @var{n} oldest articles will be
2130fetched. If it is positive, the @var{n} articles that have arrived 2130fetched. If it is positive, the @var{n} articles that have arrived
2131most recently will be fetched. 2131most recently will be fetched.
2132 2132
diff --git a/lisp/window.el b/lisp/window.el
index 7117d4aacd6..a2335a6798c 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -7767,10 +7767,13 @@ selected frame."
7767(defun display-buffer-in-previous-window (buffer alist) 7767(defun display-buffer-in-previous-window (buffer alist)
7768 "Display BUFFER in a window previously showing it. 7768 "Display BUFFER in a window previously showing it.
7769If ALIST has a non-nil `inhibit-same-window' entry, the selected 7769If ALIST has a non-nil `inhibit-same-window' entry, the selected
7770window is not eligible for reuse. 7770window is not usable. A dedicated window is usable only if it
7771already shows BUFFER. If ALIST contains a `previous-window'
7772entry, the window specified by that entry is usable even if it
7773never showed BUFFER before.
7771 7774
7772If ALIST contains a `reusable-frames' entry, its value determines 7775If ALIST contains a `reusable-frames' entry, its value determines
7773which frames to search for a reusable window: 7776which frames to search for a usable window:
7774 nil -- the selected frame (actually the last non-minibuffer frame) 7777 nil -- the selected frame (actually the last non-minibuffer frame)
7775 A frame -- just that frame 7778 A frame -- just that frame
7776 `visible' -- all visible frames 7779 `visible' -- all visible frames
@@ -7782,12 +7785,17 @@ selected frame if `display-buffer-reuse-frames' and
7782`pop-up-frames' are both nil; search all frames on the current 7785`pop-up-frames' are both nil; search all frames on the current
7783terminal if either of those variables is non-nil. 7786terminal if either of those variables is non-nil.
7784 7787
7785If ALIST has a `previous-window' entry, the window specified by 7788If more than one window is usable according to these rules,
7786that entry may override any other window found by the methods 7789apply the following order of preference:
7787above, even if that window never showed BUFFER before. 7790
7791- Use the window specified by any 'previous-window' ALIST entry,
7792 provided it is not the selected window.
7793
7794- Use a window that showed BUFFER before, provided it is not the
7795 selected window.
7788 7796
7789Avoid using the selected window if another eligible window has 7797- Use the selected window if it is either specified by a
7790shown BUFFER before." 7798 'previous-window' ALIST entry or showed BUFFER before."
7791 (let* ((alist-entry (assq 'reusable-frames alist)) 7799 (let* ((alist-entry (assq 'reusable-frames alist))
7792 (inhibit-same-window 7800 (inhibit-same-window
7793 (cdr (assq 'inhibit-same-window alist))) 7801 (cdr (assq 'inhibit-same-window alist)))