Skip to content

Commit 9f1d869

Browse files
author
Yuuki Harano
committed
Merge branch 'master' of https://github.com/emacs-mirror/emacs into pgtk
2 parents 489215d + ac9acc1 commit 9f1d869

Some content is hidden

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

48 files changed

+543
-233
lines changed

configure.ac

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4261,6 +4261,21 @@ if test "$ac_cv_func_pthread_setname_np" = "yes"; then
42614261
AC_DEFINE(
42624262
HAVE_PTHREAD_SETNAME_NP_1ARG, 1,
42634263
[Define to 1 if pthread_setname_np takes a single argument.])
4264+
else
4265+
AC_CACHE_CHECK(
4266+
[whether pthread_setname_np takes three arguments],
4267+
[emacs_cv_pthread_setname_np_3arg],
4268+
[AC_COMPILE_IFELSE(
4269+
[AC_LANG_PROGRAM(
4270+
[[#include <pthread.h>]],
4271+
[[pthread_setname_np (0, "%s", "a");]])],
4272+
[emacs_cv_pthread_setname_np_3arg=yes],
4273+
[emacs_cv_pthread_setname_np_3arg=no])])
4274+
if test "$emacs_cv_pthread_setname_np_3arg" = "yes"; then
4275+
AC_DEFINE(
4276+
HAVE_PTHREAD_SETNAME_NP_3ARG, 1,
4277+
[Define to 1 if pthread_setname_np takes three arguments.])
4278+
fi
42644279
fi
42654280
fi
42664281

doc/emacs/display.texi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,6 +1654,8 @@ Customization}). (The other attributes of this face have no effect;
16541654
the text shown under the cursor is drawn using the frame's background
16551655
color.) To change its shape, customize the buffer-local variable
16561656
@code{cursor-type}; possible values are @code{box} (the default),
1657+
@code{(box . @var{size})} (box cursor becoming a hollow box under
1658+
masked images larger than @var{size} pixels in either dimension),
16571659
@code{hollow} (a hollow box), @code{bar} (a vertical bar), @code{(bar
16581660
. @var{n})} (a vertical bar @var{n} pixels wide), @code{hbar} (a
16591661
horizontal bar), @code{(hbar . @var{n})} (a horizontal bar @var{n}

doc/emacs/fixit.texi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ changes have already been undone, the undo command signals an error.
6666

6767
@cindex redo
6868
@findex undo-only
69+
@findex undo-redo
6970
Any command other than an undo command breaks the sequence of undo
7071
commands. Starting from that moment, the entire sequence of undo
7172
commands that you have just performed are themselves placed into the
@@ -77,6 +78,8 @@ undo commands.
7778
Alternatively, if you want to resume undoing, without redoing
7879
previous undo commands, use @kbd{M-x undo-only}. This is like
7980
@code{undo}, but will not redo changes you have just undone.
81+
To complement it @kbd{M-x undo-redo} will undo previous undo commands
82+
(and will not record itself as an undoable command).
8083

8184
If you notice that a buffer has been modified accidentally, the
8285
easiest way to recover is to type @kbd{C-/} repeatedly until the stars

doc/emacs/misc.texi

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2939,9 +2939,8 @@ done by calling @code{browse-url} as a subroutine
29392939

29402940
It can be useful to add @code{goto-address-mode} to mode hooks and
29412941
hooks for displaying an incoming message
2942-
(e.g., @code{rmail-show-message-hook} for Rmail, and
2943-
@code{mh-show-mode-hook} for MH-E). This is not needed for Gnus,
2944-
which has a similar feature of its own.
2942+
(e.g., @code{rmail-show-message-hook} for Rmail). This is not needed
2943+
for Gnus or MH-E, which have similar features of their own.
29452944

29462945
@node FFAP
29472946
@subsection Finding Files and URLs at Point

doc/lispref/frames.texi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2220,6 +2220,9 @@ How to display the cursor. Legitimate values are:
22202220
@table @code
22212221
@item box
22222222
Display a filled box. (This is the default.)
2223+
@item (box . @var{size})
2224+
Display a filled box. However, display it as a hollow box if point is
2225+
under masked image larger than @var{size} pixels in either dimension.
22232226
@item hollow
22242227
Display a hollow box.
22252228
@item nil

doc/lispref/lists.texi

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,9 @@ non-@code{nil}, it is added at the end.
777777
The argument @var{symbol} is not implicitly quoted; @code{add-to-list}
778778
is an ordinary function, like @code{set} and unlike @code{setq}. Quote
779779
the argument yourself if that is what you want.
780+
781+
Do not use this function when @var{symbol} refers to a lexical
782+
variable.
780783
@end defun
781784

782785
Here's a scenario showing how to use @code{add-to-list}:
@@ -799,8 +802,9 @@ foo ;; @r{@code{foo} was changed.}
799802
@var{value})} is this:
800803

801804
@example
802-
(or (member @var{value} @var{var})
803-
(setq @var{var} (cons @var{value} @var{var})))
805+
(if (member @var{value} @var{var})
806+
@var{var}
807+
(setq @var{var} (cons @var{value} @var{var})))
804808
@end example
805809

806810
@defun add-to-ordered-list symbol element &optional order
@@ -828,6 +832,7 @@ and unlike @code{setq}. Quote the argument yourself if necessary.
828832

829833
The ordering information is stored in a hash table on @var{symbol}'s
830834
@code{list-order} property.
835+
@var{symbol} cannot refer to a lexical variable.
831836
@end defun
832837

833838
Here's a scenario showing how to use @code{add-to-ordered-list}:

doc/lispref/minibuf.texi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ and returns the updated history list. It limits the list length to
572572
the value of @var{maxelt} (if non-@code{nil}) or @code{history-length}
573573
(described below). The possible values of @var{maxelt} have the same
574574
meaning as the values of @code{history-length}.
575+
@var{history-var} cannot refer to a lexical variable.
575576

576577
Normally, @code{add-to-history} removes duplicate members from the
577578
history list if @code{history-delete-duplicates} is non-@code{nil}.

doc/misc/mh-e.texi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2256,10 +2256,10 @@ signature block is more to your liking.
22562256
Two hooks can be used to control how messages are displayed. The first
22572257
hook, @code{mh-show-mode-hook}, is called early on in the process of
22582258
the message display. It is usually used to perform some action on the
2259-
message's content. The second hook, @code{mh-show-hook}, is the last
2259+
message's buffer. The second hook, @code{mh-show-hook}, is the last
22602260
thing called after messages are displayed. It's used to affect the
2261-
behavior of MH-E in general or when @code{mh-show-mode-hook} is too
2262-
early.
2261+
message's content, the behavior of MH-E in general, or when
2262+
@code{mh-show-mode-hook} is too early.
22632263

22642264
@cindex MH-Show mode
22652265
@cindex modes, MH-Show

etc/NEWS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,18 @@ It was declared obsolete in Emacs 27.1.
6464

6565
* Changes in Emacs 28.1
6666

67+
** Support for '(box . SIZE)' cursor-type.
68+
By default, 'box' cursor always has a filled box shape. But if you
69+
specify cursor-type to be '(box . SIZE)', the cursor becomes a hollow
70+
box if the point is on an image larger than 'SIZE' pixels in any
71+
dimension.
72+
6773

6874
* Editing Changes in Emacs 28.1
6975

76+
+++
77+
** New command 'undo-redo'
78+
7079
+++
7180
** 'read-number' now has its own history variable.
7281
Additionally, the function now accepts a HIST argument which can be

etc/NEWS.27

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2630,6 +2630,14 @@ will be chosen even if you have an entry for "image/*" in your
26302630
overrides all system and Emacs-provided defaults. To get the old
26312631
method back, set 'mailcap-prefer-mailcap-viewers' to nil.
26322632

2633+
** MH-E
2634+
+++
2635+
*** The hook 'mh-show-mode-hook' is now called before the message is inserted.
2636+
Functions that want to affect the message text (for example, to change
2637+
highlighting) can no longer use 'mh-show-mode-hook', because the
2638+
message contents will not yet have been inserted when the hook is
2639+
called. Such functions should now be attached to 'mh-show-hook'.
2640+
26332641
** URL
26342642

26352643
---

0 commit comments

Comments
 (0)