Skip to content

Commit 773ef18

Browse files
author
Yuuki Harano
committed
Merge branch 'master' of https://github.com/emacs-mirror/emacs into pgtk
2 parents f28489e + 17cfd70 commit 773ef18

33 files changed

+680
-426
lines changed

configure.ac

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,7 +1767,7 @@ AC_CHECK_HEADERS_ONCE(
17671767
sys/sysinfo.h
17681768
coff.h pty.h
17691769
sys/resource.h
1770-
sys/utsname.h pwd.h utmp.h util.h sys/prctl.h)
1770+
sys/utsname.h pwd.h utmp.h util.h)
17711771

17721772
AC_CACHE_CHECK([for ADDR_NO_RANDOMIZE],
17731773
[emacs_cv_personality_addr_no_randomize],
@@ -4261,9 +4261,26 @@ pthread_sigmask strsignal setitimer timer_getoverrun \
42614261
sendto recvfrom getsockname getifaddrs freeifaddrs \
42624262
gai_strerror sync \
42634263
getpwent endpwent getgrent endgrent \
4264-
cfmakeraw cfsetspeed __executable_start log2 prctl)
4264+
cfmakeraw cfsetspeed __executable_start log2 pthread_setname_np)
42654265
LIBS=$OLD_LIBS
42664266

4267+
if test "$ac_cv_func_pthread_setname_np" = "yes"; then
4268+
AC_CACHE_CHECK(
4269+
[whether pthread_setname_np takes a single argument],
4270+
[emacs_cv_pthread_setname_np_1arg],
4271+
[AC_COMPILE_IFELSE(
4272+
[AC_LANG_PROGRAM(
4273+
[[#include <pthread.h>]],
4274+
[[pthread_setname_np ("a");]])],
4275+
[emacs_cv_pthread_setname_np_1arg=yes],
4276+
[emacs_cv_pthread_setname_np_1arg=no])])
4277+
if test "$emacs_cv_pthread_setname_np_1arg" = "yes"; then
4278+
AC_DEFINE(
4279+
HAVE_PTHREAD_SETNAME_NP_1ARG, 1,
4280+
[Define to 1 if pthread_setname_np takes a single argument.])
4281+
fi
4282+
fi
4283+
42674284
dnl No need to check for posix_memalign if aligned_alloc works.
42684285
AC_CHECK_FUNCS([aligned_alloc posix_memalign], [break])
42694286
AC_CHECK_DECLS([aligned_alloc], [], [], [[#include <stdlib.h>]])

doc/lispref/frames.texi

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2192,10 +2192,11 @@ it and see if it works.)
21922192
@vindex ns-appearance@r{, a frame parameter}
21932193
@item ns-appearance
21942194
Only available on macOS, if set to @code{dark} draw this frame's
2195-
window-system window using the ``vibrant dark'' theme, otherwise use
2196-
the system default. The ``vibrant dark'' theme can be used to set the
2197-
toolbar and scrollbars to a dark appearance when using an Emacs theme
2198-
with a dark background.
2195+
window-system window using the ``vibrant dark'' theme, and if set to
2196+
@code{light} use the ``aqua'' theme, otherwise use the system default.
2197+
The ``vibrant dark'' theme can be used to set the toolbar and
2198+
scrollbars to a dark appearance when using an Emacs theme with a dark
2199+
background.
21992200

22002201
@vindex ns-transparent-titlebar@r{, a frame parameter}
22012202
@item ns-transparent-titlebar

doc/lispref/objects.texi

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2336,8 +2336,12 @@ same sequence of character codes and all these codes are in the range
23362336
@end group
23372337
@end example
23382338

2339-
However, two distinct buffers are never considered @code{equal}, even if
2340-
their textual contents are the same.
2339+
The @code{equal} function recursively compares the contents of objects
2340+
if they are integers, strings, markers, vectors, bool-vectors,
2341+
byte-code function objects, char-tables, records, or font objects.
2342+
Other objects are considered @code{equal} only if they are @code{eq}.
2343+
For example, two distinct buffers are never considered @code{equal},
2344+
even if their textual contents are the same.
23412345
@end defun
23422346

23432347
For @code{equal}, equality is defined recursively; for example, given

doc/lispref/windows.texi

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5915,10 +5915,6 @@ This function compares two window configurations as regards the
59155915
structure of windows, but ignores the values of point and the
59165916
saved scrolling positions---it can return @code{t} even if those
59175917
aspects differ.
5918-
5919-
The function @code{equal} can also compare two window configurations; it
5920-
regards configurations as unequal if they differ in any respect, even a
5921-
saved point.
59225918
@end defun
59235919

59245920
@defun window-configuration-frame config

etc/NEWS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ applies, and please also update docstrings as needed.
4242

4343
* Incompatible Lisp Changes in Emacs 28.1
4444

45+
** 'equal' no longer examines some contents of window configurations.
46+
Instead, it considers window configurations to be equal only if they
47+
are 'eq'. To compare contents, use 'compare-window-configurations'
48+
instead. This change helps fix a bug in 'sxhash-equal', which returned
49+
incorrect hashes for window configurations and some other objects.
50+
51+
** The obsolete function 'thread-alive-p' has been removed.
52+
4553

4654
* Lisp Changes in Emacs 28.1
4755

0 commit comments

Comments
 (0)