Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/emacs-mirror/emacs into pgtk
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuuki Harano committed Jan 9, 2020
2 parents f28489e + 17cfd70 commit 773ef18
Show file tree
Hide file tree
Showing 33 changed files with 680 additions and 426 deletions.
21 changes: 19 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1767,7 +1767,7 @@ AC_CHECK_HEADERS_ONCE(
sys/sysinfo.h
coff.h pty.h
sys/resource.h
sys/utsname.h pwd.h utmp.h util.h sys/prctl.h)
sys/utsname.h pwd.h utmp.h util.h)

AC_CACHE_CHECK([for ADDR_NO_RANDOMIZE],
[emacs_cv_personality_addr_no_randomize],
Expand Down Expand Up @@ -4261,9 +4261,26 @@ pthread_sigmask strsignal setitimer timer_getoverrun \
sendto recvfrom getsockname getifaddrs freeifaddrs \
gai_strerror sync \
getpwent endpwent getgrent endgrent \
cfmakeraw cfsetspeed __executable_start log2 prctl)
cfmakeraw cfsetspeed __executable_start log2 pthread_setname_np)
LIBS=$OLD_LIBS

if test "$ac_cv_func_pthread_setname_np" = "yes"; then
AC_CACHE_CHECK(
[whether pthread_setname_np takes a single argument],
[emacs_cv_pthread_setname_np_1arg],
[AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#include <pthread.h>]],
[[pthread_setname_np ("a");]])],
[emacs_cv_pthread_setname_np_1arg=yes],
[emacs_cv_pthread_setname_np_1arg=no])])
if test "$emacs_cv_pthread_setname_np_1arg" = "yes"; then
AC_DEFINE(
HAVE_PTHREAD_SETNAME_NP_1ARG, 1,
[Define to 1 if pthread_setname_np takes a single argument.])
fi
fi

dnl No need to check for posix_memalign if aligned_alloc works.
AC_CHECK_FUNCS([aligned_alloc posix_memalign], [break])
AC_CHECK_DECLS([aligned_alloc], [], [], [[#include <stdlib.h>]])
Expand Down
9 changes: 5 additions & 4 deletions doc/lispref/frames.texi
Original file line number Diff line number Diff line change
Expand Up @@ -2192,10 +2192,11 @@ it and see if it works.)
@vindex ns-appearance@r{, a frame parameter}
@item ns-appearance
Only available on macOS, if set to @code{dark} draw this frame's
window-system window using the ``vibrant dark'' theme, otherwise use
the system default. The ``vibrant dark'' theme can be used to set the
toolbar and scrollbars to a dark appearance when using an Emacs theme
with a dark background.
window-system window using the ``vibrant dark'' theme, and if set to
@code{light} use the ``aqua'' theme, otherwise use the system default.
The ``vibrant dark'' theme can be used to set the toolbar and
scrollbars to a dark appearance when using an Emacs theme with a dark
background.

@vindex ns-transparent-titlebar@r{, a frame parameter}
@item ns-transparent-titlebar
Expand Down
8 changes: 6 additions & 2 deletions doc/lispref/objects.texi
Original file line number Diff line number Diff line change
Expand Up @@ -2336,8 +2336,12 @@ same sequence of character codes and all these codes are in the range
@end group
@end example

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

For @code{equal}, equality is defined recursively; for example, given
Expand Down
4 changes: 0 additions & 4 deletions doc/lispref/windows.texi
Original file line number Diff line number Diff line change
Expand Up @@ -5915,10 +5915,6 @@ This function compares two window configurations as regards the
structure of windows, but ignores the values of point and the
saved scrolling positions---it can return @code{t} even if those
aspects differ.

The function @code{equal} can also compare two window configurations; it
regards configurations as unequal if they differ in any respect, even a
saved point.
@end defun

@defun window-configuration-frame config
Expand Down
8 changes: 8 additions & 0 deletions etc/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ applies, and please also update docstrings as needed.

* Incompatible Lisp Changes in Emacs 28.1

** 'equal' no longer examines some contents of window configurations.
Instead, it considers window configurations to be equal only if they
are 'eq'. To compare contents, use 'compare-window-configurations'
instead. This change helps fix a bug in 'sxhash-equal', which returned
incorrect hashes for window configurations and some other objects.

** The obsolete function 'thread-alive-p' has been removed.


* Lisp Changes in Emacs 28.1

Expand Down
Loading

0 comments on commit 773ef18

Please sign in to comment.