Skip to content

Commit 57289b5

Browse files
author
Yuuki Harano
committed
Merge branch 'master' of https://github.com/emacs-mirror/emacs
2 parents 5b2257b + 26f2b1f commit 57289b5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+952
-392
lines changed

doc/emacs/maintaining.texi

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,6 @@ systems support modifying change comments.
10331033
Visit the revision indicated at the current line.
10341034

10351035
@item d
1036-
@itemx =
10371036
Display a diff between the revision at point and the next earlier
10381037
revision, for the specific file.
10391038

@@ -1048,16 +1047,6 @@ L}), toggle between showing and hiding the full log entry for the
10481047
revision at point.
10491048
@end table
10501049

1051-
To compare two arbitrary revisions, activate the region: set the
1052-
beginning of the region to the line with the first revision and the
1053-
end of the region to the line with the second revision to compare,
1054-
then type @kbd{d} or @kbd{=}. When the beginning of the region is on
1055-
the top line that has no revision, it uses the current working revision
1056-
as the first revision to compare. When the end of the region is on
1057-
the bottom non-revision line after the last revision line, then it
1058-
uses the next earlier revision after the last displayed revision as
1059-
the second revision to compare.
1060-
10611050
@vindex vc-log-show-limit
10621051
Because fetching many log entries can be slow, the
10631052
@file{*vc-change-log*} buffer displays no more than 2000 revisions by

doc/emacs/modes.texi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ amount of work you can lose in case of a crash. @xref{Auto Save}.
207207

208208
@item
209209
Electric Quote mode automatically converts quotation marks. For
210-
example, it requotes text typed @t{`like this'} to text @t{‘like
210+
example, it requotes text typed @kbd{`like this'} to text @t{‘like
211211
this’}. You can control what kind of text it operates in, and you can
212212
disable it entirely in individual buffers. @xref{Quotation Marks}.
213213

doc/emacs/text.texi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ this"}. Another common way is the curved quote convention, which uses
429429
left and right single or double quotation marks `@t{like this}' or
430430
``@t{like this}''@footnote{
431431
The curved single quote characters are U+2018 @sc{left single quotation
432-
mark} and U+2018 @sc{right single quotation mark}; the curved double quotes
432+
mark} and U+2019 @sc{right single quotation mark}; the curved double quotes
433433
are U+201C @sc{left double quotation mark} and U+201D @sc{right double
434434
quotation mark}. On text terminals which cannot display these
435435
characters, the Info reader might show them as the typewriter ASCII

doc/lispref/compile.texi

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -505,8 +505,25 @@ current lexical scope, or file if at top-level.) @xref{Defining
505505
Variables}.
506506
@end itemize
507507

508-
You can also suppress any and all compiler warnings within a certain
509-
expression using the construct @code{with-no-warnings}:
508+
You can also suppress compiler warnings within a certain expression
509+
using the @code{with-suppressed-warnings} macro:
510+
511+
@defspec with-suppressed-warnings warnings body@dots{}
512+
In execution, this is equivalent to @code{(progn @var{body}...)}, but
513+
the compiler does not issue warnings for the specified conditions in
514+
@var{body}. @var{warnings} is an associative list of warning symbols
515+
and function/variable symbols they apply to. For instance, if you
516+
wish to call an obsolete function called @code{foo}, but want to
517+
suppress the compilation warning, say:
518+
519+
@lisp
520+
(with-suppressed-warnings ((obsolete foo))
521+
(foo ...))
522+
@end lisp
523+
@end defspec
524+
525+
For more coarse-grained suppression of compiler warnings, you can use
526+
the @code{with-no-warnings} construct:
510527

511528
@c This is implemented with a defun, but conceptually it is
512529
@c a special form.
@@ -516,8 +533,9 @@ In execution, this is equivalent to @code{(progn @var{body}...)},
516533
but the compiler does not issue warnings for anything that occurs
517534
inside @var{body}.
518535

519-
We recommend that you use this construct around the smallest
520-
possible piece of code, to avoid missing possible warnings other than
536+
We recommend that you use @code{with-suppressed-warnings} instead, but
537+
if you do use this construct, that you use it around the smallest
538+
possible piece of code to avoid missing possible warnings other than
521539
one you intend to suppress.
522540
@end defspec
523541

doc/lispref/modes.texi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,9 @@ it provides a command that does the same job in a way better
392392
suited to the text this mode is used for. For example, a major mode
393393
for editing a programming language might redefine @kbd{C-M-a} to
394394
move to the beginning of a function in a way that works better for
395-
that language.
395+
that language. The recommended way of tailoring @kbd{C-M-a} to the
396+
needs of a major mode is to set @code{beginning-of-defun-function}
397+
(@pxref{List Motion}) to invoke the function specific to the mode.
396398

397399
It is also legitimate for a major mode to rebind a standard key
398400
sequence whose standard meaning is rarely useful in that mode. For

doc/lispref/text.texi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4560,8 +4560,8 @@ the output is just one long line.
45604560

45614561
@deffn Command base64url-encode-region beg end &optional no-pad
45624562
This function is like @code{base64-encode-region}, but it implements
4563-
the URL variant if base 64 encoding, per RFC 4648, and it doesn't
4564-
inserts newline characters into the encoded text, so the output is
4563+
the URL variant of base 64 encoding, per RFC 4648, and it doesn't
4564+
insert newline characters into the encoded text, so the output is
45654565
just one long line.
45664566

45674567
If the optional argument @var{no-pad} is non-@code{nil} then this

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

doc/misc/efaq-w32.texi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,8 @@ If you want a quick solution without installing extra tools, a poor
18201820
substitute that works for simple text searches is to specify the built
18211821
in Windows command @command{findstr} as the command to run at the
18221822
@kbd{M-x grep} prompt. Normally you will want to use the @option{/n}
1823-
argument to @command{findstr}.
1823+
argument to @command{findstr}, to have it print the line numbers for
1824+
each hit.
18241825

18251826
@menu
18261827
* Recursive grep::
@@ -1860,7 +1861,8 @@ path to the findutils @command{find} command.
18601861
An alternative if you have a recent version of grep is to customize
18611862
@code{grep-find-command} to use @samp{grep -r} instead of both find
18621863
and grep. Another alternative if you don't need the full capabilities
1863-
of grep is to use @samp{findstr /n /r}.
1864+
of grep is to use @samp{findstr /n /r}; add the @samp{/s} option if
1865+
you want a recursive search.
18641866

18651867
@c ------------------------------------------------------------
18661868
@node Developing with Emacs

etc/NEWS

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,11 @@ remapped to these, respectively.
580580
+++
581581
*** New command 'dired-create-empty-file'.
582582

583+
** Find-Dired
584+
585+
*** New customizable variable 'find-dired-refine-function'.
586+
The default value is 'find-dired-sort-by-filename'.
587+
583588
** Change Logs and VC
584589

585590
*** Recording ChangeLog entries doesn't require an actual file.
@@ -1507,6 +1512,18 @@ the new variable 'buffer-auto-revert-by-notification' to a non-nil
15071512
value. Auto Revert mode can use this information to avoid polling the
15081513
buffer periodically when 'auto-revert-avoid-polling' is non-nil.
15091514

1515+
** Bookmarks
1516+
1517+
+++
1518+
*** 'bookmark-file' is now an obsolete alias of
1519+
'bookmark-default-file'.
1520+
1521+
** Bookmarks
1522+
1523+
---
1524+
*** 'bookmark-old-default-file' is now an obsolete alias of
1525+
'bookmark-default-file'.
1526+
15101527

15111528
* New Modes and Packages in Emacs 27.1
15121529

@@ -1675,6 +1692,10 @@ valid event type.
16751692

16761693
* Lisp Changes in Emacs 27.1
16771694

1695+
+++
1696+
** The new macro `with-suppressed-warnings' can be used to suppress
1697+
specific byte-compile warnings.
1698+
16781699
+++
16791700
** The 'append' arg of 'add-hook' is generalized to a finer notion of 'depth'
16801701
This makes it possible to control the ordering of functions more precisely,

lisp/autorevert.el

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ the list of old buffers.")
347347

348348
(add-hook 'find-file-hook
349349
#'auto-revert-find-file-function)
350+
(add-hook 'after-set-visited-file-name-hook
351+
#'auto-revert-set-visited-file-name)
350352

351353
(defvar auto-revert--buffers-by-watch-descriptor
352354
(make-hash-table :test 'equal)
@@ -508,8 +510,6 @@ specifies in the mode line."
508510
(auto-revert--global-add-current-buffer)))
509511
;; Make sure future buffers are added as well.
510512
(add-hook 'find-file-hook #'auto-revert--global-adopt-current-buffer)
511-
(add-hook 'after-set-visited-file-name-hook
512-
#'auto-revert--global-set-visited-file-name)
513513
;; To track non-file buffers, we need to listen in to buffer
514514
;; creation in general. Listening to major-mode changes is
515515
;; suitable, since we then know whether it's a mode that is tracked.
@@ -520,8 +520,6 @@ specifies in the mode line."
520520
;; Turn global-auto-revert-mode OFF.
521521
(remove-hook 'after-change-major-mode-hook
522522
#'auto-revert--global-adopt-current-buffer)
523-
(remove-hook 'after-set-visited-file-name-hook
524-
#'auto-revert--global-set-visited-file-name)
525523
(remove-hook 'find-file-hook #'auto-revert--global-adopt-current-buffer)
526524
(dolist (buf (buffer-list))
527525
(with-current-buffer buf
@@ -551,14 +549,17 @@ specifies in the mode line."
551549
(auto-revert--global-add-current-buffer)
552550
(auto-revert-set-timer))
553551

554-
(defun auto-revert--global-set-visited-file-name ()
555-
"Update Global Auto-Revert management of the current buffer.
552+
(defun auto-revert-set-visited-file-name ()
553+
"Update Auto-Revert management of the current buffer.
556554
Called after `set-visited-file-name'."
557-
;; Remove any existing notifier first so that we don't track the
558-
;; wrong file in case the file name was changed.
559555
(when auto-revert-notify-watch-descriptor
556+
;; Remove any existing notifier so that we don't track the wrong
557+
;; file in case the file name was changed.
560558
(auto-revert-notify-rm-watch))
561-
(auto-revert--global-adopt-current-buffer))
559+
(cond (global-auto-revert-mode
560+
(auto-revert--global-adopt-current-buffer))
561+
((or auto-revert-mode auto-revert-tail-mode)
562+
(auto-revert-set-timer))))
562563

563564
(defun auto-revert--polled-buffers ()
564565
"List of buffers that need to be polled."

0 commit comments

Comments
 (0)