Skip to content

Commit 63585c7

Browse files
author
Yuuki Harano
committed
Merge branch 'master' of https://github.com/emacs-mirror/emacs into pgtk
2 parents d583603 + 16ec5f5 commit 63585c7

File tree

127 files changed

+3350
-1917
lines changed

Some content is hidden

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

127 files changed

+3350
-1917
lines changed

ChangeLog.3

Lines changed: 355 additions & 164 deletions
Large diffs are not rendered by default.

admin/authors.el

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,10 @@ If REALNAME is nil, ignore that author.")
294294
"preferences\\.\\(nib\\|gorm\\)"
295295
;; Generated files that have since been removed.
296296
"\\(refcard\\(-de\\|-pl\\)?\\|calccard\\|dired-ref\\|orgcard\\|\
297-
gnus-booklet\\|fr-drdref\\)\\.p\\(df\\|s\\)\\'")
297+
gnus-booklet\\|fr-drdref\\)\\.p\\(df\\|s\\)\\'"
298+
;; Removed as obsolete
299+
"README-ftp-server"
300+
)
298301
"List of regexps matching obsolete files.
299302
Changes to files matching one of the regexps in this list are not listed.")
300303

@@ -459,6 +462,12 @@ Changes to files matching one of the regexps in this list are not listed.")
459462
;; ada-mode has been deleted, now in GNU ELPA
460463
"ada-mode.texi"
461464
"GNUS-NEWS"
465+
"doc/misc/gnus-news.el"
466+
"src/fingerprint-dummy.c"
467+
"src/fingerprint.h"
468+
;; Replaced by lisp/thread.el
469+
"lisp/emacs-lisp/thread-list.el"
470+
"etc/images/slash.bmp"
462471
)
463472
"List of files and directories to ignore.
464473
Changes to files in this list are not listed.")
@@ -1103,6 +1112,8 @@ in the repository.")
11031112
("lisp/net/starttls.el" . "lisp/obsolete/starttls.el")
11041113
("url-ns.el" . "lisp/obsolete/url-ns.el")
11051114
("gnus-news.texi" . "doc/misc/gnus.texi")
1115+
("lisp/multifile.el". "lisp/fileloop.el")
1116+
("lisp/emacs-lisp/thread.el". "lisp/thread.el")
11061117
)
11071118
"Alist of files which have been renamed during their lifetime.
11081119
Elements are (OLDNAME . NEWNAME).")

admin/merge-gnulib

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ GNULIB_MODULES='
3434
d-type diffseq dosname double-slash-root dtoastr dtotimespec dup2
3535
environ execinfo explicit_bzero faccessat
3636
fchmodat fcntl fcntl-h fdopendir
37-
filemode filevercmp flexmember fpieee fstatat fsusage fsync
37+
filemode filevercmp flexmember fpieee fstatat fsusage fsync futimens
3838
getloadavg getopt-gnu gettime gettimeofday gitlog-to-changelog
3939
ieee754-h ignore-value intprops largefile lstat
4040
manywarnings memmem-simple mempcpy memrchr minmax mkostemp mktime nstrftime
@@ -43,7 +43,7 @@ GNULIB_MODULES='
4343
sig2str socklen stat-time std-gnu11 stdalign stddef stdio
4444
stpcpy strnlen strtoimax symlink sys_stat sys_time
4545
tempname time time_r time_rz timegm timer-time timespec-add timespec-sub
46-
update-copyright unlocked-io utimens
46+
update-copyright unlocked-io utimensat
4747
vla warnings
4848
'
4949

doc/emacs/building.texi

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ Select a buffer to be used by next invocation of @code{next-error} and
214214
@kindex C-x `
215215
@findex next-error
216216
@vindex next-error-highlight
217+
@vindex next-error-highlight-no-select
217218
To visit errors sequentially, type @w{@kbd{C-x `}}
218219
(@code{next-error}), or equivalently @kbd{M-g M-n} or @kbd{M-g n}.
219220
This command can be invoked from any buffer, not just a Compilation
@@ -258,7 +259,9 @@ to skip any messages.
258259

259260
When Emacs visits the locus of an error message, it momentarily
260261
highlights the relevant source line. The duration of this highlight
261-
is determined by the variable @code{next-error-highlight}.
262+
is determined by the variable @code{next-error-highlight} for the locus
263+
in the selected buffer, and @code{next-error-highlight-no-select} for
264+
the locus in non-selected buffers.
262265

263266
@vindex compilation-context-lines
264267
If the @file{*compilation*} buffer is shown in a window with a left
@@ -1528,13 +1531,6 @@ Automatic loading also occurs when completing names for
15281531
prefix being completed. To disable this feature, change the variable
15291532
@code{help-enable-completion-autoload} to @code{nil}.
15301533

1531-
@vindex load-dangerous-libraries
1532-
@cindex Lisp files byte-compiled by XEmacs
1533-
By default, Emacs refuses to load compiled Lisp files which were
1534-
compiled with XEmacs, a modified version of Emacs---they can cause
1535-
Emacs to crash. Set the variable @code{load-dangerous-libraries} to
1536-
@code{t} if you want to try loading them.
1537-
15381534
@node Lisp Eval
15391535
@section Evaluating Emacs Lisp Expressions
15401536
@cindex Emacs Lisp mode

doc/emacs/custom.texi

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1873,15 +1873,19 @@ You can use a vector for the simple cases too:
18731873
Language and coding systems may cause problems with key bindings for
18741874
non-@acronym{ASCII} characters. @xref{Init Non-ASCII}.
18751875

1876+
@findex define-key
18761877
As described in @ref{Local Keymaps}, major modes and minor modes can
18771878
define local keymaps. These keymaps are constructed when the mode is
1878-
used for the first time in a session. If you wish to change one of
1879-
these keymaps, you must use the @dfn{mode hook} (@pxref{Hooks}).
1879+
loaded for the first time in a session. The function @code{define-key}
1880+
can be used to make changes in a specific keymap. This function can
1881+
also unset keys, when passed @code{nil} as the binding.
18801882

1881-
@findex define-key
1882-
For example, Texinfo mode runs the hook @code{texinfo-mode-hook}.
1883-
Here's how you can use the hook to add local bindings for @kbd{C-c n}
1884-
and @kbd{C-c p} in Texinfo mode:
1883+
Since a mode's keymaps are not constructed until it has been loaded,
1884+
you must delay running code which modifies them, e.g., by putting it
1885+
on a @dfn{mode hook} (@pxref{(Hooks)}). For example, Texinfo mode
1886+
runs the hook @code{texinfo-mode-hook}. Here's how you can use the
1887+
hook to add local bindings for @kbd{C-c n} and @kbd{C-c p}, and remove
1888+
the one for @kbd{C-c C-x x} in Texinfo mode:
18851889

18861890
@example
18871891
(add-hook 'texinfo-mode-hook
@@ -1890,6 +1894,7 @@ and @kbd{C-c p} in Texinfo mode:
18901894
'backward-paragraph)
18911895
(define-key texinfo-mode-map "\C-cn"
18921896
'forward-paragraph)))
1897+
(define-key texinfo-mode-map "\C-c\C-xx" nil)
18931898
@end example
18941899

18951900
@node Modifier Keys

doc/emacs/macos.texi

Lines changed: 58 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,64 @@ The variables for right-hand keys, like @code{ns-right-alternate-modifier},
143143
may also be set to @code{left}, which means to use the same behavior as
144144
the corresponding left-hand key.
145145

146+
@subsection Frame Variables
147+
148+
@table @code
149+
@vindex ns-use-proxy-icon
150+
@item ns-use-proxy-icon
151+
This variable specifies whether to display the proxy icon in the
152+
titlebar.
153+
154+
@vindex ns-confirm-quit
155+
@item ns-confirm-quit
156+
This variable specifies whether to display a graphical confirmation
157+
dialogue on quitting.
158+
159+
@vindex ns-auto-hide-menu-bar
160+
@item ns-auto-hide-menu-bar
161+
This variable specifies whether the macOS menu bar is hidden when an
162+
Emacs frame is selected. If non-nil the menu bar is not shown unless
163+
the mouse pointer is moved near to the top of the screen.
164+
165+
@vindex ns-use-native-fullscreen
166+
@item ns-use-native-fullscreen
167+
This variable controls whether to use native, or non-native
168+
fullscreen. Native fullscreen is only available on macOS 10.7 and
169+
above.
170+
@end table
171+
172+
@subsection macOS Trackpad/Mousewheel Variables
173+
174+
These variables only apply to macOS 10.7 (Lion) and above.
175+
176+
@table @code
177+
@vindex ns-use-mwheel-acceleration
178+
@item ns-use-mwheel-acceleration
179+
This variable controls whether Emacs ignores the system mousewheel
180+
acceleration. When nil each `click' of the mousewheel will correspond
181+
exactly with one mousewheel event. When non-nil, the default, each
182+
`click' may correspond with more than one mousewheel event, depending
183+
on the user's input.
184+
185+
@vindex ns-use-mwheel-momentum
186+
@item ns-use-mwheel-momentum
187+
This variable controls whether Emacs ignores the system `momentum'
188+
when scrolling using a trackpad. When non-nil, the default, scrolling
189+
rapidly may result in the buffer continuing to scroll for a short
190+
while after the user has lifted their fingers off the trackpad.
191+
192+
@vindex ns-mwheel-line-height
193+
@item ns-mwheel-line-height
194+
This variable controls the sensitivity of scrolling with the trackpad.
195+
Apple trackpads scroll by pixels, not lines, so Emacs converts the
196+
system's pixel values into lines. When set to a number, this variable
197+
sets the number of pixels Emacs will consider as one line. When nil
198+
or a non-number the default line height is used.
199+
200+
Setting a lower number makes the trackpad more sensitive, and a higher
201+
number makes the trackpad less sensitive.
202+
@end table
203+
146204
@subsection Font Panel
147205

148206
@findex ns-popup-font-panel
@@ -153,17 +211,6 @@ recently used or clicked on.
153211
@c To make the setting permanent, use @samp{Save Options} in the
154212
@c Options menu, or run @code{menu-bar-options-save}.
155213

156-
@cindex Core Text, on macOS
157-
@cindex font backend, on macOS
158-
In macOS, Emacs uses a Core Text based font backend
159-
by default. If you prefer the older font style, enter the following
160-
at the command-line before starting Emacs:
161-
162-
@example
163-
% defaults write org.gnu.Emacs FontBackend ns
164-
@end example
165-
166-
167214
@node Mac / GNUstep Events
168215
@section Windowing System Events under macOS / GNUstep
169216
@cindex events on macOS

doc/emacs/mini.texi

Lines changed: 20 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -813,43 +813,36 @@ varieties.
813813

814814
@cindex y or n prompt
815815
For the first type of yes-or-no query, the prompt ends with
816-
@samp{(y or n)}. Such a query does not actually use the minibuffer;
817-
the prompt appears in the echo area, and you answer by typing either
818-
@samp{y} or @samp{n}, which immediately delivers the response. For
819-
example, if you type @kbd{C-x C-w} (@kbd{write-file}) to save a
820-
buffer, and enter the name of an existing file, Emacs issues a prompt
821-
like this:
816+
@w{@samp{(y or n)}}. You answer the query by typing a single key,
817+
either @samp{y} or @samp{n}, which immediately exits the minibuffer
818+
and delivers the response. For example, if you type @kbd{C-x C-w}
819+
(@kbd{write-file}) to save a buffer, and enter the name of an existing
820+
file, Emacs issues a prompt like this:
822821

823822
@smallexample
824823
File ‘foo.el’ exists; overwrite? (y or n)
825824
@end smallexample
826825

827-
@noindent
828-
Because this query does not actually use the minibuffer, the usual
829-
minibuffer editing commands cannot be used. However, you can perform
830-
some window scrolling operations while the query is active: @kbd{C-l}
831-
recenters the selected window; @kbd{C-v} (or @key{PageDown}, or
832-
@key{next}) scrolls forward; @kbd{M-v} (or @key{PageUp}, or
833-
@key{prior}) scrolls backward; @kbd{C-M-v} scrolls forward in the next
834-
window; and @kbd{C-M-S-v} scrolls backward in the next window. Typing
835-
@kbd{C-g} dismisses the query, and quits the command that issued it
836-
(@pxref{Quitting}).
837-
838826
@cindex yes or no prompt
839-
The second type of yes-or-no query is typically employed if
840-
giving the wrong answer would have serious consequences; it uses the
841-
minibuffer, and features a prompt ending with @samp{(yes or no)}. For
842-
example, if you invoke @kbd{C-x k} (@code{kill-buffer}) on a
843-
file-visiting buffer with unsaved changes, Emacs activates the
844-
minibuffer with a prompt like this:
827+
The second type of yes-or-no query is typically employed if giving
828+
the wrong answer would have serious consequences; it thus features a
829+
longer prompt ending with @samp{(yes or no)}. For example, if you
830+
invoke @kbd{C-x k} (@code{kill-buffer}) on a file-visiting buffer with
831+
unsaved changes, Emacs activates the minibuffer with a prompt like
832+
this:
845833

846834
@smallexample
847835
Buffer foo.el modified; kill anyway? (yes or no)
848836
@end smallexample
849837

850838
@noindent
851839
To answer, you must type @samp{yes} or @samp{no} into the minibuffer,
852-
followed by @key{RET}. The minibuffer behaves as described in the
853-
previous sections; you can switch to another window with @kbd{C-x o},
854-
use the history commands @kbd{M-p} and @kbd{M-n}, etc. Type @kbd{C-g}
855-
to quit the minibuffer and the querying command.
840+
followed by @key{RET}.
841+
842+
With both types of yes-or-no query the minibuffer behaves as described
843+
in the previous sections; you can recenter the selected window with
844+
@kbd{C-l}, scroll that window (@kbd{C-v} or @kbd{PageDown} scrolls
845+
forward, @kbd{M-v} or @kbd{PageUp} scrolls backward), switch to
846+
another window with @kbd{C-x o}, use the history commands @kbd{M-p}
847+
and @kbd{M-n}, etc. Type @kbd{C-g} to dismiss the query, and quit the
848+
minibuffer and the querying command (@pxref{Quitting}).

doc/lispref/compile.texi

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ function is called, it reads the full definition from the file, to
302302
replace the place-holder.
303303

304304
The advantage of dynamic function loading is that loading the file
305-
becomes much faster. This is a good thing for a file which contains
305+
should become faster. This is a good thing for a file which contains
306306
many separate user-callable functions, if using one of them does not
307307
imply you will probably also use the rest. A specialized mode which
308308
provides many keyboard commands often has that usage pattern: a user may
@@ -326,6 +326,10 @@ installed Emacs files. But they are quite likely to happen with Lisp
326326
files that you are changing. The easiest way to prevent these problems
327327
is to reload the new compiled file immediately after each recompilation.
328328

329+
@emph{Experience shows that using dynamic function loading provides
330+
benefits that are hardly measurable, so this feature is deprecated
331+
since Emacs 27.1.}
332+
329333
The byte compiler uses the dynamic function loading feature if the
330334
variable @code{byte-compile-dynamic} is non-@code{nil} at compilation
331335
time. Do not set this variable globally, since dynamic loading is

doc/lispref/files.texi

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1909,11 +1909,19 @@ omitted or @code{nil}, it defaults to 0, i.e., no access rights at
19091909
all.
19101910
@end defun
19111911

1912-
@defun set-file-times filename &optional time
1912+
@defun set-file-times filename &optional time flag
19131913
This function sets the access and modification times of @var{filename}
19141914
to @var{time}. The return value is @code{t} if the times are successfully
19151915
set, otherwise it is @code{nil}. @var{time} defaults to the current
19161916
time and must be a time value (@pxref{Time of Day}).
1917+
1918+
By default this function follows symbolic links. However, if the
1919+
optional argument @var{flag} is the symbol @code{nofollow}, this
1920+
function does not follow @var{filename} if it is a symbolic link;
1921+
this can help prevent inadvertently changing the times of a file
1922+
somewhere else. On platforms that do not support changing times
1923+
on a symbolic link, this function signals an error when @var{filename}
1924+
is a symbolic link and @var{flag} is @code{nofollow}.
19171925
@end defun
19181926

19191927
@defun set-file-extended-attributes filename attribute-alist

doc/lispref/frames.texi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3264,7 +3264,7 @@ that deletion fails for whatever reason, the child frame is made a
32643264
top-level frame.
32653265

32663266
Whether a child frame can have a menu or tool bar is window-system or
3267-
window manager dependent. Most window-systems explicitly disallow menus
3267+
window manager dependent. Most window-systems explicitly disallow menu
32683268
bars for child frames. It seems advisable to disable both, menu and
32693269
tool bars, via the frame's initial parameters settings.
32703270

0 commit comments

Comments
 (0)