aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2016-11-19 14:31:05 -0800
committerPaul Eggert2016-11-19 14:31:05 -0800
commitc61ee94959ba96b2a327df0684593f7e569e30be (patch)
tree33e7b6bdb654b45ebeed805f48b1324b2ab038ec
parentb19e05b13192f72991b65b4b352e09c807fd581c (diff)
parent4af5981dc75c96e34a27922001106df05ee19e69 (diff)
downloademacs-c61ee94959ba96b2a327df0684593f7e569e30be.tar.gz
emacs-c61ee94959ba96b2a327df0684593f7e569e30be.zip
Merge from origin/emacs-25
4af5981 Add a comment in generated refcards about the source ef880a5 ; * etc/refcards/calccard.tex: Remove obsolete comment. 4887e7c js-mode: Fix indent problem after a regexp e992ac0 Fix sluggish display of symbols in UTF-8 language environment 1fc101b Don't confuse how Texinfo outputs @var with the input 91aa5d1 * doc/lispref/display.texi (Scroll Bars): * doc/lispref/frame... f758fcd * doc/emacs/cmdargs.texi (Initial Options): Copyedit for --da... 5b0cddd More fixes in copyright notices in etc/refcards/ f994c20 Update copyright text in refcards 9ad2ae7 Fix Outline command names 26c3554 Send text received by bracketed paste to process db0b58d Correct the statement about programming modes always running ... 78aece4 Improve documentation of 'occur' eb364fd Do call debugger on failed cl-assert 3ef4ee8 Avoid infloop in python 8da810f Don't refer to obsolete FEATURE-unload-hook 4f478ca Improve documentation of dabbrevs 7272e5d * lisp/chistory.el (list-command-history): Doc fix. (Bug#24890) 89b7482 * lisp/simple.el (set-mark-command): Doc fix. (Bug#24890) 3b199f7 Improve documentation of some Help commands 93d3a0e Fix documentation of yes-or-no prompts af04919 Fix documentation of partial completion style ed80184 Fix documentation of the mode line on emacsclient frames e6be855 Fix description of 'C-z' in User manual 16f7007 Improve and clarify documentation of Outline Mode 31d93aa Add Emacs version number to nt/README.W32 0b6b815 Fix python-mode hideshow regexp dc152c5 Modernize usage of 'macOS' in doc and comments 84c5343 Prefer comments /* like this */ in C code bb61e50 * doc/lispref/loading.texi (Autoload): Better link (Bug#24845). 3ef86fd Clarify documentation of face attribute functions de51d59 ; * nt/README.W32: Minor copyedits. db436e9 Don't call debug on failed cl-assert # Conflicts: # doc/emacs/cmdargs.texi # etc/NEWS # etc/PROBLEMS # lisp/auth-source.el # lisp/net/tramp-sh.el
-rw-r--r--INSTALL4
-rw-r--r--Makefile.in2
-rw-r--r--README5
-rw-r--r--admin/CPP-DEFINES4
-rw-r--r--admin/admin.el3
-rw-r--r--configure.ac20
-rw-r--r--doc/emacs/abbrevs.texi17
-rw-r--r--doc/emacs/cmdargs.texi4
-rw-r--r--doc/emacs/entering.texi2
-rw-r--r--doc/emacs/help.texi12
-rw-r--r--doc/emacs/macos.texi14
-rw-r--r--doc/emacs/mini.texi10
-rw-r--r--doc/emacs/modes.texi11
-rw-r--r--doc/emacs/msdos.texi2
-rw-r--r--doc/emacs/mule.texi8
-rw-r--r--doc/emacs/rmail.texi12
-rw-r--r--doc/emacs/screen.texi7
-rw-r--r--doc/emacs/search.texi26
-rw-r--r--doc/emacs/text.texi129
-rw-r--r--doc/lispref/control.texi2
-rw-r--r--doc/lispref/display.texi15
-rw-r--r--doc/lispref/frames.texi8
-rw-r--r--doc/lispref/loading.texi4
-rw-r--r--doc/lispref/nonascii.texi3
-rw-r--r--doc/lispref/os.texi2
-rw-r--r--doc/lispref/processes.texi2
-rw-r--r--doc/lispref/text.texi2
-rw-r--r--doc/lispref/tips.texi8
-rw-r--r--doc/lispref/windows.texi6
-rw-r--r--doc/misc/efaq.texi12
-rw-r--r--doc/misc/gnus.texi2
-rw-r--r--doc/misc/idlwave.texi36
-rw-r--r--doc/misc/mairix-el.texi2
-rw-r--r--doc/misc/org.texi2
-rw-r--r--doc/misc/tramp.texi2
-rw-r--r--etc/DISTRIB4
-rw-r--r--etc/MACHINES4
-rw-r--r--etc/NEWS.224
-rw-r--r--etc/NEWS.2410
-rw-r--r--etc/NEWS.2526
-rw-r--r--etc/NEXTSTEP30
-rw-r--r--etc/ORG-NEWS2
-rw-r--r--etc/TODO23
-rw-r--r--etc/refcards/calccard.tex22
-rw-r--r--etc/refcards/cs-dired-ref.tex18
-rw-r--r--etc/refcards/cs-refcard.tex18
-rw-r--r--etc/refcards/cs-survival.tex20
-rw-r--r--etc/refcards/de-refcard.tex20
-rw-r--r--etc/refcards/dired-ref.tex18
-rw-r--r--etc/refcards/fr-dired-ref.tex19
-rw-r--r--etc/refcards/fr-refcard.tex18
-rw-r--r--etc/refcards/fr-survival.tex20
-rw-r--r--etc/refcards/gnus-refcard.tex8
-rw-r--r--etc/refcards/orgcard.tex19
-rw-r--r--etc/refcards/pl-refcard.tex18
-rw-r--r--etc/refcards/pt-br-refcard.tex18
-rw-r--r--etc/refcards/refcard.tex18
-rw-r--r--etc/refcards/ru-refcard.tex25
-rw-r--r--etc/refcards/sk-dired-ref.tex18
-rw-r--r--etc/refcards/sk-refcard.tex18
-rw-r--r--etc/refcards/sk-survival.tex20
-rw-r--r--etc/refcards/survival.tex20
-rw-r--r--etc/refcards/vipcard.tex18
-rw-r--r--etc/refcards/viperCard.tex18
-rw-r--r--lib-src/Makefile.in2
-rw-r--r--lisp/arc-mode.el2
-rw-r--r--lisp/auth-source.el16
-rw-r--r--lisp/battery.el6
-rw-r--r--lisp/cedet/semantic/bovine/gcc.el2
-rw-r--r--lisp/chistory.el2
-rw-r--r--lisp/dabbrev.el5
-rw-r--r--lisp/emacs-lisp/cl-preloaded.el2
-rw-r--r--lisp/faces.el2
-rw-r--r--lisp/international/fontset.el5
-rw-r--r--lisp/international/mule-cmds.el2
-rw-r--r--lisp/international/ucs-normalize.el2
-rw-r--r--lisp/ls-lisp.el2
-rw-r--r--lisp/mail/emacsbug.el4
-rw-r--r--lisp/man.el2
-rw-r--r--lisp/menu-bar.el2
-rw-r--r--lisp/net/ange-ftp.el2
-rw-r--r--lisp/net/browse-url.el6
-rw-r--r--lisp/net/tramp-sh.el6
-rw-r--r--lisp/net/tramp.el2
-rw-r--r--lisp/org/org.el4
-rw-r--r--lisp/outline.el13
-rw-r--r--lisp/printing.el2
-rw-r--r--lisp/progmodes/gdb-mi.el10
-rw-r--r--lisp/progmodes/idlwave.el18
-rw-r--r--lisp/progmodes/js.el4
-rw-r--r--lisp/progmodes/python.el4
-rw-r--r--lisp/simple.el4
-rw-r--r--lisp/term.el8
-rw-r--r--lisp/term/ns-win.el14
-rw-r--r--lisp/term/xterm.el2
-rw-r--r--lisp/textmodes/rst.el2
-rw-r--r--lisp/vc/pcvs.el4
-rw-r--r--nextstep/INSTALL2
-rw-r--r--nextstep/Makefile.in4
-rw-r--r--nextstep/README22
-rw-r--r--nextstep/templates/Emacs.desktop.in2
-rw-r--r--nextstep/templates/Info-gnustep.plist.in4
-rw-r--r--nextstep/templates/Info.plist.in2
-rw-r--r--nt/README.W32172
-rw-r--r--src/coding.c2
-rw-r--r--src/conf_post.h2
-rw-r--r--src/emacs-module.c6
-rw-r--r--src/emacs.c2
-rw-r--r--src/frame.c2
-rw-r--r--src/gfilenotify.c2
-rw-r--r--src/gtkutil.c4
-rw-r--r--src/image.c4
-rw-r--r--src/kqueue.c2
-rw-r--r--src/macfont.h2
-rw-r--r--src/macfont.m6
-rw-r--r--src/nsfns.m8
-rw-r--r--src/nsfont.m4
-rw-r--r--src/nsimage.m4
-rw-r--r--src/nsmenu.m14
-rw-r--r--src/nsselect.m4
-rw-r--r--src/nsterm.m56
-rw-r--r--src/sysdep.c2
-rw-r--r--src/unexmacosx.c12
-rw-r--r--src/w32fns.c2
-rw-r--r--src/xdisp.c2
-rw-r--r--src/xselect.c7
-rw-r--r--src/xsmfns.c2
-rw-r--r--src/xterm.c2
128 files changed, 824 insertions, 594 deletions
diff --git a/INSTALL b/INSTALL
index bc859b2c13b..76fe87d058f 100644
--- a/INSTALL
+++ b/INSTALL
@@ -5,7 +5,7 @@ See the end of the file for license conditions.
5 5
6 6
7This file contains general information on building GNU Emacs. 7This file contains general information on building GNU Emacs.
8For more information specific to the MS-Windows, GNUstep/Mac OS X, and 8For more information specific to the MS-Windows, GNUstep/macOS, and
9MS-DOS ports, also read the files nt/INSTALL, nextstep/INSTALL, and 9MS-DOS ports, also read the files nt/INSTALL, nextstep/INSTALL, and
10msdos/INSTALL. For information about building from a repository checkout 10msdos/INSTALL. For information about building from a repository checkout
11(rather than a release), also read the file INSTALL.REPO. 11(rather than a release), also read the file INSTALL.REPO.
@@ -208,7 +208,7 @@ corresponding command is 'yum-builddep emacs'.
208 208
209DETAILED BUILDING AND INSTALLATION: 209DETAILED BUILDING AND INSTALLATION:
210 210
211(This is for a Unix or Unix-like system. For GNUstep and Mac OS X, 211(This is for a Unix or Unix-like system. For GNUstep and macOS,
212see nextstep/INSTALL. For non-ancient versions of MS Windows, see 212see nextstep/INSTALL. For non-ancient versions of MS Windows, see
213the file nt/INSTALL. For MS-DOS and MS Windows 3.X, see msdos/INSTALL.) 213the file nt/INSTALL. For MS-DOS and MS Windows 3.X, see msdos/INSTALL.)
214 214
diff --git a/Makefile.in b/Makefile.in
index 109583705fb..2351537c3bc 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -113,7 +113,7 @@ am__v_at_1 =
113 113
114# ==================== Where To Install Things ==================== 114# ==================== Where To Install Things ====================
115 115
116# Location to install Emacs.app under GNUstep / Mac OS X. 116# Location to install Emacs.app under GNUstep / macOS.
117# Later values may use these. 117# Later values may use these.
118ns_appbindir=@ns_appbindir@ 118ns_appbindir=@ns_appbindir@
119ns_appresdir=@ns_appresdir@ 119ns_appresdir=@ns_appresdir@
diff --git a/README b/README
index 941cdfc2716..2a69b306ad9 100644
--- a/README
+++ b/README
@@ -86,9 +86,8 @@ There are several subdirectories:
86 in Emacs Lisp manual. 86 in Emacs Lisp manual.
87'msdos' holds configuration files for compiling Emacs under MS-DOS. 87'msdos' holds configuration files for compiling Emacs under MS-DOS.
88'nextstep' holds instructions and some other files for compiling the 88'nextstep' holds instructions and some other files for compiling the
89 Nextstep port of Emacs, for GNUstep and Mac OS X Cocoa. 89 Nextstep port of Emacs, for GNUstep and macOS Cocoa.
90'nt' holds various command files and documentation files that pertain 90'nt' holds code and documentation for building Emacs on MS-Windows.
91 to building and running Emacs on Windows 9X/ME/NT/2000/XP.
92'test' holds tests for various aspects of Emacs's functionality. 91'test' holds tests for various aspects of Emacs's functionality.
93 92
94 Building Emacs on non-Posix platforms requires tools that aren't part 93 Building Emacs on non-Posix platforms requires tools that aren't part
diff --git a/admin/CPP-DEFINES b/admin/CPP-DEFINES
index 5e6146b33d8..487c1501bb9 100644
--- a/admin/CPP-DEFINES
+++ b/admin/CPP-DEFINES
@@ -21,7 +21,7 @@ WINDOWSNT Compiling the native MS-Windows (W32) port.
21__MINGW32__ Compiling the W32 port with the MinGW or MinGW-w64 ports of GCC. 21__MINGW32__ Compiling the W32 port with the MinGW or MinGW-w64 ports of GCC.
22_MSC_VER Compiling the W32 port with the Microsoft C compiler. 22_MSC_VER Compiling the W32 port with the Microsoft C compiler.
23MINGW_W64 Compiling the W32 port with the MinGW-w64 port of GCC. 23MINGW_W64 Compiling the W32 port with the MinGW-w64 port of GCC.
24DARWIN_OS Compiling on Mac OS X or pure Darwin (and using s/darwin.h). 24DARWIN_OS Compiling on macOS or pure Darwin (and using s/darwin.h).
25SOLARIS2 25SOLARIS2
26USG 26USG
27USG5_4 27USG5_4
@@ -29,7 +29,7 @@ USG5_4
29** Distinguishing GUIs ** 29** Distinguishing GUIs **
30 30
31HAVE_NTGUI Use the native W32 GUI for windows, frames, menus&scrollbars. 31HAVE_NTGUI Use the native W32 GUI for windows, frames, menus&scrollbars.
32HAVE_NS Use the NeXT/OpenStep/Cocoa UI under Mac OS X or GNUstep. 32HAVE_NS Use the NeXT/OpenStep/Cocoa UI under macOS or GNUstep.
33NS_IMPL_GNUSTEP Compile support for GNUstep implementation of NS GUI API. 33NS_IMPL_GNUSTEP Compile support for GNUstep implementation of NS GUI API.
34NS_IMPL_COCOA Compile support for Cocoa (Apple) implementation of NS GUI API. 34NS_IMPL_COCOA Compile support for Cocoa (Apple) implementation of NS GUI API.
35HAVE_X11 Compile support for the X11 GUI. 35HAVE_X11 Compile support for the X11 GUI.
diff --git a/admin/admin.el b/admin/admin.el
index 4af1ff9003a..9f3b68e0bb9 100644
--- a/admin/admin.el
+++ b/admin/admin.el
@@ -109,6 +109,9 @@ Root must be the root of an Emacs source tree."
109 (rx (and "AC_INIT" (1+ (not (in ?,))) 109 (rx (and "AC_INIT" (1+ (not (in ?,)))
110 ?, (0+ space) 110 ?, (0+ space)
111 (submatch (1+ (in "0-9.")))))) 111 (submatch (1+ (in "0-9."))))))
112 (set-version-in-file root "nt/README.W32" version
113 (rx (and "version" (1+ space)
114 (submatch (1+ (in "0-9."))))))
112 ;; TODO: msdos could easily extract the version number from 115 ;; TODO: msdos could easily extract the version number from
113 ;; configure.ac with sed, rather than duplicating the information. 116 ;; configure.ac with sed, rather than duplicating the information.
114 (set-version-in-file root "msdos/sed2v2.inp" version 117 (set-version-in-file root "msdos/sed2v2.inp" version
diff --git a/configure.ac b/configure.ac
index d9f52e5b8ad..c9759e18a02 100644
--- a/configure.ac
+++ b/configure.ac
@@ -343,8 +343,8 @@ OPTION_DEFAULT_ON([toolkit-scroll-bars],[don't use Motif or Xaw3d scroll bars])
343OPTION_DEFAULT_ON([xaw3d],[don't use Xaw3d]) 343OPTION_DEFAULT_ON([xaw3d],[don't use Xaw3d])
344OPTION_DEFAULT_ON([xim],[don't use X11 XIM]) 344OPTION_DEFAULT_ON([xim],[don't use X11 XIM])
345AC_ARG_WITH([ns],[AS_HELP_STRING([--with-ns], 345AC_ARG_WITH([ns],[AS_HELP_STRING([--with-ns],
346[use Nextstep (OS X Cocoa or GNUstep) windowing system. 346[use Nextstep (macOS Cocoa or GNUstep) windowing system.
347On by default on Mac OS X.])],[],[with_ns=maybe]) 347On by default on macOS.])],[],[with_ns=maybe])
348OPTION_DEFAULT_OFF([w32], [use native MS Windows GUI in a Cygwin build]) 348OPTION_DEFAULT_OFF([w32], [use native MS Windows GUI in a Cygwin build])
349 349
350OPTION_DEFAULT_ON([gpm],[don't use -lgpm for mouse support on a GNU/Linux console]) 350OPTION_DEFAULT_ON([gpm],[don't use -lgpm for mouse support on a GNU/Linux console])
@@ -608,7 +608,7 @@ case "${canonical}" in
608 opsys=openbsd 608 opsys=openbsd
609 ;; 609 ;;
610 610
611 ## Apple Darwin / Mac OS X 611 ## Apple Darwin / macOS
612 *-apple-darwin* ) 612 *-apple-darwin* )
613 case "${canonical}" in 613 case "${canonical}" in
614 *-apple-darwin[0-9].*) unported=yes ;; 614 *-apple-darwin[0-9].*) unported=yes ;;
@@ -1895,14 +1895,14 @@ Either fix this, or re-configure with the option '--without-ns'.])])
1895 1895
1896 macfont_file="" 1896 macfont_file=""
1897 if test "${NS_IMPL_COCOA}" = "yes"; then 1897 if test "${NS_IMPL_COCOA}" = "yes"; then
1898 AC_MSG_CHECKING([for OSX 10.6 or newer]) 1898 AC_MSG_CHECKING([for Mac OS X 10.6 or newer])
1899 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <AppKit/AppKit.h>], 1899 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <AppKit/AppKit.h>],
1900 [ 1900 [
1901#ifdef MAC_OS_X_VERSION_MAX_ALLOWED 1901#ifdef MAC_OS_X_VERSION_MAX_ALLOWED
1902#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060 1902#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
1903 ; /* OK */ 1903 ; /* OK */
1904#else 1904#else
1905 error "OSX 10.6 or newer required"; 1905 error "Mac OS X 10.6 or newer required";
1906#endif 1906#endif
1907#endif 1907#endif
1908 ])], 1908 ])],
@@ -1911,7 +1911,7 @@ Either fix this, or re-configure with the option '--without-ns'.])])
1911 AC_MSG_RESULT([$ns_osx_have_106]) 1911 AC_MSG_RESULT([$ns_osx_have_106])
1912 1912
1913 if test $ns_osx_have_106 = no; then 1913 if test $ns_osx_have_106 = no; then
1914 AC_MSG_ERROR([OSX 10.6 or newer is required]); 1914 AC_MSG_ERROR([Mac OS X 10.6 or newer is required]);
1915 fi 1915 fi
1916 fi 1916 fi
1917fi 1917fi
@@ -3615,9 +3615,9 @@ AC_CHECK_HEADERS_ONCE(malloc/malloc.h)
3615GNUSTEP_CFLAGS= 3615GNUSTEP_CFLAGS=
3616### Use NeXTstep API to implement GUI. 3616### Use NeXTstep API to implement GUI.
3617if test "${HAVE_NS}" = "yes"; then 3617if test "${HAVE_NS}" = "yes"; then
3618 AC_DEFINE(HAVE_NS, 1, [Define to 1 if you are using the NeXTstep API, either GNUstep or Cocoa on Mac OS X.]) 3618 AC_DEFINE(HAVE_NS, 1, [Define to 1 if you are using the NeXTstep API, either GNUstep or Cocoa on macOS.])
3619 if test "${NS_IMPL_COCOA}" = "yes"; then 3619 if test "${NS_IMPL_COCOA}" = "yes"; then
3620 AC_DEFINE(NS_IMPL_COCOA, 1, [Define to 1 if you are using NS windowing under MacOS X.]) 3620 AC_DEFINE(NS_IMPL_COCOA, 1, [Define to 1 if you are using NS windowing under macOS.])
3621 fi 3621 fi
3622 if test "${NS_IMPL_GNUSTEP}" = "yes"; then 3622 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
3623 AC_DEFINE(NS_IMPL_GNUSTEP, 1, [Define to 1 if you are using NS windowing under GNUstep.]) 3623 AC_DEFINE(NS_IMPL_GNUSTEP, 1, [Define to 1 if you are using NS windowing under GNUstep.])
@@ -4732,9 +4732,9 @@ case $opsys in
4732 ;; 4732 ;;
4733 4733
4734 darwin) 4734 darwin)
4735 dnl Not __APPLE__, as this may not be defined on non-OSX Darwin. 4735 dnl Not __APPLE__, as this may not be defined on non-macOS Darwin.
4736 dnl Not DARWIN, because Panther and lower CoreFoundation.h use DARWIN to 4736 dnl Not DARWIN, because Panther and lower CoreFoundation.h use DARWIN to
4737 dnl distinguish OS X from pure Darwin. 4737 dnl distinguish macOS from pure Darwin.
4738 AC_DEFINE(DARWIN_OS, [], [Define if the system is Darwin.]) 4738 AC_DEFINE(DARWIN_OS, [], [Define if the system is Darwin.])
4739 ;; 4739 ;;
4740 4740
diff --git a/doc/emacs/abbrevs.texi b/doc/emacs/abbrevs.texi
index a1db34cf0ee..227fe6f7ee2 100644
--- a/doc/emacs/abbrevs.texi
+++ b/doc/emacs/abbrevs.texi
@@ -341,7 +341,7 @@ abbrev expansion happens only when you request it explicitly.
341@table @kbd 341@table @kbd
342@item M-/ 342@item M-/
343Expand the word in the buffer before point as a @dfn{dynamic abbrev}, 343Expand the word in the buffer before point as a @dfn{dynamic abbrev},
344by searching in the buffer for words starting with that abbreviation 344by searching for words starting with that abbreviation
345(@code{dabbrev-expand}). 345(@code{dabbrev-expand}).
346 346
347@item C-M-/ 347@item C-M-/
@@ -361,14 +361,19 @@ The variable @code{dabbrev-limit}, if non-@code{nil}, specifies how far
361away in the buffer to search for an expansion. 361away in the buffer to search for an expansion.
362 362
363@vindex dabbrev-check-all-buffers 363@vindex dabbrev-check-all-buffers
364@vindex dabbrev-check-other-buffers
364 After scanning the current buffer, @kbd{M-/} normally searches other 365 After scanning the current buffer, @kbd{M-/} normally searches other
365buffers, unless you have set @code{dabbrev-check-all-buffers} to 366buffers. The variables @code{dabbrev-check-all-buffers} and
366@code{nil}. 367@code{dabbrev-check-other-buffers} can be used to determine which
368other buffers, if any, are searched.
367 369
370@vindex dabbrev-ignored-buffer-names
368@vindex dabbrev-ignored-buffer-regexps 371@vindex dabbrev-ignored-buffer-regexps
369 For finer control over which buffers to scan, customize the variable 372 For finer control over which buffers to scan, customize the
370@code{dabbrev-ignored-buffer-regexps}. Its value is a list of regular 373variables @code{dabbrev-ignored-buffer-names} and
371expressions. If a buffer's name matches any of these regular 374@code{dabbrev-ignored-buffer-regexps}. The value of the former is a
375list of buffer names to skip. The value of the latter is a list of
376regular expressions; if a buffer's name matches any of these regular
372expressions, dynamic abbrev expansion skips that buffer. 377expressions, dynamic abbrev expansion skips that buffer.
373 378
374 A negative argument to @kbd{M-/}, as in @kbd{C-u - M-/}, says to 379 A negative argument to @kbd{M-/}, as in @kbd{C-u - M-/}, says to
diff --git a/doc/emacs/cmdargs.texi b/doc/emacs/cmdargs.texi
index 8d3d936b7b3..524cd8dd268 100644
--- a/doc/emacs/cmdargs.texi
+++ b/doc/emacs/cmdargs.texi
@@ -558,11 +558,11 @@ variables is not set, the category defaults to the value of the
558@env{LANG} is not set. But if @env{LC_ALL} is specified, it overrides 558@env{LANG} is not set. But if @env{LC_ALL} is specified, it overrides
559the settings of all the other locale environment variables. 559the settings of all the other locale environment variables.
560 560
561On MS-Windows and OS X, if @env{LANG} is not already set in the 561On MS-Windows and macOS, if @env{LANG} is not already set in the
562environment, Emacs sets it based on the system-wide default. You can 562environment, Emacs sets it based on the system-wide default. You can
563set this in the ``Regional Settings'' Control Panel on some versions 563set this in the ``Regional Settings'' Control Panel on some versions
564of MS-Windows, and in the ``Language and Region'' System Preference on 564of MS-Windows, and in the ``Language and Region'' System Preference on
565OS X. 565macOS.
566 566
567The value of the @env{LC_CTYPE} category is 567The value of the @env{LC_CTYPE} category is
568matched against entries in @code{locale-language-names}, 568matched against entries in @code{locale-language-names},
diff --git a/doc/emacs/entering.texi b/doc/emacs/entering.texi
index 09331e80fb1..7f186cfafe5 100644
--- a/doc/emacs/entering.texi
+++ b/doc/emacs/entering.texi
@@ -100,7 +100,7 @@ display them initially.
100Kill Emacs (@code{save-buffers-kill-terminal}). 100Kill Emacs (@code{save-buffers-kill-terminal}).
101@item C-z 101@item C-z
102On a text terminal, suspend Emacs; on a graphical display, 102On a text terminal, suspend Emacs; on a graphical display,
103iconify (or ``minimize'') the selected frame (@code{suspend-emacs}). 103iconify (or ``minimize'') the selected frame (@code{suspend-frame}).
104@end table 104@end table
105 105
106@kindex C-x C-c 106@kindex C-x C-c
diff --git a/doc/emacs/help.texi b/doc/emacs/help.texi
index 4b7b7fc6315..64da8907172 100644
--- a/doc/emacs/help.texi
+++ b/doc/emacs/help.texi
@@ -411,8 +411,10 @@ Follow a hyperlink that you click on.
411Show all documentation about the symbol at point 411Show all documentation about the symbol at point
412(@code{help-follow-symbol}). 412(@code{help-follow-symbol}).
413@item C-c C-f 413@item C-c C-f
414@itemx r
414Go forward to the next help topic (@code{help-go-forward}). 415Go forward to the next help topic (@code{help-go-forward}).
415@item C-c C-b 416@item C-c C-b
417@itemx l
416Go back to the previous help topic (@code{help-go-back}). 418Go back to the previous help topic (@code{help-go-back}).
417@end table 419@end table
418 420
@@ -422,15 +424,18 @@ Go back to the previous help topic (@code{help-go-back}).
422@findex help-go-forward 424@findex help-go-forward
423@kindex RET @r{(Help mode)} 425@kindex RET @r{(Help mode)}
424@kindex C-c C-b @r{(Help mode)} 426@kindex C-c C-b @r{(Help mode)}
427@kindex l @r{(Help mode)}
425@kindex C-c C-f @r{(Help mode)} 428@kindex C-c C-f @r{(Help mode)}
429@kindex r @r{(Help mode)}
426 When a function name, variable name, or face name (@pxref{Faces}) 430 When a function name, variable name, or face name (@pxref{Faces})
427appears in the documentation in the help buffer, it is normally an 431appears in the documentation in the help buffer, it is normally an
428underlined @dfn{hyperlink}. To view the associated documentation, 432underlined @dfn{hyperlink}. To view the associated documentation,
429move point there and type @key{RET} (@code{help-follow}), or click on 433move point there and type @key{RET} (@code{help-follow}), or click on
430the hyperlink with @kbd{mouse-1} or @kbd{mouse-2}. Doing so replaces 434the hyperlink with @kbd{mouse-1} or @kbd{mouse-2}. Doing so replaces
431the contents of the help buffer; to retrace your steps, type @kbd{C-c 435the contents of the help buffer; to retrace your steps, type @kbd{C-c
432C-b} (@code{help-go-back}). While retracing your steps, you can go 436C-b} or @kbd{l} (@code{help-go-back}). While retracing your steps,
433forward by using @kbd{C-c C-b} (@code{help-go-forward}). 437you can go forward by using @kbd{C-c C-f} or @kbd{r}
438(@code{help-go-forward}).
434 439
435@cindex URL, viewing in help 440@cindex URL, viewing in help
436@cindex help, viewing web pages 441@cindex help, viewing web pages
@@ -556,7 +561,8 @@ commands that you are not familiar with, you can use @kbd{C-h k} or
556 Each Emacs major mode typically redefines a few keys and makes other 561 Each Emacs major mode typically redefines a few keys and makes other
557changes in how editing works. @kbd{C-h m} (@code{describe-mode}) 562changes in how editing works. @kbd{C-h m} (@code{describe-mode})
558displays documentation on the current major mode, which normally 563displays documentation on the current major mode, which normally
559describes the commands and features that are changed in this mode. 564describes the commands and features that are changed in this mode, and
565also its key bindings.
560 566
561@kindex C-h b 567@kindex C-h b
562@findex describe-bindings 568@findex describe-bindings
diff --git a/doc/emacs/macos.texi b/doc/emacs/macos.texi
index b0597dc2499..6e6520b60bc 100644
--- a/doc/emacs/macos.texi
+++ b/doc/emacs/macos.texi
@@ -3,19 +3,19 @@
3@c See file emacs.texi for copying conditions. 3@c See file emacs.texi for copying conditions.
4@node Mac OS / GNUstep 4@node Mac OS / GNUstep
5@appendix Emacs and Mac OS / GNUstep 5@appendix Emacs and Mac OS / GNUstep
6@cindex Mac OS X 6@cindex macOS
7@cindex Macintosh 7@cindex Macintosh
8@cindex GNUstep 8@cindex GNUstep
9 9
10 This section describes the peculiarities of using Emacs built with 10 This section describes the peculiarities of using Emacs built with
11the GNUstep libraries on GNU/Linux or other operating systems, or on 11the GNUstep libraries on GNU/Linux or other operating systems, or on
12Mac OS X with native window system support. On Mac OS X, Emacs can be 12macOS with native window system support. On macOS, Emacs can be
13built either without window system support, with X11, or with the 13built either without window system support, with X11, or with the
14Cocoa interface; this section only applies to the Cocoa build. This 14Cocoa interface; this section only applies to the Cocoa build. This
15does not support versions of Mac OS X earlier than 10.6. 15does not support versions before Mac OS X 10.6.
16 16
17 For various historical and technical reasons, Emacs uses the term 17 For various historical and technical reasons, Emacs uses the term
18@samp{Nextstep} internally, instead of ``Cocoa'' or ``Mac OS X''; for 18@samp{Nextstep} internally, instead of ``Cocoa'' or ``macOS''; for
19instance, most of the commands and variables described in this section 19instance, most of the commands and variables described in this section
20begin with @samp{ns-}, which is short for @samp{Nextstep}. NeXTstep 20begin with @samp{ns-}, which is short for @samp{Nextstep}. NeXTstep
21was an application interface released by NeXT Inc during the 1980s, of 21was an application interface released by NeXT Inc during the 1980s, of
@@ -84,7 +84,7 @@ set, which often causes the subprocesses it launches to behave differently than
84they would when launched from the shell. 84they would when launched from the shell.
85 85
86For the PATH and MANPATH variables, a system-wide method 86For the PATH and MANPATH variables, a system-wide method
87of setting PATH is recommended on Mac OS X, using the 87of setting PATH is recommended on macOS, using the
88@file{/etc/paths} files and the @file{/etc/paths.d} directory. 88@file{/etc/paths} files and the @file{/etc/paths.d} directory.
89 89
90@node Mac / GNUstep Customization 90@node Mac / GNUstep Customization
@@ -117,8 +117,8 @@ close the altered one.
117Useful in this context is the listing of all faces obtained by 117Useful in this context is the listing of all faces obtained by
118@kbd{M-x list-faces-display}. 118@kbd{M-x list-faces-display}.
119 119
120@cindex Core Text, on Mac OS X 120@cindex Core Text, on macOS
121In Mac OS X, Emacs uses a Core Text based font backend 121In macOS, Emacs uses a Core Text based font backend
122by default. If you prefer the older font style, enter the following 122by default. If you prefer the older font style, enter the following
123at the command-line before starting Emacs: 123at the command-line before starting Emacs:
124 124
diff --git a/doc/emacs/mini.texi b/doc/emacs/mini.texi
index be4206cb60c..7c97e425713 100644
--- a/doc/emacs/mini.texi
+++ b/doc/emacs/mini.texi
@@ -469,8 +469,8 @@ separately. (For example, when completing command names,
469@samp{em-l-m} completes to @samp{emacs-lisp-mode}.) 469@samp{em-l-m} completes to @samp{emacs-lisp-mode}.)
470 470
471Furthermore, a @samp{*} in the minibuffer text is treated as a 471Furthermore, a @samp{*} in the minibuffer text is treated as a
472@dfn{wildcard}---it matches any character at the corresponding 472@dfn{wildcard}---it matches any string of characters at the
473position in the completion alternative. 473corresponding position in the completion alternative.
474 474
475@item emacs22 475@item emacs22
476This completion style is similar to @code{basic}, except that it 476This completion style is similar to @code{basic}, except that it
@@ -788,8 +788,8 @@ File ‘foo.el’ exists; overwrite? (y or n)
788Because this query does not actually use the minibuffer, the usual 788Because this query does not actually use the minibuffer, the usual
789minibuffer editing commands cannot be used. However, you can perform 789minibuffer editing commands cannot be used. However, you can perform
790some window scrolling operations while the query is active: @kbd{C-l} 790some window scrolling operations while the query is active: @kbd{C-l}
791recenters the selected window; @kbd{M-v} (or @key{PageDown} or 791recenters the selected window; @kbd{C-v} (or @key{PageDown} or
792@key{next}) scrolls forward; @kbd{C-v} (or @key{PageUp}, or 792@key{next}) scrolls forward; @kbd{M-v} (or @key{PageUp}, or
793@key{prior}) scrolls backward; @kbd{C-M-v} scrolls forward in the next 793@key{prior}) scrolls backward; @kbd{C-M-v} scrolls forward in the next
794window; and @kbd{C-M-S-v} scrolls backward in the next window. Typing 794window; and @kbd{C-M-S-v} scrolls backward in the next window. Typing
795@kbd{C-g} dismisses the query, and quits the command that issued it 795@kbd{C-g} dismisses the query, and quits the command that issued it
@@ -811,5 +811,5 @@ Buffer foo.el modified; kill anyway? (yes or no)
811To answer, you must type @samp{yes} or @samp{no} into the minibuffer, 811To answer, you must type @samp{yes} or @samp{no} into the minibuffer,
812followed by @key{RET}. The minibuffer behaves as described in the 812followed by @key{RET}. The minibuffer behaves as described in the
813previous sections; you can switch to another window with @kbd{C-x o}, 813previous sections; you can switch to another window with @kbd{C-x o},
814use the history commands @kbd{M-p} and @kbd{M-f}, etc. Type @kbd{C-g} 814use the history commands @kbd{M-p} and @kbd{M-n}, etc. Type @kbd{C-g}
815to quit the minibuffer and the querying command. 815to quit the minibuffer and the querying command.
diff --git a/doc/emacs/modes.texi b/doc/emacs/modes.texi
index c1564e9299b..63e31ab568c 100644
--- a/doc/emacs/modes.texi
+++ b/doc/emacs/modes.texi
@@ -113,10 +113,13 @@ hook}, a customizable list of Lisp functions to run each time the mode
113is enabled in a buffer. @xref{Hooks}, for more information about 113is enabled in a buffer. @xref{Hooks}, for more information about
114hooks. Each mode hook is named after its major mode, e.g., Fortran 114hooks. Each mode hook is named after its major mode, e.g., Fortran
115mode has @code{fortran-mode-hook}. Furthermore, all text-based major 115mode has @code{fortran-mode-hook}. Furthermore, all text-based major
116modes run @code{text-mode-hook}, and all programming language modes 116modes run @code{text-mode-hook}, and many programming language modes
117run @code{prog-mode-hook}, prior to running their own mode hooks. 117@footnote{More specifically, the modes which are ''derived'' from
118Hook functions can look at the value of the variable @code{major-mode} 118@code{prog-mode} (@pxref{Derived Modes,,, elisp, The Emacs Lisp
119to see which mode is actually being entered. 119Reference Manual}).} (including all those distributed with Emacs) run
120@code{prog-mode-hook}, prior to running their own mode hooks. Hook
121functions can look at the value of the variable @code{major-mode} to
122see which mode is actually being entered.
120 123
121 Mode hooks are commonly used to enable minor modes (@pxref{Minor 124 Mode hooks are commonly used to enable minor modes (@pxref{Minor
122Modes}). For example, you can put the following lines in your init 125Modes}). For example, you can put the following lines in your init
diff --git a/doc/emacs/msdos.texi b/doc/emacs/msdos.texi
index a87561ccf18..2793bb944bc 100644
--- a/doc/emacs/msdos.texi
+++ b/doc/emacs/msdos.texi
@@ -366,7 +366,7 @@ Emulate @sc{gnu} systems; this is the default. This sets
366Emulate Unix systems. Like @code{GNU}, but sets 366Emulate Unix systems. Like @code{GNU}, but sets
367@code{ls-lisp-verbosity} to @code{(links uid)}. 367@code{ls-lisp-verbosity} to @code{(links uid)}.
368@item MacOS 368@item MacOS
369Emulate MacOS@. Sets @code{ls-lisp-ignore-case} to @code{t}, and 369Emulate macOS@. Sets @code{ls-lisp-ignore-case} to @code{t}, and
370@code{ls-lisp-dirs-first} and @code{ls-lisp-verbosity} to @code{nil}. 370@code{ls-lisp-dirs-first} and @code{ls-lisp-verbosity} to @code{nil}.
371@item MS-Windows 371@item MS-Windows
372Emulate MS-Windows. Sets @code{ls-lisp-ignore-case} and 372Emulate MS-Windows. Sets @code{ls-lisp-ignore-case} and
diff --git a/doc/emacs/mule.texi b/doc/emacs/mule.texi
index e735343cc75..882d75f5e61 100644
--- a/doc/emacs/mule.texi
+++ b/doc/emacs/mule.texi
@@ -745,7 +745,7 @@ exactly what to do for end-of-line conversion:
745@item @dots{}-unix 745@item @dots{}-unix
746Don't do any end-of-line conversion; assume the file uses 746Don't do any end-of-line conversion; assume the file uses
747newline to separate lines. (This is the convention normally used 747newline to separate lines. (This is the convention normally used
748on Unix and GNU systems, and Mac OS X.) 748on Unix and GNU systems, and macOS.)
749 749
750@item @dots{}-dos 750@item @dots{}-dos
751Assume the file uses carriage-return linefeed to separate lines, and do 751Assume the file uses carriage-return linefeed to separate lines, and do
@@ -757,8 +757,8 @@ Emacs doesn't support directly.})
757 757
758@item @dots{}-mac 758@item @dots{}-mac
759Assume the file uses carriage-return to separate lines, and do the 759Assume the file uses carriage-return to separate lines, and do the
760appropriate conversion. (This was the convention used on the 760appropriate conversion. (This was the convention used in Classic Mac
761Macintosh system prior to OS X.) 761OS.)
762@end table 762@end table
763 763
764 These variant coding systems are omitted from the 764 These variant coding systems are omitted from the
@@ -1393,7 +1393,7 @@ of @code{standard-fontset-spec}. This fontset's name is
1393@noindent 1393@noindent
1394or just @samp{fontset-standard} for short. 1394or just @samp{fontset-standard} for short.
1395 1395
1396 On GNUstep and Mac OS X, the standard fontset is created using the value of 1396 On GNUstep and macOS, the standard fontset is created using the value of
1397@code{ns-standard-fontset-spec}, and on MS Windows it is 1397@code{ns-standard-fontset-spec}, and on MS Windows it is
1398created using the value of @code{w32-standard-fontset-spec}. 1398created using the value of @code{w32-standard-fontset-spec}.
1399 1399
diff --git a/doc/emacs/rmail.texi b/doc/emacs/rmail.texi
index a8cf5e4a512..84f1296484a 100644
--- a/doc/emacs/rmail.texi
+++ b/doc/emacs/rmail.texi
@@ -1425,7 +1425,7 @@ local mailbox.
1425@end table 1425@end table
1426 1426
1427@noindent 1427@noindent
1428@var{Proto} can be one of: 1428@var{proto} can be one of:
1429 1429
1430@table @code 1430@table @code
1431@item mbox 1431@item mbox
@@ -1434,12 +1434,12 @@ Usual Unix mailbox format. In this case, neither @var{user} nor
1434of the mailbox file, e.g., @code{mbox://var/spool/mail/smith}. 1434of the mailbox file, e.g., @code{mbox://var/spool/mail/smith}.
1435 1435
1436@item mh 1436@item mh
1437A local mailbox in the @acronym{MH} format. @var{User} and 1437A local mailbox in the @acronym{MH} format. @var{user} and
1438@var{pass} are not used. @var{Host-or-file-name} denotes the name of 1438@var{pass} are not used. @var{host-or-file-name} denotes the name of
1439@acronym{MH} folder, e.g., @code{mh://Mail/inbox}. 1439@acronym{MH} folder, e.g., @code{mh://Mail/inbox}.
1440 1440
1441@item maildir 1441@item maildir
1442A local mailbox in the @acronym{maildir} format. @var{User} and 1442A local mailbox in the @acronym{maildir} format. @var{user} and
1443@var{pass} are not used, and @var{host-or-file-name} denotes the name of 1443@var{pass} are not used, and @var{host-or-file-name} denotes the name of
1444@code{maildir} mailbox, e.g., @code{maildir://mail/inbox}. 1444@code{maildir} mailbox, e.g., @code{maildir://mail/inbox}.
1445 1445
@@ -1448,14 +1448,14 @@ Any local mailbox format. Its actual format is detected automatically
1448by @code{movemail}. 1448by @code{movemail}.
1449 1449
1450@item pop 1450@item pop
1451A remote mailbox to be accessed via POP3 protocol. @var{User} 1451A remote mailbox to be accessed via POP3 protocol. @var{user}
1452specifies the remote user name to use, @var{pass} may be used to 1452specifies the remote user name to use, @var{pass} may be used to
1453specify the user password, @var{host-or-file-name} is the name or IP 1453specify the user password, @var{host-or-file-name} is the name or IP
1454address of the remote mail server to connect to; e.g., 1454address of the remote mail server to connect to; e.g.,
1455@code{pop://smith:guessme@@remote.server.net}. 1455@code{pop://smith:guessme@@remote.server.net}.
1456 1456
1457@item imap 1457@item imap
1458A remote mailbox to be accessed via IMAP4 protocol. @var{User} 1458A remote mailbox to be accessed via IMAP4 protocol. @var{user}
1459specifies the remote user name to use, @var{pass} may be used to 1459specifies the remote user name to use, @var{pass} may be used to
1460specify the user password, @var{host-or-file-name} is the name or IP 1460specify the user password, @var{host-or-file-name} is the name or IP
1461address of the remote mail server to connect to; 1461address of the remote mail server to connect to;
diff --git a/doc/emacs/screen.texi b/doc/emacs/screen.texi
index 716575706cf..46ccca52aa8 100644
--- a/doc/emacs/screen.texi
+++ b/doc/emacs/screen.texi
@@ -216,6 +216,11 @@ changes to either a forward slash (@samp{/}) or @samp{(Mac)}. On some
216systems, Emacs displays @samp{(Unix)} instead of the colon for files 216systems, Emacs displays @samp{(Unix)} instead of the colon for files
217that use newline as the line separator. 217that use newline as the line separator.
218 218
219 On frames created for @command{emacsclient} (@pxref{Invoking
220emacsclient}), the next character is @samp{@@}. This indication is
221typical for frames of an Emacs process running as a daemon
222(@pxref{Emacs Server}).
223
219 The next element on the mode line is the string indicated by 224 The next element on the mode line is the string indicated by
220@var{ch}. This shows two dashes (@samp{--}) if the buffer displayed 225@var{ch}. This shows two dashes (@samp{--}) if the buffer displayed
221in the window has the same contents as the corresponding file on the 226in the window has the same contents as the corresponding file on the
@@ -225,7 +230,7 @@ shows @samp{%*} if the buffer is modified, and @samp{%%} otherwise.
225 230
226 The character after @var{ch} is normally a dash (@samp{-}). 231 The character after @var{ch} is normally a dash (@samp{-}).
227However, if the default-directory for the current buffer is on a 232However, if the default-directory for the current buffer is on a
228remote machine, @samp{@@} is displayed instead (@pxref{File Names}). 233remote machine (@pxref{File Names}), @samp{@@} is displayed instead.
229 234
230 @var{fr} gives the selected frame name (@pxref{Frames}). It appears 235 @var{fr} gives the selected frame name (@pxref{Frames}). It appears
231only on text terminals. The initial frame's name is @samp{F1}. 236only on text terminals. The initial frame's name is @samp{F1}.
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi
index b41214df1ae..543d5470046 100644
--- a/doc/emacs/search.texi
+++ b/doc/emacs/search.texi
@@ -1714,15 +1714,21 @@ a multi-file incremental search is activated automatically.
1714@cindex mode, Occur 1714@cindex mode, Occur
1715@cindex match (face name) 1715@cindex match (face name)
1716@vindex list-matching-lines-default-context-lines 1716@vindex list-matching-lines-default-context-lines
1717@kindex M-s o
1717@item M-x occur 1718@item M-x occur
1719@itemx M-s o
1718Prompt for a regexp, and display a list showing each line in the 1720Prompt for a regexp, and display a list showing each line in the
1719buffer that contains a match for it. The text that matched is 1721buffer that contains a match for it. If you type @kbd{M-n} at the
1720highlighted using the @code{match} face. To limit the search to part 1722prompt, you can reuse search strings from previous incremental
1721of the buffer, narrow to that part (@pxref{Narrowing}). A numeric 1723searches. The text that matched is highlighted using the @code{match}
1722argument @var{n} specifies that @var{n} lines of context are to be 1724face. To limit the search to part of the buffer, narrow to that part
1723displayed before and after each matching line. The default number of 1725(@pxref{Narrowing}). A numeric argument @var{n} specifies that
1724context lines is specified by the variable 1726@var{n} lines of context are to be displayed before and after each
1725@code{list-matching-lines-default-context-lines}. 1727matching line. The default number of context lines is specified by
1728the variable @code{list-matching-lines-default-context-lines}.
1729
1730You can also run @kbd{M-s o} when an incremental search is active;
1731this uses the current search string.
1726 1732
1727@kindex RET @r{(Occur mode)} 1733@kindex RET @r{(Occur mode)}
1728@kindex o @r{(Occur mode)} 1734@kindex o @r{(Occur mode)}
@@ -1744,12 +1750,6 @@ mode.
1744The command @kbd{M-x list-matching-lines} is a synonym for @kbd{M-x 1750The command @kbd{M-x list-matching-lines} is a synonym for @kbd{M-x
1745occur}. 1751occur}.
1746 1752
1747@kindex M-s o
1748@item M-s o
1749Run @code{occur} using the search string of the last incremental
1750string search. You can also run @kbd{M-s o} when an incremental
1751search is active; this uses the current search string.
1752
1753@item M-x multi-occur 1753@item M-x multi-occur
1754This command is just like @code{occur}, except it is able to search 1754This command is just like @code{occur}, except it is able to search
1755through multiple buffers. It asks you to specify the buffer names one 1755through multiple buffers. It asks you to specify the buffer names one
diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi
index 4c6a1ffbdd2..6c513c9a607 100644
--- a/doc/emacs/text.texi
+++ b/doc/emacs/text.texi
@@ -1088,92 +1088,101 @@ header line.
1088 1088
1089@table @kbd 1089@table @kbd
1090@item C-c C-c 1090@item C-c C-c
1091Make the current heading line's body invisible (@code{hide-entry}). 1091Make the current heading line's body invisible
1092(@code{outline-hide-entry}).
1092@item C-c C-e 1093@item C-c C-e
1093Make the current heading line's body visible (@code{show-entry}). 1094Make the current heading line's body visible
1095(@code{outline-show-entry}).
1094@item C-c C-d 1096@item C-c C-d
1095Make everything under the current heading invisible, not including the 1097Make everything under the current heading invisible, not including the
1096heading itself (@code{hide-subtree}). 1098heading itself (@code{outline-hide-subtree}).
1097@item C-c C-s 1099@item C-c C-s
1098Make everything under the current heading visible, including body, 1100Make everything under the current heading visible, including body,
1099subheadings, and their bodies (@code{show-subtree}). 1101subheadings, and their bodies (@code{outline-show-subtree}).
1100@item C-c C-l 1102@item C-c C-l
1101Make the body of the current heading line, and of all its subheadings, 1103Make the body of the current heading line, and of all its subheadings,
1102invisible (@code{hide-leaves}). 1104invisible (@code{outline-hide-leaves}).
1103@item C-c C-k 1105@item C-c C-k
1104Make all subheadings of the current heading line, at all levels, 1106Make all subheadings of the current heading line, at all levels,
1105visible (@code{show-branches}). 1107visible (@code{outline-show-branches}).
1106@item C-c C-i 1108@item C-c C-i
1107Make immediate subheadings (one level down) of the current heading 1109Make immediate subheadings (one level down) of the current heading
1108line visible (@code{show-children}). 1110line visible (@code{outline-show-children}).
1109@item C-c C-t 1111@item C-c C-t
1110Make all body lines in the buffer invisible (@code{hide-body}). 1112Make all body lines in the buffer invisible
1113(@code{outline-hide-body}).
1111@item C-c C-a 1114@item C-c C-a
1112Make all lines in the buffer visible (@code{show-all}). 1115Make all lines in the buffer visible (@code{outline-show-all}).
1113@item C-c C-q 1116@item C-c C-q
1114Hide everything except the top @var{n} levels of heading lines 1117Hide everything except the top @var{n} levels of heading lines
1115(@code{hide-sublevels}). 1118(@code{outline-hide-sublevels}).
1116@item C-c C-o 1119@item C-c C-o
1117Hide everything except for the heading or body that point is in, plus 1120Hide everything except for the heading or body that point is in, plus
1118the headings leading up from there to the top level of the outline 1121the headings leading up from there to the top level of the outline
1119(@code{hide-other}). 1122(@code{outline-hide-other}).
1120@end table 1123@end table
1121 1124
1122@findex hide-entry 1125@findex outline-hide-entry
1123@findex show-entry 1126@findex outline-show-entry
1124@kindex C-c C-c @r{(Outline mode)} 1127@kindex C-c C-c @r{(Outline mode)}
1125@kindex C-c C-e @r{(Outline mode)} 1128@kindex C-c C-e @r{(Outline mode)}
1126 The simplest of these commands are @kbd{C-c C-c} 1129 The simplest of these commands are @kbd{C-c C-c}
1127(@code{hide-entry}), which hides the body lines directly following the 1130(@code{outline-hide-entry}), which hides the body lines directly
1128current heading line, and @kbd{C-c C-e} (@code{show-entry}), which 1131following the current heading line, and @kbd{C-c C-e}
1129reveals them. Subheadings and their bodies are not affected. 1132(@code{outline-show-entry}), which reveals them. Subheadings and
1133their bodies are not affected.
1130 1134
1131@findex hide-subtree 1135@findex outline-hide-subtree
1132@findex show-subtree 1136@findex outline-show-subtree
1133@kindex C-c C-s @r{(Outline mode)} 1137@kindex C-c C-s @r{(Outline mode)}
1134@kindex C-c C-d @r{(Outline mode)} 1138@kindex C-c C-d @r{(Outline mode)}
1135@cindex subtree (Outline mode) 1139@cindex subtree (Outline mode)
1136 The commands @kbd{C-c C-d} (@code{hide-subtree}) and @kbd{C-c C-s} 1140 The commands @kbd{C-c C-d} (@code{outline-hide-subtree}) and
1137(@code{show-subtree}) are more powerful. They apply to the current 1141@kbd{C-c C-s} (@code{outline-show-subtree}) are more powerful. They
1138heading line's @dfn{subtree}: its body, all of its subheadings, both 1142apply to the current heading line's @dfn{subtree}: its body, all of
1139direct and indirect, and all of their bodies. 1143its subheadings, both direct and indirect, and all of their bodies.
1140 1144
1141@findex hide-leaves 1145@findex outline-hide-leaves
1142@findex show-branches 1146@findex outline-show-branches
1143@findex show-children 1147@findex outline-show-children
1144@kindex C-c C-l @r{(Outline mode)} 1148@kindex C-c C-l @r{(Outline mode)}
1145@kindex C-c C-k @r{(Outline mode)} 1149@kindex C-c C-k @r{(Outline mode)}
1146@kindex C-c C-i @r{(Outline mode)} 1150@kindex C-c C-i @r{(Outline mode)}
1147 The command @kbd{C-c C-l} (@code{hide-leaves}) hides the body of the 1151 The command @kbd{C-c C-l} (@code{outline-hide-leaves}) hides the
1148current heading line as well as all the bodies in its subtree; the 1152body of the current heading line as well as all the bodies in its
1149subheadings themselves are left visible. The command @kbd{C-c C-k} 1153subtree; the subheadings themselves are left visible. The command
1150(@code{show-branches}) reveals the subheadings, if they had previously 1154@kbd{C-c C-k} (@code{outline-show-branches}) reveals the subheadings,
1151been hidden (e.g., by @kbd{C-c C-d}). The command @kbd{C-c C-i} 1155if they had previously been hidden (e.g., by @kbd{C-c C-d}). The
1152(@code{show-children}) is a weaker version of this; it reveals just 1156command @kbd{C-c C-i} (@code{outline-show-children}) is a weaker
1153the direct subheadings, i.e., those one level down. 1157version of this; it reveals just the direct subheadings, i.e., those
1154 1158one level down.
1155@findex hide-other 1159
1160@findex outline-hide-other
1156@kindex C-c C-o @r{(Outline mode)} 1161@kindex C-c C-o @r{(Outline mode)}
1157 The command @kbd{C-c C-o} (@code{hide-other}) hides everything 1162 The command @kbd{C-c C-o} (@code{outline-hide-other}) hides
1158except the entry that point is in, plus its parents (the headers 1163everything except the entry that point is in, plus its parents (the
1159leading up from there to top level in the outline) and the top level 1164headers leading up from there to top level in the outline) and the top
1160headings. 1165level headings. It also reveals body lines preceding the first
1161 1166heading in the buffer.
1162@findex hide-body 1167
1163@findex show-all 1168@findex outline-hide-body
1169@findex outline-show-all
1164@kindex C-c C-t @r{(Outline mode)} 1170@kindex C-c C-t @r{(Outline mode)}
1165@kindex C-c C-a @r{(Outline mode)} 1171@kindex C-c C-a @r{(Outline mode)}
1166@findex hide-sublevels 1172@findex hide-sublevels
1167@kindex C-c C-q @r{(Outline mode)} 1173@kindex C-c C-q @r{(Outline mode)}
1168 The remaining commands affect the whole buffer. @kbd{C-c C-t} 1174 The remaining commands affect the whole buffer. @kbd{C-c C-t}
1169(@code{hide-body}) makes all body lines invisible, so that you see 1175(@code{outline-hide-body}) makes all body lines invisible, so that you
1170just the outline structure (as a special exception, it will not hide 1176see just the outline structure (as a special exception, it will not
1171lines at the top of the file, preceding the first header line, even 1177hide lines at the top of the file, preceding the first header line,
1172though these are technically body lines). @kbd{C-c C-a} 1178even though these are technically body lines). @kbd{C-c C-a}
1173(@code{show-all}) makes all lines visible. @kbd{C-c C-q} 1179(@code{outline-show-all}) makes all lines visible. @kbd{C-c C-q}
1174(@code{hide-sublevels}) hides all but the top level headings; with a 1180(@code{outline-hide-sublevels}) hides all but the top level headings
1175numeric argument @var{n}, it hides everything except the top @var{n} 1181at and above the level of the current heading line (defaulting to 1 if
1176levels of heading lines. 1182point is not on a heading); with a numeric argument @var{n}, it hides
1183everything except the top @var{n} levels of heading lines. Note that
1184it completely reveals all the @var{n} top levels and the body lines
1185before the first heading.
1177 1186
1178@anchor{Outline Search} 1187@anchor{Outline Search}
1179@findex reveal-mode 1188@findex reveal-mode
@@ -1219,8 +1228,9 @@ levels.
1219 1228
1220 Consider an Outline mode buffer with all the text and subheadings under 1229 Consider an Outline mode buffer with all the text and subheadings under
1221level-1 headings hidden. To look at what is hidden under one of these 1230level-1 headings hidden. To look at what is hidden under one of these
1222headings, you could use @kbd{C-c C-e} (@kbd{M-x show-entry}) to expose 1231headings, you could use @kbd{C-c C-e} (@kbd{M-x outline-show-entry})
1223the body, or @kbd{C-c C-i} to expose the child (level-2) headings. 1232to expose the body, or @kbd{C-c C-i} to expose the child (level-2)
1233headings.
1224 1234
1225@kindex C-c C-z 1235@kindex C-c C-z
1226@findex foldout-zoom-subtree 1236@findex foldout-zoom-subtree
@@ -1235,11 +1245,12 @@ in the mode line shows how deep you've gone.
1235 1245
1236 When zooming in on a heading, to see only the child subheadings specify 1246 When zooming in on a heading, to see only the child subheadings specify
1237a numeric argument: @kbd{C-u C-c C-z}. The number of levels of children 1247a numeric argument: @kbd{C-u C-c C-z}. The number of levels of children
1238can be specified too (compare @kbd{M-x show-children}), e.g., @kbd{M-2 1248can be specified too (compare @kbd{M-x outline-show-children}), e.g.,
1239C-c C-z} exposes two levels of child subheadings. Alternatively, the 1249@w{@kbd{M-2 C-c C-z}} exposes two levels of child subheadings.
1240body can be specified with a negative argument: @kbd{M-- C-c C-z}. The 1250Alternatively, the body can be specified with a negative argument:
1241whole subtree can be expanded, similarly to @kbd{C-c C-s} (@kbd{M-x 1251@w{@kbd{M-- C-c C-z}}. The whole subtree can be expanded, similarly to
1242show-subtree}), by specifying a zero argument: @kbd{M-0 C-c C-z}. 1252@kbd{C-c C-s} (@kbd{M-x outline-show-subtree}), by specifying a zero
1253argument: @w{@kbd{M-0 C-c C-z}}.
1243 1254
1244 While you're zoomed in, you can still use Outline mode's exposure and 1255 While you're zoomed in, you can still use Outline mode's exposure and
1245hiding functions without disturbing Foldout. Also, since the buffer is 1256hiding functions without disturbing Foldout. Also, since the buffer is
@@ -1256,8 +1267,8 @@ argument exits that many levels of folds. Specifying a zero argument
1256exits all folds. 1267exits all folds.
1257 1268
1258 To cancel the narrowing of a fold without hiding the text and 1269 To cancel the narrowing of a fold without hiding the text and
1259subheadings, specify a negative argument. For example, @kbd{M--2 C-c 1270subheadings, specify a negative argument. For example, @w{@kbd{M--2 C-c
1260C-x} exits two folds and leaves the text and subheadings exposed. 1271C-x}} exits two folds and leaves the text and subheadings exposed.
1261 1272
1262 Foldout mode also provides mouse commands for entering and exiting 1273 Foldout mode also provides mouse commands for entering and exiting
1263folds, and for showing and hiding text: 1274folds, and for showing and hiding text:
diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi
index 0c0827909a3..947c54f9c35 100644
--- a/doc/lispref/control.texi
+++ b/doc/lispref/control.texi
@@ -368,7 +368,7 @@ UPattern. For example:
368@item (app @var{function} @var{upattern}) 368@item (app @var{function} @var{upattern})
369Matches if @var{function} applied to the value being matched returns a 369Matches if @var{function} applied to the value being matched returns a
370value that matches @var{upattern}. This is like the @code{pred} 370value that matches @var{upattern}. This is like the @code{pred}
371UPattern, except that it tests the result against @var{UPattern}, 371UPattern, except that it tests the result against @var{upattern},
372rather than against a boolean truth value. The @var{function} call can 372rather than against a boolean truth value. The @var{function} call can
373use one of the forms described below. 373use one of the forms described below.
374@item (or @var{upattern1} @var{upattern2}@dots{}) 374@item (or @var{upattern1} @var{upattern2}@dots{})
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index d050738d80f..851baa31f30 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -2548,7 +2548,7 @@ modifying the attributes of a named face.
2548This function returns the value of the @var{attribute} attribute for 2548This function returns the value of the @var{attribute} attribute for
2549@var{face} on @var{frame}. 2549@var{face} on @var{frame}.
2550 2550
2551If @var{frame} is @code{nil}, that means the selected frame 2551If @var{frame} is omitted or @code{nil}, that means the selected frame
2552(@pxref{Input Focus}). If @var{frame} is @code{t}, this function 2552(@pxref{Input Focus}). If @var{frame} is @code{t}, this function
2553returns the value of the specified attribute for newly-created frames 2553returns the value of the specified attribute for newly-created frames
2554(this is normally @code{unspecified}, unless you have specified some 2554(this is normally @code{unspecified}, unless you have specified some
@@ -2644,8 +2644,8 @@ created frames.
2644 2644
2645 The following commands and functions mostly provide compatibility 2645 The following commands and functions mostly provide compatibility
2646with old versions of Emacs. They work by calling 2646with old versions of Emacs. They work by calling
2647@code{set-face-attribute}. Values of @code{t} and @code{nil} for 2647@code{set-face-attribute}. Values of @code{t} and @code{nil} (or
2648their @var{frame} argument are handled just like 2648omitted) for their @var{frame} argument are handled just like
2649@code{set-face-attribute} and @code{face-attribute}. The commands 2649@code{set-face-attribute} and @code{face-attribute}. The commands
2650read their arguments using the minibuffer, if called interactively. 2650read their arguments using the minibuffer, if called interactively.
2651 2651
@@ -2714,7 +2714,8 @@ name used for @var{character}.
2714@defun face-foreground face &optional frame inherit 2714@defun face-foreground face &optional frame inherit
2715@defunx face-background face &optional frame inherit 2715@defunx face-background face &optional frame inherit
2716These functions return the foreground color (or background color, 2716These functions return the foreground color (or background color,
2717respectively) of face @var{face}, as a string. 2717respectively) of face @var{face}, as a string. If the color is
2718unspecified, they return @code{nil}.
2718@end defun 2719@end defun
2719 2720
2720@defun face-stipple face &optional frame inherit 2721@defun face-stipple face &optional frame inherit
@@ -4178,12 +4179,12 @@ bar.) @var{horizontal-type} is either @code{bottom} or @code{nil}
4178(which means no horizontal scroll bar). 4179(which means no horizontal scroll bar).
4179@end defun 4180@end defun
4180 4181
4181@defun frame-scroll-bar-width &optional Lisp_Object &optional frame 4182@defun frame-scroll-bar-width &optional frame
4182This function returns the width of vertical scroll bars of @var{frame} 4183This function returns the width of vertical scroll bars of @var{frame}
4183in pixels. 4184in pixels.
4184@end defun 4185@end defun
4185 4186
4186@defun frame-scroll-bar-height &optional Lisp_Object &optional frame 4187@defun frame-scroll-bar-height &optional frame
4187This function returns the height of horizontal scroll bars of 4188This function returns the height of horizontal scroll bars of
4188@var{frame} in pixels. 4189@var{frame} in pixels.
4189@end defun 4190@end defun
@@ -7155,7 +7156,7 @@ Emacs is displaying the frame using X.
7155Emacs is displaying the frame using native MS-Windows GUI. 7156Emacs is displaying the frame using native MS-Windows GUI.
7156@item ns 7157@item ns
7157Emacs is displaying the frame using the Nextstep interface (used on 7158Emacs is displaying the frame using the Nextstep interface (used on
7158GNUstep and Mac OS X). 7159GNUstep and macOS).
7159@item pc 7160@item pc
7160Emacs is displaying the frame using MS-DOS direct screen writes. 7161Emacs is displaying the frame using MS-DOS direct screen writes.
7161@item nil 7162@item nil
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi
index 90f8e3501b2..dc1c524653d 100644
--- a/doc/lispref/frames.texi
+++ b/doc/lispref/frames.texi
@@ -764,7 +764,7 @@ its size using the @code{height} and @code{width} parameters
764with sizes and positions. For all of these functions the argument 764with sizes and positions. For all of these functions the argument
765@var{frame} must denote a live frame and defaults to the selected frame. 765@var{frame} must denote a live frame and defaults to the selected frame.
766 766
767@defun frame-position &optional Lisp_Object &optional frame 767@defun frame-position &optional frame
768This function returns the outer position (@pxref{Frame Layout}) of 768This function returns the outer position (@pxref{Frame Layout}) of
769@var{frame} in pixels. The value is a cons giving the coordinates of 769@var{frame} in pixels. The value is a cons giving the coordinates of
770the top left corner of the outer frame of @var{frame} relative to an 770the top left corner of the outer frame of @var{frame} relative to an
@@ -772,9 +772,9 @@ origin at the position (0, 0) of the frame's display. On a text
772terminal frame both values are zero. 772terminal frame both values are zero.
773@end defun 773@end defun
774 774
775@defun set-frame-position frame X Y 775@defun set-frame-position frame x y
776This function sets the outer frame position of @var{frame} to @var{X} 776This function sets the outer frame position of @var{frame} to @var{x}
777and @var{Y}. The latter arguments specify pixels and normally count 777and @var{y}. The latter arguments specify pixels and normally count
778from an origin at the position (0, 0) of @var{frame}'s display. 778from an origin at the position (0, 0) of @var{frame}'s display.
779 779
780A negative parameter value positions the right edge of the outer frame 780A negative parameter value positions the right edge of the outer frame
diff --git a/doc/lispref/loading.texi b/doc/lispref/loading.texi
index a73ae596e0d..44ce719bc1f 100644
--- a/doc/lispref/loading.texi
+++ b/doc/lispref/loading.texi
@@ -610,8 +610,8 @@ and @code{define-global-minor-mode}.
610 610
611@item Other definition types: 611@item Other definition types:
612@code{defcustom}, @code{defgroup}, @code{defclass} 612@code{defcustom}, @code{defgroup}, @code{defclass}
613(@pxref{Top,EIEIO,,eieio,EIEIO}), and @code{define-skeleton} (see the 613(@pxref{Top,EIEIO,,eieio,EIEIO}), and @code{define-skeleton}
614commentary in @file{skeleton.el}). 614(@pxref{Top,Autotyping,,autotype,Autotyping}).
615@end table 615@end table
616 616
617 You can also use a magic comment to execute a form at build time 617 You can also use a magic comment to execute a form at build time
diff --git a/doc/lispref/nonascii.texi b/doc/lispref/nonascii.texi
index fd2ce3248fd..9f805c2c1d9 100644
--- a/doc/lispref/nonascii.texi
+++ b/doc/lispref/nonascii.texi
@@ -1049,8 +1049,7 @@ Unix convention, used on GNU and Unix systems, is to use the linefeed
1049character (also called newline). The DOS convention, used on 1049character (also called newline). The DOS convention, used on
1050MS-Windows and MS-DOS systems, is to use a carriage-return and a 1050MS-Windows and MS-DOS systems, is to use a carriage-return and a
1051linefeed at the end of a line. The Mac convention is to use just 1051linefeed at the end of a line. The Mac convention is to use just
1052carriage-return. (This was the convention used on the Macintosh 1052carriage-return. (This was the convention used in Classic Mac OS.)
1053system prior to OS X.)
1054 1053
1055@cindex base coding system 1054@cindex base coding system
1056@cindex variant coding system 1055@cindex variant coding system
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi
index 3312705e167..903bad3b9c5 100644
--- a/doc/lispref/os.texi
+++ b/doc/lispref/os.texi
@@ -891,7 +891,7 @@ Berkeley BSD and its variants.
891Cygwin, a Posix layer on top of MS-Windows. 891Cygwin, a Posix layer on top of MS-Windows.
892 892
893@item darwin 893@item darwin
894Darwin (Mac OS X). 894Darwin (macOS).
895 895
896@item gnu 896@item gnu
897The GNU system (using the GNU kernel, which consists of the HURD and Mach). 897The GNU system (using the GNU kernel, which consists of the HURD and Mach).
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi
index 87c0b5c7687..21e1429f59d 100644
--- a/doc/lispref/processes.texi
+++ b/doc/lispref/processes.texi
@@ -648,7 +648,7 @@ I/O, file-name-coding-system}).
648If @var{coding} is @code{nil}, the default rules for finding the 648If @var{coding} is @code{nil}, the default rules for finding the
649coding system will apply. @xref{Default Coding Systems}. 649coding system will apply. @xref{Default Coding Systems}.
650 650
651@item :connection-type @var{TYPE} 651@item :connection-type @var{type}
652Initialize the type of device used to communicate with the subprocess. 652Initialize the type of device used to communicate with the subprocess.
653Possible values are @code{pty} to use a pty, @code{pipe} to use a 653Possible values are @code{pty} to use a pty, @code{pipe} to use a
654pipe, or @code{nil} to use the default derived from the value of the 654pipe, or @code{nil} to use the default derived from the value of the
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi
index c6a3eb035ad..0da34d14f24 100644
--- a/doc/lispref/text.texi
+++ b/doc/lispref/text.texi
@@ -4666,7 +4666,7 @@ Return all nodes in @var{dom} that have IDs that match @var{match},
4666which is a regular expression. 4666which is a regular expression.
4667 4667
4668@item dom-strings @var{dom} 4668@item dom-strings @var{dom}
4669Return all strings in @var{DOM}. 4669Return all strings in @var{dom}.
4670 4670
4671@end table 4671@end table
4672 4672
diff --git a/doc/lispref/tips.texi b/doc/lispref/tips.texi
index a8589df031c..b45e68d0d56 100644
--- a/doc/lispref/tips.texi
+++ b/doc/lispref/tips.texi
@@ -165,10 +165,10 @@ follow the naming conventions for hooks. @xref{Hooks}.
165@item 165@item
166@cindex unloading packages, preparing for 166@cindex unloading packages, preparing for
167If loading the file adds functions to hooks, define a function 167If loading the file adds functions to hooks, define a function
168@code{@var{feature}-unload-hook}, where @var{feature} is the name of 168@code{@var{feature}-unload-function}, where @var{feature} is the name
169the feature the package provides, and make it undo any such changes. 169of the feature the package provides, and make it undo any such
170Using @code{unload-feature} to unload the file will run this function. 170changes. Using @code{unload-feature} to unload the file will run this
171@xref{Unloading}. 171function. @xref{Unloading}.
172 172
173@item 173@item
174It is a bad idea to define aliases for the Emacs primitives. Normally 174It is a bad idea to define aliases for the Emacs primitives. Normally
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index d66a9448e63..2823cc55214 100644
--- a/doc/lispref/windows.texi
+++ b/doc/lispref/windows.texi
@@ -557,7 +557,7 @@ time @code{window-size-change-functions} was run for the last time on
557@cindex pixel width of a window 557@cindex pixel width of a window
558@cindex total pixel width of a window 558@cindex total pixel width of a window
559 559
560@defun window-pixel-width &optional Lisp_Object &optional window 560@defun window-pixel-width &optional window
561This function returns the width of window @var{window} in pixels. 561This function returns the width of window @var{window} in pixels.
562@var{window} must be a valid window and defaults to the selected one. 562@var{window} must be a valid window and defaults to the selected one.
563 563
@@ -4469,14 +4469,14 @@ This function returns the pixel edges of @var{window}'s body. Calling
4469the origin of the display screen rather than that of the frame: 4469the origin of the display screen rather than that of the frame:
4470 4470
4471@defun window-absolute-pixel-edges &optional window 4471@defun window-absolute-pixel-edges &optional window
4472This function returns the pixel coordinates of @var{WINDOW} relative to 4472This function returns the pixel coordinates of @var{window} relative to
4473an origin at (0, 0) of the display of @var{window}'s frame. Calling 4473an origin at (0, 0) of the display of @var{window}'s frame. Calling
4474@code{(window-absolute-pixel-edges)} is equivalent to calling 4474@code{(window-absolute-pixel-edges)} is equivalent to calling
4475@code{(window-edges window nil t t)}, see above. 4475@code{(window-edges window nil t t)}, see above.
4476@end defun 4476@end defun
4477 4477
4478@defun window-absolute-body-pixel-edges &optional window 4478@defun window-absolute-body-pixel-edges &optional window
4479This function returns the pixel coordinates of @var{WINDOW}'s body 4479This function returns the pixel coordinates of @var{window}'s body
4480relative to an origin at (0, 0) of the display of @var{window}'s frame. 4480relative to an origin at (0, 0) of the display of @var{window}'s frame.
4481Calling @code{(window-absolute-body-pixel-edges window)} is equivalent 4481Calling @code{(window-absolute-body-pixel-edges window)} is equivalent
4482to calling @code{(window-edges window t t t)}, see above. 4482to calling @code{(window-edges window t t t)}, see above.
diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi
index 72a90a1ff21..9efe0e73c5c 100644
--- a/doc/misc/efaq.texi
+++ b/doc/misc/efaq.texi
@@ -1206,7 +1206,7 @@ Emacs can be started as a daemon in the background.
1206 1206
1207@cindex NeXTstep port 1207@cindex NeXTstep port
1208@cindex GNUstep port 1208@cindex GNUstep port
1209@cindex Mac OS X Cocoa 1209@cindex macOS Cocoa
1210@item 1210@item
1211There is a new NeXTstep port of Emacs. This supports GNUstep and Mac OS 1211There is a new NeXTstep port of Emacs. This supports GNUstep and Mac OS
1212X (via the Cocoa libraries). The Carbon port of Emacs, which supported 1212X (via the Cocoa libraries). The Carbon port of Emacs, which supported
@@ -3341,7 +3341,7 @@ problem (@pxref{Reporting bugs}).
3341* Emacs for MS-DOS:: 3341* Emacs for MS-DOS::
3342* Emacs for MS-Windows:: 3342* Emacs for MS-Windows::
3343* Emacs for GNUstep:: 3343* Emacs for GNUstep::
3344* Emacs for Mac OS X:: 3344* Emacs for macOS::
3345@end menu 3345@end menu
3346 3346
3347@node Finding Emacs on the Internet 3347@node Finding Emacs on the Internet
@@ -3561,13 +3561,13 @@ For MS-DOS, @pxref{Emacs for MS-DOS}.
3561Beginning with version 23.1, Emacs supports GNUstep natively. 3561Beginning with version 23.1, Emacs supports GNUstep natively.
3562See the file @file{nextstep/INSTALL} in the distribution. 3562See the file @file{nextstep/INSTALL} in the distribution.
3563 3563
3564@node Emacs for Mac OS X 3564@node Emacs for macOS
3565@section Where can I get Emacs for Mac OS X? 3565@section Where can I get Emacs for macOS?
3566@cindex Apple computers, Emacs for 3566@cindex Apple computers, Emacs for
3567@cindex Macintosh, Emacs for 3567@cindex Macintosh, Emacs for
3568@cindex Mac OS X, Emacs for 3568@cindex macOS, Emacs for
3569 3569
3570Beginning with version 22.1, Emacs supports Mac OS X natively. 3570Beginning with version 22.1, Emacs supports macOS natively.
3571See the file @file{nextstep/INSTALL} in the distribution. 3571See the file @file{nextstep/INSTALL} in the distribution.
3572 3572
3573@c ------------------------------------------------------------ 3573@c ------------------------------------------------------------
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
index 2473d26cc15..c34dd7caf08 100644
--- a/doc/misc/gnus.texi
+++ b/doc/misc/gnus.texi
@@ -21522,7 +21522,7 @@ bound to mairix searches and are automatically updated.
21522Mairix is a tool for indexing and searching words in locally stored 21522Mairix is a tool for indexing and searching words in locally stored
21523mail. It was written by Richard Curnow and is licensed under the 21523mail. It was written by Richard Curnow and is licensed under the
21524GPL@. Mairix comes with most popular GNU/Linux distributions, but it also 21524GPL@. Mairix comes with most popular GNU/Linux distributions, but it also
21525runs under Windows (with cygwin), Mac OS X and Solaris. The homepage can 21525runs under Windows (with cygwin), macOS and Solaris. The homepage can
21526be found at 21526be found at
21527@uref{http://www.rpcurnow.force9.co.uk/mairix/index.html} 21527@uref{http://www.rpcurnow.force9.co.uk/mairix/index.html}
21528 21528
diff --git a/doc/misc/idlwave.texi b/doc/misc/idlwave.texi
index 26c81d65948..32b33641656 100644
--- a/doc/misc/idlwave.texi
+++ b/doc/misc/idlwave.texi
@@ -75,7 +75,7 @@ Interactive Data Language (IDL), and running IDL as an inferior shell.
75* Sources of Routine Info:: How does IDLWAVE know about routine XYZ 75* Sources of Routine Info:: How does IDLWAVE know about routine XYZ
76* HTML Help Browser Tips:: 76* HTML Help Browser Tips::
77* Configuration Examples:: The user is king 77* Configuration Examples:: The user is king
78* Windows and MacOS:: What still works, and how 78* Windows and macOS:: What still works, and how
79* Troubleshooting:: When good computers turn bad 79* Troubleshooting:: When good computers turn bad
80* GNU Free Documentation License:: The license for this documentation. 80* GNU Free Documentation License:: The license for this documentation.
81* Index:: Fast access 81* Index:: Fast access
@@ -2372,7 +2372,7 @@ Normal hook. Executed when @file{idlwave.el} is loaded.
2372@cindex Subprocess of Emacs, IDL 2372@cindex Subprocess of Emacs, IDL
2373@cindex Comint, Emacs package 2373@cindex Comint, Emacs package
2374@cindex Windows 2374@cindex Windows
2375@cindex MacOS 2375@cindex macOS
2376 2376
2377The IDLWAVE shell is an Emacs major mode which permits running the IDL 2377The IDLWAVE shell is an Emacs major mode which permits running the IDL
2378program as an inferior process of Emacs, and works closely with the 2378program as an inferior process of Emacs, and works closely with the
@@ -2382,7 +2382,7 @@ debug these programs. The IDLWAVE shell is built on @file{comint}, an
2382Emacs packages which handles the communication with the IDL program. 2382Emacs packages which handles the communication with the IDL program.
2383Unfortunately, IDL for Windows does not have command-prompt versions and 2383Unfortunately, IDL for Windows does not have command-prompt versions and
2384thus do not allow the interaction with Emacs, so the IDLWAVE shell 2384thus do not allow the interaction with Emacs, so the IDLWAVE shell
2385currently only works under Unix and MacOSX. 2385currently works under only Unix and macOS.
2386 2386
2387@menu 2387@menu
2388* Starting the Shell:: How to launch IDL as a subprocess 2388* Starting the Shell:: How to launch IDL as a subprocess
@@ -3533,14 +3533,14 @@ to locate library catalogs.
3533@end defopt 3533@end defopt
3534 3534
3535@defopt idlwave-library-path 3535@defopt idlwave-library-path
3536IDL library path for Windows and MacOS@. Under Unix/MacOSX, will be 3536IDL library path for Windows and macOS@. Under Unix/macOS, will be
3537obtained from the Shell when run. 3537obtained from the Shell when run.
3538@end defopt 3538@end defopt
3539 3539
3540@defopt idlwave-system-directory 3540@defopt idlwave-system-directory
3541The IDL system directory for Windows and MacOS@. Also needed for 3541The IDL system directory for Windows and macOS@. Also needed for
3542locating HTML help and the IDL Assistant for IDL v6.2 and later. Under 3542locating HTML help and the IDL Assistant for IDL v6.2 and later. Under
3543Unix/MacOSX, will be obtained from the Shell and recorded, if run. 3543Unix/macOS, will be obtained from the Shell and recorded, if run.
3544@end defopt 3544@end defopt
3545 3545
3546@defopt idlwave-config-directory (@file{~/.emacs.d/idlwave}) 3546@defopt idlwave-config-directory (@file{~/.emacs.d/idlwave})
@@ -3626,7 +3626,7 @@ performance is a problem and/or the catalogs are not needed.
3626@cindex User catalog 3626@cindex User catalog
3627@cindex IDL library routine info 3627@cindex IDL library routine info
3628@cindex Windows 3628@cindex Windows
3629@cindex MacOS 3629@cindex macOS
3630@cindex IDL variable @code{!DIR} 3630@cindex IDL variable @code{!DIR}
3631@cindex @code{!DIR}, IDL variable 3631@cindex @code{!DIR}, IDL variable
3632 3632
@@ -3651,7 +3651,7 @@ catalog must be rescanned to update it. Creating the user catalog is
3651also much slower than scanning library catalogs. 3651also much slower than scanning library catalogs.
3652 3652
3653You can scan any of the directories on the currently known path. Under 3653You can scan any of the directories on the currently known path. Under
3654Windows and MacOS (not OSX), you need to specify the IDL search path in 3654Windows, you need to specify the IDL search path in
3655the variable @code{idlwave-library-path}, and the location of the IDL 3655the variable @code{idlwave-library-path}, and the location of the IDL
3656directory (the value of the @code{!DIR} system variable) in the variable 3656directory (the value of the @code{!DIR} system variable) in the variable
3657@code{idlwave-system-directory}, like this@footnote{The initial @samp{+} 3657@code{idlwave-system-directory}, like this@footnote{The initial @samp{+}
@@ -3742,10 +3742,9 @@ files. Therefore, such local files should not be installed inside the
3742many other reasons. 3742many other reasons.
3743 3743
3744@cindex Windows 3744@cindex Windows
3745@cindex MacOS
3746@cindex IDL variable @code{!DIR} 3745@cindex IDL variable @code{!DIR}
3747@cindex @code{!DIR}, IDL variable 3746@cindex @code{!DIR}, IDL variable
3748Users of Windows and MacOS (not X) also must set the variable 3747Users of Windows also must set the variable
3749@code{idlwave-system-directory} to the value of the @code{!DIR} system 3748@code{idlwave-system-directory} to the value of the @code{!DIR} system
3750variable in IDL@. IDLWAVE appends @file{lib} to the value of this 3749variable in IDL@. IDLWAVE appends @file{lib} to the value of this
3751variable and assumes that all files found on that path are system 3750variable and assumes that all files found on that path are system
@@ -3822,7 +3821,7 @@ etc.).
3822@noindent Individual platform recommendations: 3821@noindent Individual platform recommendations:
3823 3822
3824@itemize @bullet 3823@itemize @bullet
3825@item Unix/MacOSX: The @uref{http://www.w3m.org,@code{w3m}} browser 3824@item Unix/macOS: The @uref{http://www.w3m.org,@code{w3m}} browser
3826and its associated 3825and its associated
3827@uref{http://emacs-w3m.namazu.org/,@code{emacs-w3m}} emacs mode 3826@uref{http://emacs-w3m.namazu.org/,@code{emacs-w3m}} emacs mode
3828provide in-buffer browsing with image display, and excellent speed and 3827provide in-buffer browsing with image display, and excellent speed and
@@ -4020,18 +4019,17 @@ user is King!
4020@html 4019@html
4021<A NAME="WINDOWS_MAC"></A> 4020<A NAME="WINDOWS_MAC"></A>
4022@end html 4021@end html
4023@node Windows and MacOS 4022@node Windows and macOS
4024@appendix Windows and MacOS 4023@appendix Windows and macOS
4025@cindex Windows 4024@cindex Windows
4026@cindex MacOS 4025@cindex macOS
4027@cindex MacOSX
4028 4026
4029IDLWAVE was developed on a UNIX system. However, thanks to the 4027IDLWAVE was developed on a UNIX system. However, thanks to the
4030portability of Emacs, much of IDLWAVE does also work under different 4028portability of Emacs, much of IDLWAVE does also work under different
4031operating systems like Windows (with NTEmacs or NTXEmacs) or MacOS. 4029operating systems like Windows (with NTEmacs or NTXEmacs).
4032 4030
4033The only real problem is that there is no command-line version of IDL 4031The only real problem is that there is no command-line version of IDL
4034for Windows or MacOS(<=9) with which IDLWAVE can interact. As a 4032for Windows with which IDLWAVE can interact. As a
4035result, the IDLWAVE Shell does not work and you have to rely on IDLDE 4033result, the IDLWAVE Shell does not work and you have to rely on IDLDE
4036to run and debug your programs. However, editing IDL source files 4034to run and debug your programs. However, editing IDL source files
4037with Emacs/IDLWAVE works with all bells and whistles, including 4035with Emacs/IDLWAVE works with all bells and whistles, including
@@ -4112,10 +4110,10 @@ ensure @samp{idl} is on your @samp{$PATH}, or specify the full
4112pathname to the idl program with the variable 4110pathname to the idl program with the variable
4113@code{idlwave-shell-explicit-file-name}. Note that you may need to 4111@code{idlwave-shell-explicit-file-name}. Note that you may need to
4114set your shell search path in two places when running Emacs as an Aqua 4112set your shell search path in two places when running Emacs as an Aqua
4115application with MacOSX; see the next topic. 4113application with macOS; see the next topic.
4116 4114
4117@item @strong{IDLWAVE is disregarding my @samp{IDL_PATH} which I set 4115@item @strong{IDLWAVE is disregarding my @samp{IDL_PATH} which I set
4118under MacOSX} 4116under macOS}
4119 4117
4120If you run Emacs directly as an Aqua application, rather than from the 4118If you run Emacs directly as an Aqua application, rather than from the
4121console shell, the environment is set not from your usual shell 4119console shell, the environment is set not from your usual shell
diff --git a/doc/misc/mairix-el.texi b/doc/misc/mairix-el.texi
index 8deead52dc6..69d3fc42277 100644
--- a/doc/misc/mairix-el.texi
+++ b/doc/misc/mairix-el.texi
@@ -68,7 +68,7 @@ database.
68Mairix is a tool for indexing and searching words in locally stored 68Mairix is a tool for indexing and searching words in locally stored
69mail. It was written by Richard Curnow and is licensed under the 69mail. It was written by Richard Curnow and is licensed under the
70GPL@. Mairix comes with most popular GNU/Linux distributions, but it also 70GPL@. Mairix comes with most popular GNU/Linux distributions, but it also
71runs under Windows (with cygwin), Mac OS X and Solaris. The homepage can 71runs under Windows (with cygwin), macOS and Solaris. The homepage can
72be found at 72be found at
73@uref{http://www.rpcurnow.force9.co.uk/mairix/index.html} 73@uref{http://www.rpcurnow.force9.co.uk/mairix/index.html}
74 74
diff --git a/doc/misc/org.texi b/doc/misc/org.texi
index a5239acb59f..a6f9dbde7cb 100644
--- a/doc/misc/org.texi
+++ b/doc/misc/org.texi
@@ -6616,7 +6616,7 @@ applying it to another one.
6616@vindex org-clock-idle-time 6616@vindex org-clock-idle-time
6617By customizing the variable @code{org-clock-idle-time} to some integer, such 6617By customizing the variable @code{org-clock-idle-time} to some integer, such
6618as 10 or 15, Emacs can alert you when you get back to your computer after 6618as 10 or 15, Emacs can alert you when you get back to your computer after
6619being idle for that many minutes@footnote{On computers using Mac OS X, 6619being idle for that many minutes@footnote{On computers using macOS,
6620idleness is based on actual user idleness, not just Emacs' idle time. For 6620idleness is based on actual user idleness, not just Emacs' idle time. For
6621X11, you can install a utility program @file{x11idle.c}, available in the 6621X11, you can install a utility program @file{x11idle.c}, available in the
6622@code{contrib/scripts} directory of the Org git distribution, or install the 6622@code{contrib/scripts} directory of the Org git distribution, or install the
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 0e09cf7e7bb..955a13e477a 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -933,7 +933,7 @@ D-Bus, dbus}.
933@cindex afp method 933@cindex afp method
934 934
935This method is for connecting to remote hosts with the Apple Filing 935This method is for connecting to remote hosts with the Apple Filing
936Protocol for accessing files on Mac OS X volumes. @value{tramp} access 936Protocol for accessing files on macOS volumes. @value{tramp} access
937syntax requires a leading volume (share) name, for example: 937syntax requires a leading volume (share) name, for example:
938@file{@trampfn{afp,user@@host,/volume}}. 938@file{@trampfn{afp,user@@host,/volume}}.
939 939
diff --git a/etc/DISTRIB b/etc/DISTRIB
index 7c0cd4cbaca..237e7f265f9 100644
--- a/etc/DISTRIB
+++ b/etc/DISTRIB
@@ -31,8 +31,8 @@ manuals, including the Emacs manual, are available from the FSF's
31online store at http://shop.fsf.org. 31online store at http://shop.fsf.org.
32 32
33Emacs has been run on GNU/Linux, FreeBSD, NetBSD, OpenBSD, and on many 33Emacs has been run on GNU/Linux, FreeBSD, NetBSD, OpenBSD, and on many
34Unix systems, on a variety of types of cpu, as well as on MSDOS, 34Unix systems, on a variety of types of CPU, as well as on MS-DOS,
35Windows and MacOS. See the file 'etc/MACHINES' in the Emacs 35MS-Windows and macOS. See the file 'etc/MACHINES' in the Emacs
36distribution for a full list of machines that GNU Emacs has been tested 36distribution for a full list of machines that GNU Emacs has been tested
37on, with machine-specific installation notes and warnings. 37on, with machine-specific installation notes and warnings.
38 38
diff --git a/etc/MACHINES b/etc/MACHINES
index 5562dc26035..15ac91772e0 100644
--- a/etc/MACHINES
+++ b/etc/MACHINES
@@ -64,9 +64,9 @@ the list at the end of this file.
64 This was tested on a little-endian sh4 system (cpu type SH7751R) running 64 This was tested on a little-endian sh4 system (cpu type SH7751R) running
65 Gentoo Linux 2008.0. 65 Gentoo Linux 2008.0.
66 66
67** Mac OS X 67** macOS
68 68
69 Version 10.6 or newer. PowerPC is not supported. 69 Mac OS X 10.6 or newer. PowerPC is not supported.
70 For installation instructions see the file nextstep/INSTALL. 70 For installation instructions see the file nextstep/INSTALL.
71 71
72** Microsoft Windows 72** Microsoft Windows
diff --git a/etc/NEWS.22 b/etc/NEWS.22
index 1bc4967d6ab..5e414f18d64 100644
--- a/etc/NEWS.22
+++ b/etc/NEWS.22
@@ -262,7 +262,7 @@ item was added to the menu bar to make it easily accessible
262You no longer need to download a separate tarball in order to build 262You no longer need to download a separate tarball in order to build
263Emacs with Leim. 263Emacs with Leim.
264 264
265** Support for MacOS X was added. 265** Support for Mac OS X was added.
266See the files mac/README and mac/INSTALL for build instructions. 266See the files mac/README and mac/INSTALL for build instructions.
267 267
268** Mac OS 9 port now uses the Carbon API by default. You can also 268** Mac OS 9 port now uses the Carbon API by default. You can also
@@ -3390,7 +3390,7 @@ obsolete; use `dframe-update-speed' instead.
3390 3390
3391*** display-battery-mode replaces display-battery. 3391*** display-battery-mode replaces display-battery.
3392 3392
3393*** battery.el now works on recent versions of OS X. 3393*** battery.el now works on recent versions of Mac OS X.
3394 3394
3395** Games 3395** Games
3396 3396
diff --git a/etc/NEWS.24 b/etc/NEWS.24
index df2e11f08e7..08021f4ee04 100644
--- a/etc/NEWS.24
+++ b/etc/NEWS.24
@@ -84,7 +84,7 @@ It is no longer needed, as the crt*.o files are no longer linked specially.
84** Directories passed to configure option `--enable-locallisppath' are 84** Directories passed to configure option `--enable-locallisppath' are
85no longer created during installation. 85no longer created during installation.
86 86
87** Emacs for Nextstep (Mac OS X, GNUstep) can be built with ImageMagick support. 87** Emacs for Nextstep (OS X, GNUstep) can be built with ImageMagick support.
88This requires pkg-config to be available at build time. 88This requires pkg-config to be available at build time.
89 89
90 90
@@ -1559,7 +1559,7 @@ The previous binding, introduced in Emacs 24.1, was a mistake, because
1559 1559
1560*** New input method `vietnamese-vni'. 1560*** New input method `vietnamese-vni'.
1561 1561
1562** Nextstep (GNUstep / Mac OS X) port 1562** Nextstep (GNUstep / OS X) port
1563 1563
1564*** Support for fullscreen and the frame parameter fullscreen. 1564*** Support for fullscreen and the frame parameter fullscreen.
1565 1565
@@ -2373,9 +2373,9 @@ Emacs now supports `mouse-highlight', help-echo (in the echo area), and
2373** On MS Windows, you can pass `--without-libxml2' to configure.bat to omit 2373** On MS Windows, you can pass `--without-libxml2' to configure.bat to omit
2374support for libxml2, even if its presence is detected. 2374support for libxml2, even if its presence is detected.
2375 2375
2376** On Mac OS X, the Nextstep port requires OS X 10.4 or later. 2376** On OS X, the Nextstep port requires Mac OS X 10.4 or later.
2377 2377
2378** On Mac OS X, configure no longer automatically adds the Fink "/sw" 2378** On OS X, configure no longer automatically adds the Fink "/sw"
2379directories to the search path. You must add them yourself if you want them. 2379directories to the search path. You must add them yourself if you want them.
2380 2380
2381 2381
@@ -3833,7 +3833,7 @@ and also when HOME is set to C:\ by default.
3833(It is only used internally in the Emacs C code.) 3833(It is only used internally in the Emacs C code.)
3834 3834
3835** Customize ns-auto-hide-menu-bar to have the menu-bar hidden, but 3835** Customize ns-auto-hide-menu-bar to have the menu-bar hidden, but
3836reappear on mouse-over. (Requires OS X 10.6 or later.) 3836reappear on mouse-over. (Requires Mac OS X 10.6 or later.)
3837 3837
3838** On Mac OS X, dragging a file into Emacs visits the file, like on 3838** On Mac OS X, dragging a file into Emacs visits the file, like on
3839other platforms, rather than inserting its contents into the buffer. 3839other platforms, rather than inserting its contents into the buffer.
diff --git a/etc/NEWS.25 b/etc/NEWS.25
index a5bcb8dabdc..f6792431907 100644
--- a/etc/NEWS.25
+++ b/etc/NEWS.25
@@ -88,7 +88,7 @@ If gnustep-config is not available, the old heuristics are used.
88unless gfile is explicitly requested via --with-file-notification='gfile'. 88unless gfile is explicitly requested via --with-file-notification='gfile'.
89 89
90** 'configure' detects the kqueue file notification library on *BSD 90** 'configure' detects the kqueue file notification library on *BSD
91and Mac OS X machines. 91and macOS machines.
92 92
93** The configure option '--with-pkg-config-prog' has been removed. 93** The configure option '--with-pkg-config-prog' has been removed.
94Use './configure PKG_CONFIG=/full/name/of/pkg-config' if you need to. 94Use './configure PKG_CONFIG=/full/name/of/pkg-config' if you need to.
@@ -202,10 +202,10 @@ the 'network-security-level' variable.
202 202
203** 'x-select-enable-clipboard' is renamed 'select-enable-clipboard' 203** 'x-select-enable-clipboard' is renamed 'select-enable-clipboard'
204and 'x-select-enable-primary' is renamed 'select-enable-primary'. 204and 'x-select-enable-primary' is renamed 'select-enable-primary'.
205Additionally they both now apply to all systems (OSX, GNUstep, Windows, you 205Additionally they both now apply to all systems (macOS, GNUstep,
206name it), with the proviso that on some systems (e.g. Windows) 206MS-Windows, you name it), with the proviso that on some systems (e.g.,
207'select-enable-primary' is ineffective since the system doesn't 207MS-Windows) 'select-enable-primary' is ineffective since the system
208have the equivalent of a primary selection. 208doesn't have the equivalent of a primary selection.
209 209
210** New option 'switch-to-buffer-in-dedicated-window' allows you to 210** New option 'switch-to-buffer-in-dedicated-window' allows you to
211customize how 'switch-to-buffer' proceeds interactively when the 211customize how 'switch-to-buffer' proceeds interactively when the
@@ -817,7 +817,7 @@ PLIST will contain a :peer element that has the output of
817 817
818** Tramp 818** Tramp
819 819
820*** New connection method "afp", which allows you to access Mac OS X 820*** New connection method "afp", which allows you to access macOS
821volumes via the Apple Filing Protocol. 821volumes via the Apple Filing Protocol.
822 822
823*** New connection method "nc", which allows you to access dumb 823*** New connection method "nc", which allows you to access dumb
@@ -1076,7 +1076,7 @@ See <http://debbugs.gnu.org/22814>.
1076 1076
1077** File Notifications 1077** File Notifications
1078 1078
1079*** The kqueue library is integrated for *BSD and Mac OS X machines. 1079*** The kqueue library is integrated for *BSD and macOS machines.
1080 1080
1081*** The new event 'stopped' signals, that a file notification watch is 1081*** The new event 'stopped' signals, that a file notification watch is
1082not active any longer. 1082not active any longer.
@@ -1743,19 +1743,19 @@ of Windows starting with Windows 9X.
1743** The byte counts in etags-generated TAGS files are now the same on 1743** The byte counts in etags-generated TAGS files are now the same on
1744MS-Windows as they are on other platforms. 1744MS-Windows as they are on other platforms.
1745 1745
1746** On OS X, configure creates a Cocoa ("Nextstep") build by default. 1746** On macOS, configure creates a Cocoa ("Nextstep") build by default.
1747Pass '--without-ns' to configure to create an X11 build, the old default. 1747Pass '--without-ns' to configure to create an X11 build, the old default.
1748 1748
1749** OS X 10.5 or older is no longer supported. 1749** Mac OS X 10.5 or older is no longer supported.
1750 1750
1751** OS X on PowerPC is no longer supported. 1751** Mac OS X on PowerPC is no longer supported.
1752 1752
1753** New variable 'ns-use-fullscreen-animation' controls animation for 1753** New variable 'ns-use-fullscreen-animation' controls animation for
1754non-native NS fullscreen. The default is nil. Set to t to enable 1754non-native NS fullscreen. The default is nil. Set to t to enable
1755animation when entering and leaving fullscreen. For native OSX fullscreen 1755animation when entering and leaving fullscreen. For native macOS
1756this has no effect. 1756fullscreen this has no effect.
1757 1757
1758** On the OS X Cocoa ("Nextstep") port, multicolor font (such as color 1758** On the macOS Cocoa ("Nextstep") port, multicolor font (such as color
1759emoji) display is disabled. This feature was accidentally added when 1759emoji) display is disabled. This feature was accidentally added when
1760Emacs 24.4 included the new Core Text based font backend code that was 1760Emacs 24.4 included the new Core Text based font backend code that was
1761originally implemented for a non-mainline port. This will be enabled 1761originally implemented for a non-mainline port. This will be enabled
diff --git a/etc/NEXTSTEP b/etc/NEXTSTEP
index ad2ab959e6d..60c49ad8c7e 100644
--- a/etc/NEXTSTEP
+++ b/etc/NEXTSTEP
@@ -3,8 +3,8 @@ See the end of the file for license conditions.
3 3
4This file contains information about GNU Emacs on "Nextstep" platforms. 4This file contains information about GNU Emacs on "Nextstep" platforms.
5The Nextstep support code works on many POSIX systems (and possibly 5The Nextstep support code works on many POSIX systems (and possibly
6W32) using the GNUstep libraries, and on MacOS X systems using the 6W32) using the GNUstep libraries, and on macOS systems using the Cocoa
7Cocoa libraries. 7libraries.
8 8
9Background 9Background
10---------- 10----------
@@ -17,9 +17,9 @@ system in the late 1980's. Later on, in collaboration with Sun, this
17API was published as a specification called OpenStep. The GNUstep 17API was published as a specification called OpenStep. The GNUstep
18project started in the early 1990's to provide a free implementation 18project started in the early 1990's to provide a free implementation
19of this API. Later on, Apple bought NeXT (some would say "NeXT bought 19of this API. Later on, Apple bought NeXT (some would say "NeXT bought
20Apple") and made OpenStep the basis of OS X, calling the API "Cocoa". 20Apple") and made OpenStep the basis of Mac OS X, calling the API
21Since then, Cocoa has evolved beyond the OpenStep specification, and 21"Cocoa". Since then, Cocoa has evolved beyond the OpenStep
22GNUstep has followed it. 22specification, and GNUstep has followed it.
23 23
24Thus, calling this port "OpenStep" is not technically accurate, and in 24Thus, calling this port "OpenStep" is not technically accurate, and in
25the absence of any other determinant, we are using the term 25the absence of any other determinant, we are using the term
@@ -30,8 +30,8 @@ begin with the letters "NS".
30(See http://en.wikipedia.org/wiki/Nextstep) 30(See http://en.wikipedia.org/wiki/Nextstep)
31 31
32This Emacs port was first released in the early 1990's on the NeXT 32This Emacs port was first released in the early 1990's on the NeXT
33computer, and was successively updated to OpenStep, Rhapsody, OS X, 33computer, and was successively updated to OpenStep, Rhapsody, Mac OS
34and then finally GNUstep, tracking GNU emacs core releases in the 34X, and then finally GNUstep, tracking GNU Emacs core releases in the
35meantime. 35meantime.
36 36
37 37
@@ -62,13 +62,13 @@ Release History
62 62
631999/05/?? 6.0b3 Scott Bender: "OS X Server", Emacs 20.3. 631999/05/?? 6.0b3 Scott Bender: "OS X Server", Emacs 20.3.
64 64
652001/06/25 7.0 Ported to MacOS X (10.1) by Christophe de 652001/06/25 7.0 Ported to Mac OS X (10.1) by Christophe de
66 Dinechin. Release based on Emacs 20.7. Hosting 66 Dinechin. Release based on Emacs 20.7. Hosting
67 moved to SourceForge. 67 moved to SourceForge.
68 68
692002/01/03 7.0.1 Bug fixes. 692002/01/03 7.0.1 Bug fixes.
70 70
712002/08/27 7.0.2 Jaguar (OS X 10.2) support. Added an autoconf 712002/08/27 7.0.2 Jaguar (Mac OS X 10.2) support. Added autoconf
72 option for sys_nerr being in stdio. Added 72 option for sys_nerr being in stdio. Added
73 libncurses to the build libraries. Fixed a 73 libncurses to the build libraries. Fixed a
74 problem with ns-alternate-is-meta. Changed the 74 problem with ns-alternate-is-meta. Changed the
@@ -76,7 +76,7 @@ Release History
76 76
772004/10/07 8.0-pre1 Ported to GNUstep by Adrian Robert. 772004/10/07 8.0-pre1 Ported to GNUstep by Adrian Robert.
78 78
792004/11/04 8.0-pre2 Restored functionality on OS X (menu code 792004/11/04 8.0-pre2 Restored functionality on Mac OS X (menu code
80 cleanup). Improved scrollbar handling and 80 cleanup). Improved scrollbar handling and
81 paste from other applications. File icons 81 paste from other applications. File icons
82 obtained properly from NSWorkspace. Dropped 82 obtained properly from NSWorkspace. Dropped
@@ -116,7 +116,8 @@ Release History
116 and Planner go away. Improved scrollbar 116 and Planner go away. Improved scrollbar
117 handling and rendering speed. Color panel 117 handling and rendering speed. Color panel
118 and other bug fixes. mac-fix-env utility. 118 and other bug fixes. mac-fix-env utility.
119 Font handling improvements (OS X 10.3, 10.4): 119 Font handling improvements (Mac OS X 10.3,
120 10.4):
120 - heed 'GSFontAntiAlias' default 121 - heed 'GSFontAntiAlias' default
121 - heed system antialiasing threshold 122 - heed system antialiasing threshold
122 - added 'UseQuickdrawSmoothing' default to 123 - added 'UseQuickdrawSmoothing' default to
@@ -150,8 +151,9 @@ Release History
150 handling improved. Fixed some portability 151 handling improved. Fixed some portability
151 problems on Tiger and Puma. 152 problems on Tiger and Puma.
152 153
1532005/09/12 8.0 Bundled ispell on OS X. Minor bug fixes and 1542005/09/12 8.0 Bundled ispell on Mac OS X. Minor bug fixes
154 stability improvements. Compiles under gcc-4. 155 and stability improvements. Compiles under
156 gcc-4.
155 157
1562005/09/26 8.0.1 Correct clipped rendering for synthetic 1582005/09/26 8.0.1 Correct clipped rendering for synthetic
157 italics. Include the info directory. 159 italics. Include the info directory.
@@ -247,7 +249,7 @@ Christian Limpach
247Scott Bender 249Scott Bender
248 OpenStep, Rhapsody ports 250 OpenStep, Rhapsody ports
249Christophe de Dinechin 251Christophe de Dinechin
250 MacOS X port 252 macOS port
251Adrian Robert 253Adrian Robert
252 GNUstep port, update Emacs 20 -> 21+ 254 GNUstep port, update Emacs 20 -> 21+
253 255
diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index 9d80139fa94..8d8c0c604a7 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -952,7 +952,7 @@ instead of requiring each Babel library one by one.
952- New option [[doc:org-gnus-no-server][org-gnus-no-server]] to start Gnus with =gnus-no-server= 952- New option [[doc:org-gnus-no-server][org-gnus-no-server]] to start Gnus with =gnus-no-server=
953- Org is now distributed with =htmlize.el= version 1.43 953- Org is now distributed with =htmlize.el= version 1.43
954- ~org-drill.el~ has been updated to version 2.3.7 954- ~org-drill.el~ has been updated to version 2.3.7
955- ~org-mac-iCal.el~ now supports MacOSX version up to 10.8 955- ~org-mac-iCal.el~ now supports OS X versions up to 10.8
956- Various improvements to ~org-contacts.el~ and =orgpan.el= 956- Various improvements to ~org-contacts.el~ and =orgpan.el=
957 957
958** Outside Org 958** Outside Org
diff --git a/etc/TODO b/etc/TODO
index 48c1654aa1f..84c1b6d8ffd 100644
--- a/etc/TODO
+++ b/etc/TODO
@@ -700,7 +700,7 @@ resize the frame.
700**** Support 'proced' (implement 'process-attributes') 700**** Support 'proced' (implement 'process-attributes')
701 701
702Unfortunately, a user-level process like Emacs does not have the 702Unfortunately, a user-level process like Emacs does not have the
703privileges to get information about other processes under OS X. 703privileges to get information about other processes under macOS.
704 704
705There are other ways to do this: 705There are other ways to do this:
706 706
@@ -711,7 +711,7 @@ There are other ways to do this:
711 3) Ask the user to self-sign Emacs, if this feature is of interest. 711 3) Ask the user to self-sign Emacs, if this feature is of interest.
712 712
713Anders Lindgren <andlind@gmail.com> has implemented 713Anders Lindgren <andlind@gmail.com> has implemented
714'process-attributes' for OS X, which currently only work when 714'process-attributes' for macOS, which currently only work when
715running Emacs as root. 715running Emacs as root.
716 716
717See this article by Bozhidar Batsov for an overview of Proced: 717See this article by Bozhidar Batsov for an overview of Proced:
@@ -724,11 +724,11 @@ even though Emacs allows a user to customize such features.
724 724
725*** New features 725*** New features
726 726
727This section contains features unique to Nextstep and/or OS X. 727This section contains features unique to Nextstep and/or macOS.
728 728
729**** PressAndHold for writing accented character 729**** PressAndHold for writing accented character
730 730
731On OS X, many application support the press and hold pattern to 731On macOS, many application support the press and hold pattern to
732invoke a menu of accented characters. (See example at 732invoke a menu of accented characters. (See example at
733https://support.apple.com/en-us/HT201586 .) 733https://support.apple.com/en-us/HT201586 .)
734 734
@@ -741,7 +741,7 @@ implemented in Emacs for a free system.
741 741
742**** Floating scroll bars 742**** Floating scroll bars
743 743
744In modern OS X applications, the scroll bar often floats over the 744In modern macOS applications, the scroll bar often floats over the
745content, and is invisible unless actually used. This makes the user 745content, and is invisible unless actually used. This makes the user
746interface less cluttered and more area could be used to contain text. 746interface less cluttered and more area could be used to contain text.
747 747
@@ -804,7 +804,7 @@ This section contains issues where there is an ongoing debate.
804**** Key bindings of CMD and ALT 804**** Key bindings of CMD and ALT
805 805
806Currently in the "ns" port, ALT is bound to Meta and CMD is bound to 806Currently in the "ns" port, ALT is bound to Meta and CMD is bound to
807Super -- allowing the user to use typical OS X commands like CMD-A to 807Super -- allowing the user to use typical macOS commands like CMD-A to
808mark everything. 808mark everything.
809 809
810Unfortunately, when using an international keyboard, you can't type 810Unfortunately, when using an international keyboard, you can't type
@@ -852,9 +852,10 @@ Emacs can be build in a number of different ways. For each feature,
852consider if is really is "NS" specific, or if it should be applied to 852consider if is really is "NS" specific, or if it should be applied to
853all build versions. 853all build versions.
854 854
855- With the "NS" interface. This is the normal way to build Emacs on OS X. 855- With the "NS" interface. This is the normal way to build Emacs on
856 macOS.
856 857
857- With the "X11" interface. On OS X, this is mainly of interest to 858- With the "X11" interface. On macOS, this is mainly of interest to
858 developers of Emacs to get a "reference" interface implementations. 859 developers of Emacs to get a "reference" interface implementations.
859 However, it might be of interest for people working remotely, as X11 860 However, it might be of interest for people working remotely, as X11
860 applications can be used over a network connection. 861 applications can be used over a network connection.
@@ -863,12 +864,12 @@ all build versions.
863 864
864*** Bugs 865*** Bugs
865 866
866**** Incorrect translation of Super modifier with Ctrl or Meta on OS X 867**** Incorrect translation of Super modifier with Ctrl or Meta on macOS
867 868
868When pressing 'M-s-a', Emacs replies "M-s-å is undefined". What 869When pressing 'M-s-a', Emacs replies "M-s-å is undefined". What
869happened is a mix of Emacs view that Meta and Super has been pressed, 870happened is a mix of Emacs view that Meta and Super has been pressed,
870and OS X view that ALT-a should yield "å" (U+00E5 LATIN SMALL LETTER A 871and macOS view that ALT-a should yield "å" (U+00E5 LATIN SMALL LETTER
871WITH RING ABOVE). 872A WITH RING ABOVE).
872 873
873The bug reports suggest two different patches; unfortunately, neither 874The bug reports suggest two different patches; unfortunately, neither
874works properly. For example: 875works properly. For example:
diff --git a/etc/refcards/calccard.tex b/etc/refcards/calccard.tex
index 5ca8207e2c8..e692ca4b7d9 100644
--- a/etc/refcards/calccard.tex
+++ b/etc/refcards/calccard.tex
@@ -22,14 +22,18 @@
22 22
23% Copyright (C) 1987, 1992, 2001-2016 Free Software Foundation, Inc. 23% Copyright (C) 1987, 1992, 2001-2016 Free Software Foundation, Inc.
24 24
25% This file is part of GNU Emacs. 25% This document is free software: you can redistribute it and/or modify
26
27% GNU Emacs is free software: you can redistribute it and/or modify
28% it under the terms of the GNU General Public License as published by 26% it under the terms of the GNU General Public License as published by
29% the Free Software Foundation, either version 3 of the License, or 27% the Free Software Foundation, either version 3 of the License, or
30% (at your option) any later version. 28% (at your option) any later version.
31 29
32% GNU Emacs is distributed in the hope that it will be useful, 30% As a special additional permission, you may distribute reference cards
31% printed, or formatted for printing, with the notice "Released under
32% the terms of the GNU General Public License version 3 or later"
33% instead of the usual distributed-under-the-GNU-GPL notice, and without
34% a copy of the GPL itself.
35
36% This document is distributed in the hope that it will be useful,
33% but WITHOUT ANY WARRANTY; without even the implied warranty of 37% but WITHOUT ANY WARRANTY; without even the implied warranty of
34% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 38% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35% GNU General Public License for more details. 39% GNU General Public License for more details.
@@ -75,14 +79,10 @@
75\centerline{designed by Dave Gillespie and Stephen Gildea,} 79\centerline{designed by Dave Gillespie and Stephen Gildea,}
76\centerline{for GNU Emacs Calc.} 80\centerline{for GNU Emacs Calc.}
77 81
78Permission is granted to make and distribute copies of 82Released under the terms of the GNU General Public License version 3 or later.
79this card provided the copyright notice and this permission notice 83
80are preserved on all copies. 84\TeX{} source for this card is distributed with Emacs in {\tt etc/refcards/}
81 85
82%For copies of the GNU Emacs Calc manual, write to the Free Software
83%Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
84%MA 02110-1301, USA.
85%
86\endgroup} 86\endgroup}
87 87
88% make \bye not \outer so that the \def\bye in the \else clause below 88% make \bye not \outer so that the \def\bye in the \else clause below
diff --git a/etc/refcards/cs-dired-ref.tex b/etc/refcards/cs-dired-ref.tex
index d980170724d..c36167d5619 100644
--- a/etc/refcards/cs-dired-ref.tex
+++ b/etc/refcards/cs-dired-ref.tex
@@ -5,14 +5,18 @@
5% Author: Evgeny Roubinchtein <eroubinc@u.washington.edu> 5% Author: Evgeny Roubinchtein <eroubinc@u.washington.edu>
6% Czech translation: Pavel Janík <Pavel@Janik.cz>, March 2001 6% Czech translation: Pavel Janík <Pavel@Janik.cz>, March 2001
7 7
8% This file is part of GNU Emacs. 8% This document is free software: you can redistribute it and/or modify
9
10% GNU Emacs is free software: you can redistribute it and/or modify
11% it under the terms of the GNU General Public License as published by 9% it under the terms of the GNU General Public License as published by
12% the Free Software Foundation, either version 3 of the License, or 10% the Free Software Foundation, either version 3 of the License, or
13% (at your option) any later version. 11% (at your option) any later version.
14 12
15% GNU Emacs is distributed in the hope that it will be useful, 13% As a special additional permission, you may distribute reference cards
14% printed, or formatted for printing, with the notice "Released under
15% the terms of the GNU General Public License version 3 or later"
16% instead of the usual distributed-under-the-GNU-GPL notice, and without
17% a copy of the GPL itself.
18
19% This document is distributed in the hope that it will be useful,
16% but WITHOUT ANY WARRANTY; without even the implied warranty of 20% but WITHOUT ANY WARRANTY; without even the implied warranty of
17% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18% GNU General Public License for more details. 22% GNU General Public License for more details.
@@ -57,9 +61,9 @@
57\centerline{using refcard layout designed by Stephen Gildea.} 61\centerline{using refcard layout designed by Stephen Gildea.}
58\centerline{Translated by Pavel Janík.} 62\centerline{Translated by Pavel Janík.}
59 63
60Permission is granted to make and distribute copies of 64Released under the terms of the GNU General Public License version 3 or later.
61this card provided the copyright notice and this permission notice 65
62are preserved on all copies. 66\TeX{} source for this card is distributed with Emacs in {\tt etc/refcards/}
63 67
64For copies of the GNU Emacs manual, see: 68For copies of the GNU Emacs manual, see:
65 69
diff --git a/etc/refcards/cs-refcard.tex b/etc/refcards/cs-refcard.tex
index ecd7064f977..154831029ab 100644
--- a/etc/refcards/cs-refcard.tex
+++ b/etc/refcards/cs-refcard.tex
@@ -8,14 +8,18 @@
8% Milan Zamazal <pdm@zamazal.org>, August 1999 8% Milan Zamazal <pdm@zamazal.org>, August 1999
9% Pavel Janík <Pavel@Janik.cz>, November 2000 (Emacs 21) 9% Pavel Janík <Pavel@Janik.cz>, November 2000 (Emacs 21)
10 10
11% This file is part of GNU Emacs. 11% This document is free software: you can redistribute it and/or modify
12
13% GNU Emacs is free software: you can redistribute it and/or modify
14% it under the terms of the GNU General Public License as published by 12% it under the terms of the GNU General Public License as published by
15% the Free Software Foundation, either version 3 of the License, or 13% the Free Software Foundation, either version 3 of the License, or
16% (at your option) any later version. 14% (at your option) any later version.
17 15
18% GNU Emacs is distributed in the hope that it will be useful, 16% As a special additional permission, you may distribute reference cards
17% printed, or formatted for printing, with the notice "Released under
18% the terms of the GNU General Public License version 3 or later"
19% instead of the usual distributed-under-the-GNU-GPL notice, and without
20% a copy of the GPL itself.
21
22% This document is distributed in the hope that it will be useful,
19% but WITHOUT ANY WARRANTY; without even the implied warranty of 23% but WITHOUT ANY WARRANTY; without even the implied warranty of
20% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21% GNU General Public License for more details. 25% GNU General Public License for more details.
@@ -74,9 +78,9 @@
74\centerline{Designed by Stephen Gildea} 78\centerline{Designed by Stephen Gildea}
75\centerline{Translated by Jan Buchal, Milan Zamazal, Pavel Janík} 79\centerline{Translated by Jan Buchal, Milan Zamazal, Pavel Janík}
76 80
77Permission is granted to make and distribute copies of 81Released under the terms of the GNU General Public License version 3 or later.
78this card provided the copyright notice and this permission notice 82
79are preserved on all copies. 83\TeX{} source for this card is distributed with Emacs in {\tt etc/refcards/}
80 84
81For copies of the GNU Emacs manual, see: 85For copies of the GNU Emacs manual, see:
82 86
diff --git a/etc/refcards/cs-survival.tex b/etc/refcards/cs-survival.tex
index bb38a916bb0..77893aec3ac 100644
--- a/etc/refcards/cs-survival.tex
+++ b/etc/refcards/cs-survival.tex
@@ -5,14 +5,18 @@
5% Author: Wlodek Bzyl <matwb@univ.gda.pl> 5% Author: Wlodek Bzyl <matwb@univ.gda.pl>
6% Czech translation: Pavel Janík <Pavel@Janik.cz>, March 2001 6% Czech translation: Pavel Janík <Pavel@Janik.cz>, March 2001
7 7
8% This file is part of GNU Emacs. 8% This document is free software: you can redistribute it and/or modify
9
10% GNU Emacs is free software: you can redistribute it and/or modify
11% it under the terms of the GNU General Public License as published by 9% it under the terms of the GNU General Public License as published by
12% the Free Software Foundation, either version 3 of the License, or 10% the Free Software Foundation, either version 3 of the License, or
13% (at your option) any later version. 11% (at your option) any later version.
14 12
15% GNU Emacs is distributed in the hope that it will be useful, 13% As a special additional permission, you may distribute reference cards
14% printed, or formatted for printing, with the notice "Released under
15% the terms of the GNU General Public License version 3 or later"
16% instead of the usual distributed-under-the-GNU-GPL notice, and without
17% a copy of the GPL itself.
18
19% This document is distributed in the hope that it will be useful,
16% but WITHOUT ANY WARRANTY; without even the implied warranty of 20% but WITHOUT ANY WARRANTY; without even the implied warranty of
17% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18% GNU General Public License for more details. 22% GNU General Public License for more details.
@@ -63,9 +67,11 @@
63 W{\l}odek Bzyl (matwb@univ.gda.pl)\break 67 W{\l}odek Bzyl (matwb@univ.gda.pl)\break
64 Do češtiny přeložil Pavel Janík (Pavel@Janik.cz) 68 Do češtiny přeložil Pavel Janík (Pavel@Janik.cz)
65 69
66 Kopie tohoto dokumentu můžete vytvářet a šířit 70 Released under the terms of the GNU General Public License
67 za předpokladu, že budou obsahovat tuto poznámku 71 version 3 or later.
68 o autorských právech.\par}} 72
73 \TeX{} source for this card is distributed with Emacs in
74 {\tt etc/refcards/}\par}}
69 75
70\hsize 3.2in 76\hsize 3.2in
71\vsize 7.95in 77\vsize 7.95in
diff --git a/etc/refcards/de-refcard.tex b/etc/refcards/de-refcard.tex
index 748f9f8add2..89636a84509 100644
--- a/etc/refcards/de-refcard.tex
+++ b/etc/refcards/de-refcard.tex
@@ -6,14 +6,18 @@
6% Author: Stephen Gildea <gildea@stop.mail-abuse.org> 6% Author: Stephen Gildea <gildea@stop.mail-abuse.org>
7% German translation: Sven Joachim <svenjoac@gmx.de> 7% German translation: Sven Joachim <svenjoac@gmx.de>
8 8
9% This file is part of GNU Emacs. 9% This document is free software: you can redistribute it and/or modify
10
11% GNU Emacs is free software: you can redistribute it and/or modify
12% it under the terms of the GNU General Public License as published by 10% it under the terms of the GNU General Public License as published by
13% the Free Software Foundation, either version 3 of the License, or 11% the Free Software Foundation, either version 3 of the License, or
14% (at your option) any later version. 12% (at your option) any later version.
15 13
16% GNU Emacs is distributed in the hope that it will be useful, 14% As a special additional permission, you may distribute reference cards
15% printed, or formatted for printing, with the notice "Released under
16% the terms of the GNU General Public License version 3 or later"
17% instead of the usual distributed-under-the-GNU-GPL notice, and without
18% a copy of the GPL itself.
19
20% This document is distributed in the hope that it will be useful,
17% but WITHOUT ANY WARRANTY; without even the implied warranty of 21% but WITHOUT ANY WARRANTY; without even the implied warranty of
18% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19% GNU General Public License for more details. 23% GNU General Public License for more details.
@@ -75,10 +79,10 @@
75\centerline{Entworfen von Stephen Gildea} 79\centerline{Entworfen von Stephen Gildea}
76% \centerline{deutsche \"Ubersetzung von Sven Joachim} 80% \centerline{deutsche \"Ubersetzung von Sven Joachim}
77 81
78Es ist gestattet, ver\"anderte und unver\"anderte Kopien dieser 82Released under the terms of the GNU General Public License
79Karte her\-zu\-stellen und zu verbreiten, vorausgesetzt dass sich 83version 3 or later.
80der Copyright-Hinweis und der Hinweis auf diese Erlaubnis auf allen 84
81Kopien befinden. 85\TeX{} source for this card is distributed with Emacs in {\tt etc/refcards/}
82 86
83F\"ur Kopien des Handbuchs zu GNU Emacs: 87F\"ur Kopien des Handbuchs zu GNU Emacs:
84 88
diff --git a/etc/refcards/dired-ref.tex b/etc/refcards/dired-ref.tex
index cef3f46fd81..5f8d8babcc3 100644
--- a/etc/refcards/dired-ref.tex
+++ b/etc/refcards/dired-ref.tex
@@ -4,14 +4,18 @@
4 4
5% Author: Evgeny Roubinchtein <eroubinc@u.washington.edu> 5% Author: Evgeny Roubinchtein <eroubinc@u.washington.edu>
6 6
7% This file is part of GNU Emacs. 7% This document is free software: you can redistribute it and/or modify
8
9% GNU Emacs is free software: you can redistribute it and/or modify
10% it under the terms of the GNU General Public License as published by 8% it under the terms of the GNU General Public License as published by
11% the Free Software Foundation, either version 3 of the License, or 9% the Free Software Foundation, either version 3 of the License, or
12% (at your option) any later version. 10% (at your option) any later version.
13 11
14% GNU Emacs is distributed in the hope that it will be useful, 12% As a special additional permission, you may distribute reference cards
13% printed, or formatted for printing, with the notice "Released under
14% the terms of the GNU General Public License version 3 or later"
15% instead of the usual distributed-under-the-GNU-GPL notice, and without
16% a copy of the GPL itself.
17
18% This document is distributed in the hope that it will be useful,
15% but WITHOUT ANY WARRANTY; without even the implied warranty of 19% but WITHOUT ANY WARRANTY; without even the implied warranty of
16% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17% GNU General Public License for more details. 21% GNU General Public License for more details.
@@ -58,9 +62,9 @@
58\centerline{Originally written May 2000 by Evgeny Roubinchtein,} 62\centerline{Originally written May 2000 by Evgeny Roubinchtein,}
59\centerline{using refcard layout designed by Stephen Gildea.} 63\centerline{using refcard layout designed by Stephen Gildea.}
60 64
61Permission is granted to make and distribute copies of 65Released under the terms of the GNU General Public License version 3 or later.
62this card provided the copyright notice and this permission notice 66
63are preserved on all copies. 67\TeX{} source for this card is distributed with Emacs in {\tt etc/refcards/}
64 68
65For copies of the GNU Emacs manual, see: 69For copies of the GNU Emacs manual, see:
66 70
diff --git a/etc/refcards/fr-dired-ref.tex b/etc/refcards/fr-dired-ref.tex
index c430a97ee0c..913372bc8cd 100644
--- a/etc/refcards/fr-dired-ref.tex
+++ b/etc/refcards/fr-dired-ref.tex
@@ -5,14 +5,18 @@
5% Author: Evgeny Roubinchtein <eroubinc@u.washington.edu> 5% Author: Evgeny Roubinchtein <eroubinc@u.washington.edu>
6% French translation: Eric Jacoboni 6% French translation: Eric Jacoboni
7 7
8% This file is part of GNU Emacs. 8% This document is free software: you can redistribute it and/or modify
9
10% GNU Emacs is free software: you can redistribute it and/or modify
11% it under the terms of the GNU General Public License as published by 9% it under the terms of the GNU General Public License as published by
12% the Free Software Foundation, either version 3 of the License, or 10% the Free Software Foundation, either version 3 of the License, or
13% (at your option) any later version. 11% (at your option) any later version.
14 12
15% GNU Emacs is distributed in the hope that it will be useful, 13% As a special additional permission, you may distribute reference cards
14% printed, or formatted for printing, with the notice "Released under
15% the terms of the GNU General Public License version 3 or later"
16% instead of the usual distributed-under-the-GNU-GPL notice, and without
17% a copy of the GPL itself.
18
19% This document is distributed in the hope that it will be useful,
16% but WITHOUT ANY WARRANTY; without even the implied warranty of 20% but WITHOUT ANY WARRANTY; without even the implied warranty of
17% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18% GNU General Public License for more details. 22% GNU General Public License for more details.
@@ -51,9 +55,10 @@
51\centerline{Mis \`a jour pour Dired en Mai 2000 par Evgeny Roubinchtein} 55\centerline{Mis \`a jour pour Dired en Mai 2000 par Evgeny Roubinchtein}
52\centerline{Traduction fran\c{c}aise d'\'Eric Jacoboni} 56\centerline{Traduction fran\c{c}aise d'\'Eric Jacoboni}
53 57
54Vous pouvez faire et distribuer des copies de cette carte, pourvu que 58Released under the terms of the GNU General Public License
55la notice de copyright et cette note de permission soient pr\'eserv\'ees 59version 3 or later.
56sur toutes les copies. 60
61\TeX{} source for this card is distributed with Emacs in {\tt etc/refcards/}
57 62
58Pour obtenir des copies du manuel de GNU Emacs: 63Pour obtenir des copies du manuel de GNU Emacs:
59 64
diff --git a/etc/refcards/fr-refcard.tex b/etc/refcards/fr-refcard.tex
index e63d34fdb4c..ddaa85befbe 100644
--- a/etc/refcards/fr-refcard.tex
+++ b/etc/refcards/fr-refcard.tex
@@ -7,14 +7,18 @@
7% French translation: Eric Jacoboni 7% French translation: Eric Jacoboni
8% Micha\"el Cadilhac 8% Micha\"el Cadilhac
9 9
10% This file is part of GNU Emacs. 10% This document is free software: you can redistribute it and/or modify
11
12% GNU Emacs is free software: you can redistribute it and/or modify
13% it under the terms of the GNU General Public License as published by 11% it under the terms of the GNU General Public License as published by
14% the Free Software Foundation, either version 3 of the License, or 12% the Free Software Foundation, either version 3 of the License, or
15% (at your option) any later version. 13% (at your option) any later version.
16 14
17% GNU Emacs is distributed in the hope that it will be useful, 15% As a special additional permission, you may distribute reference cards
16% printed, or formatted for printing, with the notice "Released under
17% the terms of the GNU General Public License version 3 or later"
18% instead of the usual distributed-under-the-GNU-GPL notice, and without
19% a copy of the GPL itself.
20
21% This document is distributed in the hope that it will be useful,
18% but WITHOUT ANY WARRANTY; without even the implied warranty of 22% but WITHOUT ANY WARRANTY; without even the implied warranty of
19% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20% GNU General Public License for more details. 24% GNU General Public License for more details.
@@ -72,9 +76,9 @@
72\centerline{Traduction fran\c{c}aise de Micha\"el Cadilhac} 76\centerline{Traduction fran\c{c}aise de Micha\"el Cadilhac}
73% previously: Eric Jacoboni 77% previously: Eric Jacoboni
74 78
75Vous pouvez faire et distribuer des copies de cette carte, modifi\'ee ou 79Released under the terms of the GNU General Public License version 3 or later.
76non, pourvu que la note de copyright et cette note de permission 80
77soient conserv\'ees sur toutes les copies. 81\TeX{} source for this card is distributed with Emacs in {\tt etc/refcards/}
78 82
79Pour des copies du manuel GNU Emacs: 83Pour des copies du manuel GNU Emacs:
80 84
diff --git a/etc/refcards/fr-survival.tex b/etc/refcards/fr-survival.tex
index 1256de33f08..a6279e80d40 100644
--- a/etc/refcards/fr-survival.tex
+++ b/etc/refcards/fr-survival.tex
@@ -6,14 +6,18 @@
6% Author: Wlodek Bzyl <matwb@univ.gda.pl> 6% Author: Wlodek Bzyl <matwb@univ.gda.pl>
7% French translation: \'Eric Jacoboni <jaco@teaser.fr>, November 2001 7% French translation: \'Eric Jacoboni <jaco@teaser.fr>, November 2001
8 8
9% This file is part of GNU Emacs. 9% This document is free software: you can redistribute it and/or modify
10
11% GNU Emacs is free software: you can redistribute it and/or modify
12% it under the terms of the GNU General Public License as published by 10% it under the terms of the GNU General Public License as published by
13% the Free Software Foundation, either version 3 of the License, or 11% the Free Software Foundation, either version 3 of the License, or
14% (at your option) any later version. 12% (at your option) any later version.
15 13
16% GNU Emacs is distributed in the hope that it will be useful, 14% As a special additional permission, you may distribute reference cards
15% printed, or formatted for printing, with the notice "Released under
16% the terms of the GNU General Public License version 3 or later"
17% instead of the usual distributed-under-the-GNU-GPL notice, and without
18% a copy of the GPL itself.
19
20% This document is distributed in the hope that it will be useful,
17% but WITHOUT ANY WARRANTY; without even the implied warranty of 21% but WITHOUT ANY WARRANTY; without even the implied warranty of
18% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19% GNU General Public License for more details. 23% GNU General Public License for more details.
@@ -58,9 +62,11 @@
58 Auteur W{\l}odek Bzyl (matwb@univ.gda.pl)\break 62 Auteur W{\l}odek Bzyl (matwb@univ.gda.pl)\break
59 Traduction fran\c{c}aise \'Eric Jacoboni (jaco@teaser.fr) 63 Traduction fran\c{c}aise \'Eric Jacoboni (jaco@teaser.fr)
60 64
61 Vous pouvez faire et distribuer des copies de cette carte, pourvu 65 Released under the terms of the GNU General Public License
62 que la note de copyright, ainsi que cette notice soient 66 version 3 or later.
63 pr\'eserv\'ees sur toutes les copies.\par}} 67
68 \TeX{} source for this card is distributed with Emacs in {\tt
69 etc/refcards/}\par}}
64 70
65\hsize 3.2in 71\hsize 3.2in
66\vsize 7.95in 72\vsize 7.95in
diff --git a/etc/refcards/gnus-refcard.tex b/etc/refcards/gnus-refcard.tex
index d51e2aca639..46d0d7df225 100644
--- a/etc/refcards/gnus-refcard.tex
+++ b/etc/refcards/gnus-refcard.tex
@@ -123,9 +123,11 @@
123 Copyright \copyright\ 1995, 2000, 2002--2016 Free Software Foundation, Inc.\\* 123 Copyright \copyright\ 1995, 2000, 2002--2016 Free Software Foundation, Inc.\\*
124 \end{center} 124 \end{center}
125 125
126 Permission is granted to make and distribute copies of this reference 126 Released under the terms of the GNU General Public License version 3 or later.
127 \guide{} provided the copyright notice and this permission are preserved on 127
128 all copies. Please send corrections, additions and suggestions to the 128 \TeX{} source for this card is distributed with Emacs in {\tt etc/refcards/}
129
130 Please send corrections, additions and suggestions to the
129 current maintainer's email address. \Guide{} last edited on \date. 131 current maintainer's email address. \Guide{} last edited on \date.
130 } 132 }
131 133
diff --git a/etc/refcards/orgcard.tex b/etc/refcards/orgcard.tex
index 20df7534d27..a5a66264557 100644
--- a/etc/refcards/orgcard.tex
+++ b/etc/refcards/orgcard.tex
@@ -20,14 +20,18 @@
20% Copyright (C) 1987, 1993, 1996-1997, 2001-2016 Free Software 20% Copyright (C) 1987, 1993, 1996-1997, 2001-2016 Free Software
21% Foundation, Inc. 21% Foundation, Inc.
22 22
23% This file is part of GNU Emacs. 23% This document is free software: you can redistribute it and/or modify
24
25% GNU Emacs is free software: you can redistribute it and/or modify
26% it under the terms of the GNU General Public License as published by 24% it under the terms of the GNU General Public License as published by
27% the Free Software Foundation, either version 3 of the License, or 25% the Free Software Foundation, either version 3 of the License, or
28% (at your option) any later version. 26% (at your option) any later version.
29 27
30% GNU Emacs is distributed in the hope that it will be useful, 28% As a special additional permission, you may distribute reference cards
29% printed, or formatted for printing, with the notice "Released under
30% the terms of the GNU General Public License version 3 or later"
31% instead of the usual distributed-under-the-GNU-GPL notice, and without
32% a copy of the GPL itself.
33
34% This document is distributed in the hope that it will be useful,
31% but WITHOUT ANY WARRANTY; without even the implied warranty of 35% but WITHOUT ANY WARRANTY; without even the implied warranty of
32% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 36% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33% GNU General Public License for more details. 37% GNU General Public License for more details.
@@ -73,9 +77,10 @@
73\centerline{Author: Philip Rooke} 77\centerline{Author: Philip Rooke}
74\centerline{based on refcard design and format by Stephen Gildea} 78\centerline{based on refcard design and format by Stephen Gildea}
75 79
76Permission is granted to make and distribute copies of 80\centerline{Released under the terms of the GNU General Public License}
77this card provided the copyright notice and this permission notice 81\centerline{version 3 or later.}
78are preserved on all copies. 82
83\centerline{\TeX{} source for this card is distributed with Emacs in {\tt etc/refcards/}}
79 84
80\endgroup} 85\endgroup}
81 86
diff --git a/etc/refcards/pl-refcard.tex b/etc/refcards/pl-refcard.tex
index e4fbb6f6e24..df370d4b504 100644
--- a/etc/refcards/pl-refcard.tex
+++ b/etc/refcards/pl-refcard.tex
@@ -6,14 +6,18 @@
6% Author: Stephen Gildea <gildea@stop.mail-abuse.org> 6% Author: Stephen Gildea <gildea@stop.mail-abuse.org>
7% Polish translation: W{\l}odek Bzyl <matwb@univ.gda.pl> 7% Polish translation: W{\l}odek Bzyl <matwb@univ.gda.pl>
8 8
9% This file is part of GNU Emacs. 9% This document is free software: you can redistribute it and/or modify
10
11% GNU Emacs is free software: you can redistribute it and/or modify
12% it under the terms of the GNU General Public License as published by 10% it under the terms of the GNU General Public License as published by
13% the Free Software Foundation, either version 3 of the License, or 11% the Free Software Foundation, either version 3 of the License, or
14% (at your option) any later version. 12% (at your option) any later version.
15 13
16% GNU Emacs is distributed in the hope that it will be useful, 14% As a special additional permission, you may distribute reference cards
15% printed, or formatted for printing, with the notice "Released under
16% the terms of the GNU General Public License version 3 or later"
17% instead of the usual distributed-under-the-GNU-GPL notice, and without
18% a copy of the GPL itself.
19
20% This document is distributed in the hope that it will be useful,
17% but WITHOUT ANY WARRANTY; without even the implied warranty of 21% but WITHOUT ANY WARRANTY; without even the implied warranty of
18% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19% GNU General Public License for more details. 23% GNU General Public License for more details.
@@ -84,9 +88,9 @@
84\centerline{projekt Stephen Gildea} 88\centerline{projekt Stephen Gildea}
85\centerline{t/lumaczenie W/lodek Bzyl} 89\centerline{t/lumaczenie W/lodek Bzyl}
86 90
87Permission is granted to make and distribute copies of 91Released under the terms of the GNU General Public License version 3 or later.
88this card provided the copyright notice and this permission notice 92
89are preserved on all copies. 93\TeX{} source for this card is distributed with Emacs in {\tt etc/refcards/}
90 94
91For copies of the GNU Emacs manual, see: 95For copies of the GNU Emacs manual, see:
92 96
diff --git a/etc/refcards/pt-br-refcard.tex b/etc/refcards/pt-br-refcard.tex
index c1b31f85ac9..27849a3d8d3 100644
--- a/etc/refcards/pt-br-refcard.tex
+++ b/etc/refcards/pt-br-refcard.tex
@@ -6,14 +6,18 @@
6% Author: Stephen Gildea <gildea@stop.mail-abuse.org> 6% Author: Stephen Gildea <gildea@stop.mail-abuse.org>
7% Portuguese translation: Rodrigo Real <rreal@ucpel.tche.br> 7% Portuguese translation: Rodrigo Real <rreal@ucpel.tche.br>
8 8
9% This file is part of GNU Emacs. 9% This document is free software: you can redistribute it and/or modify
10
11% GNU Emacs is free software: you can redistribute it and/or modify
12% it under the terms of the GNU General Public License as published by 10% it under the terms of the GNU General Public License as published by
13% the Free Software Foundation, either version 3 of the License, or 11% the Free Software Foundation, either version 3 of the License, or
14% (at your option) any later version. 12% (at your option) any later version.
15 13
16% GNU Emacs is distributed in the hope that it will be useful, 14% As a special additional permission, you may distribute reference cards
15% printed, or formatted for printing, with the notice "Released under
16% the terms of the GNU General Public License version 3 or later"
17% instead of the usual distributed-under-the-GNU-GPL notice, and without
18% a copy of the GPL itself.
19
20% This document is distributed in the hope that it will be useful,
17% but WITHOUT ANY WARRANTY; without even the implied warranty of 21% but WITHOUT ANY WARRANTY; without even the implied warranty of
18% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19% GNU General Public License for more details. 23% GNU General Public License for more details.
@@ -77,9 +81,9 @@
77\centerline{Designed by Stephen Gildea} 81\centerline{Designed by Stephen Gildea}
78\centerline{Translated by Rodrigo Real} 82\centerline{Translated by Rodrigo Real}
79 83
80Permission is granted to make and distribute copies of 84Released under the terms of the GNU General Public License version 3 or later.
81this card provided the copyright notice and this permission notice 85
82are preserved on all copies. 86\TeX{} source for this card is distributed with Emacs in {\tt etc/refcards/}
83 87
84For copies of the GNU Emacs manual, see: 88For copies of the GNU Emacs manual, see:
85 89
diff --git a/etc/refcards/refcard.tex b/etc/refcards/refcard.tex
index a5c74191dac..6eefd1560ce 100644
--- a/etc/refcards/refcard.tex
+++ b/etc/refcards/refcard.tex
@@ -5,14 +5,18 @@
5 5
6% Author: Stephen Gildea <gildea@stop.mail-abuse.org> 6% Author: Stephen Gildea <gildea@stop.mail-abuse.org>
7 7
8% This file is part of GNU Emacs. 8% This document is free software: you can redistribute it and/or modify
9
10% GNU Emacs is free software: you can redistribute it and/or modify
11% it under the terms of the GNU General Public License as published by 9% it under the terms of the GNU General Public License as published by
12% the Free Software Foundation, either version 3 of the License, or 10% the Free Software Foundation, either version 3 of the License, or
13% (at your option) any later version. 11% (at your option) any later version.
14 12
15% GNU Emacs is distributed in the hope that it will be useful, 13% As a special additional permission, you may distribute reference cards
14% printed, or formatted for printing, with the notice "Released under
15% the terms of the GNU General Public License version 3 or later"
16% instead of the usual distributed-under-the-GNU-GPL notice, and without
17% a copy of the GPL itself.
18
19% This document is distributed in the hope that it will be useful,
16% but WITHOUT ANY WARRANTY; without even the implied warranty of 20% but WITHOUT ANY WARRANTY; without even the implied warranty of
17% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18% GNU General Public License for more details. 22% GNU General Public License for more details.
@@ -75,9 +79,9 @@
75\centerline{For GNU Emacs version \versionemacs} 79\centerline{For GNU Emacs version \versionemacs}
76\centerline{Designed by Stephen Gildea} 80\centerline{Designed by Stephen Gildea}
77 81
78Permission is granted to make and distribute modified or unmodified 82Released under the terms of the GNU General Public License version 3 or later.
79copies of this card provided the copyright notice and this permission 83
80notice are preserved on all copies. 84\TeX{} source for this card is distributed with Emacs in {\tt etc/refcards/}
81 85
82For copies of the GNU Emacs manual, see: 86For copies of the GNU Emacs manual, see:
83 87
diff --git a/etc/refcards/ru-refcard.tex b/etc/refcards/ru-refcard.tex
index 03af6576bfe..1d96473fa6c 100644
--- a/etc/refcards/ru-refcard.tex
+++ b/etc/refcards/ru-refcard.tex
@@ -3,6 +3,25 @@
3% Author: Stephen Gildea <gildea@stop.mail-abuse.org> 3% Author: Stephen Gildea <gildea@stop.mail-abuse.org>
4% Russian translation: Alex Ott <alexott@gmail.com> 4% Russian translation: Alex Ott <alexott@gmail.com>
5 5
6% This document is free software: you can redistribute it and/or modify
7% it under the terms of the GNU General Public License as published by
8% the Free Software Foundation, either version 3 of the License, or
9% (at your option) any later version.
10
11% As a special additional permission, you may distribute reference cards
12% printed, or formatted for printing, with the notice "Released under
13% the terms of the GNU General Public License version 3 or later"
14% instead of the usual distributed-under-the-GNU-GPL notice, and without
15% a copy of the GPL itself.
16
17% This document is distributed in the hope that it will be useful,
18% but WITHOUT ANY WARRANTY; without even the implied warranty of
19% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20% GNU General Public License for more details.
21
22% You should have received a copy of the GNU General Public License
23% along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24
6\documentclass[10pt]{article} 25\documentclass[10pt]{article}
7\usepackage{multicol,tabularx} 26\usepackage{multicol,tabularx}
8\usepackage[a4paper,hmargin={2cm,2cm},vmargin={2cm,2cm},nohead,twoside]{geometry} 27\usepackage[a4paper,hmargin={2cm,2cm},vmargin={2cm,2cm},nohead,twoside]{geometry}
@@ -35,9 +54,9 @@
35\centerline{Designed by Stephen Gildea} 54\centerline{Designed by Stephen Gildea}
36\centerline{Перевод Alex Ott <alexott@gmail.com>} 55\centerline{Перевод Alex Ott <alexott@gmail.com>}
37 56
38Permission is granted to make and distribute copies of 57Released under the terms of the GNU General Public License version 3 or later.
39this card provided the copyright notice and this permission notice 58
40are preserved on all copies. 59\TeX{} source for this card is distributed with Emacs in {\tt etc/refcards/}
41 60
42For copies of the GNU Emacs manual, see: 61For copies of the GNU Emacs manual, see:
43 62
diff --git a/etc/refcards/sk-dired-ref.tex b/etc/refcards/sk-dired-ref.tex
index 7bd5ceb5e13..81f112270f0 100644
--- a/etc/refcards/sk-dired-ref.tex
+++ b/etc/refcards/sk-dired-ref.tex
@@ -6,14 +6,18 @@
6% Czech translation: Pavel Janík <Pavel@Janik.cz>, March 2001 6% Czech translation: Pavel Janík <Pavel@Janik.cz>, March 2001
7% Slovak translation: Miroslav Vasko <vasko@debian.cz>, March 2001 7% Slovak translation: Miroslav Vasko <vasko@debian.cz>, March 2001
8 8
9% This file is part of GNU Emacs. 9% This document is free software: you can redistribute it and/or modify
10
11% GNU Emacs is free software: you can redistribute it and/or modify
12% it under the terms of the GNU General Public License as published by 10% it under the terms of the GNU General Public License as published by
13% the Free Software Foundation, either version 3 of the License, or 11% the Free Software Foundation, either version 3 of the License, or
14% (at your option) any later version. 12% (at your option) any later version.
15 13
16% GNU Emacs is distributed in the hope that it will be useful, 14% As a special additional permission, you may distribute reference cards
15% printed, or formatted for printing, with the notice "Released under
16% the terms of the GNU General Public License version 3 or later"
17% instead of the usual distributed-under-the-GNU-GPL notice, and without
18% a copy of the GPL itself.
19
20% This document is distributed in the hope that it will be useful,
17% but WITHOUT ANY WARRANTY; without even the implied warranty of 21% but WITHOUT ANY WARRANTY; without even the implied warranty of
18% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19% GNU General Public License for more details. 23% GNU General Public License for more details.
@@ -58,9 +62,9 @@
58\centerline{using refcard layout designed by Stephen Gildea.} 62\centerline{using refcard layout designed by Stephen Gildea.}
59\centerline{Translated by Miroslav Vaško.} 63\centerline{Translated by Miroslav Vaško.}
60 64
61Permission is granted to make and distribute copies of 65Released under the terms of the GNU General Public License version 3 or later.
62this card provided the copyright notice and this permission notice 66
63are preserved on all copies. 67\TeX{} source for this card is distributed with Emacs in {\tt etc/refcards/}
64 68
65For copies of the GNU Emacs manual, see: 69For copies of the GNU Emacs manual, see:
66 70
diff --git a/etc/refcards/sk-refcard.tex b/etc/refcards/sk-refcard.tex
index 86f1919247c..27b3a38cd9c 100644
--- a/etc/refcards/sk-refcard.tex
+++ b/etc/refcards/sk-refcard.tex
@@ -9,14 +9,18 @@
9% Pavel Janík <Pavel@Janik.cz>, November 2000 (Emacs 21) 9% Pavel Janík <Pavel@Janik.cz>, November 2000 (Emacs 21)
10% Slovak translation: Miroslav Vaško <vasko@debian.cz>, March 2001 10% Slovak translation: Miroslav Vaško <vasko@debian.cz>, March 2001
11 11
12% This file is part of GNU Emacs. 12% This document is free software: you can redistribute it and/or modify
13
14% GNU Emacs is free software: you can redistribute it and/or modify
15% it under the terms of the GNU General Public License as published by 13% it under the terms of the GNU General Public License as published by
16% the Free Software Foundation, either version 3 of the License, or 14% the Free Software Foundation, either version 3 of the License, or
17% (at your option) any later version. 15% (at your option) any later version.
18 16
19% GNU Emacs is distributed in the hope that it will be useful, 17% As a special additional permission, you may distribute reference cards
18% printed, or formatted for printing, with the notice "Released under
19% the terms of the GNU General Public License version 3 or later"
20% instead of the usual distributed-under-the-GNU-GPL notice, and without
21% a copy of the GPL itself.
22
23% This document is distributed in the hope that it will be useful,
20% but WITHOUT ANY WARRANTY; without even the implied warranty of 24% but WITHOUT ANY WARRANTY; without even the implied warranty of
21% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22% GNU General Public License for more details. 26% GNU General Public License for more details.
@@ -75,9 +79,9 @@
75\centerline{Designed by Stephen Gildea} 79\centerline{Designed by Stephen Gildea}
76\centerline{Translated by Miroslav Vaško} 80\centerline{Translated by Miroslav Vaško}
77 81
78Permission is granted to make and distribute copies of 82Released under the terms of the GNU General Public License version 3 or later.
79this card provided the copyright notice and this permission notice 83
80are preserved on all copies. 84\TeX{} source for this card is distributed with Emacs in {\tt etc/refcards/}
81 85
82For copies of the GNU Emacs manual, see: 86For copies of the GNU Emacs manual, see:
83 87
diff --git a/etc/refcards/sk-survival.tex b/etc/refcards/sk-survival.tex
index f8db101c126..152009bd86f 100644
--- a/etc/refcards/sk-survival.tex
+++ b/etc/refcards/sk-survival.tex
@@ -6,14 +6,18 @@
6% Czech translation: Pavel Janík <Pavel@Janik.cz>, March 2001 6% Czech translation: Pavel Janík <Pavel@Janik.cz>, March 2001
7% Slovak translation: Miroslav Vasko <vasko@debian.cz>, March 2001 7% Slovak translation: Miroslav Vasko <vasko@debian.cz>, March 2001
8 8
9% This file is part of GNU Emacs. 9% This document is free software: you can redistribute it and/or modify
10
11% GNU Emacs is free software: you can redistribute it and/or modify
12% it under the terms of the GNU General Public License as published by 10% it under the terms of the GNU General Public License as published by
13% the Free Software Foundation, either version 3 of the License, or 11% the Free Software Foundation, either version 3 of the License, or
14% (at your option) any later version. 12% (at your option) any later version.
15 13
16% GNU Emacs is distributed in the hope that it will be useful, 14% As a special additional permission, you may distribute reference cards
15% printed, or formatted for printing, with the notice "Released under
16% the terms of the GNU General Public License version 3 or later"
17% instead of the usual distributed-under-the-GNU-GPL notice, and without
18% a copy of the GPL itself.
19
20% This document is distributed in the hope that it will be useful,
17% but WITHOUT ANY WARRANTY; without even the implied warranty of 21% but WITHOUT ANY WARRANTY; without even the implied warranty of
18% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19% GNU General Public License for more details. 23% GNU General Public License for more details.
@@ -65,9 +69,11 @@
65 Do češtiny preložil Pavel Janík (Pavel@Janik.cz)\break 69 Do češtiny preložil Pavel Janík (Pavel@Janik.cz)\break
66 Do slovenčiny preložil Miroslav Vaško (vasko@debian.cz) 70 Do slovenčiny preložil Miroslav Vaško (vasko@debian.cz)
67 71
68 Kópie tohto dokumentu môžete vytvárať a šíriť 72 Released under the terms of the GNU General Public License
69 za predpokladu, že budú obsahovať túto poznámku 73 version 3 or later.
70 o autorských právach.\par}} 74
75 \TeX{} source for this card is distributed with Emacs in
76 {\tt etc/refcards/}\par}}
71 77
72\hsize 3.2in 78\hsize 3.2in
73\vsize 7.95in 79\vsize 7.95in
diff --git a/etc/refcards/survival.tex b/etc/refcards/survival.tex
index 02d310f5897..2d81b309906 100644
--- a/etc/refcards/survival.tex
+++ b/etc/refcards/survival.tex
@@ -5,14 +5,18 @@
5 5
6% Author: Wlodek Bzyl <matwb@univ.gda.pl> 6% Author: Wlodek Bzyl <matwb@univ.gda.pl>
7 7
8% This file is part of GNU Emacs. 8% This document is free software: you can redistribute it and/or modify
9
10% GNU Emacs is free software: you can redistribute it and/or modify
11% it under the terms of the GNU General Public License as published by 9% it under the terms of the GNU General Public License as published by
12% the Free Software Foundation, either version 3 of the License, or 10% the Free Software Foundation, either version 3 of the License, or
13% (at your option) any later version. 11% (at your option) any later version.
14 12
15% GNU Emacs is distributed in the hope that it will be useful, 13% As a special additional permission, you may distribute reference cards
14% printed, or formatted for printing, with the notice "Released under
15% the terms of the GNU General Public License version 3 or later"
16% instead of the usual distributed-under-the-GNU-GPL notice, and without
17% a copy of the GPL itself.
18
19% This document is distributed in the hope that it will be useful,
16% but WITHOUT ANY WARRANTY; without even the implied warranty of 20% but WITHOUT ANY WARRANTY; without even the implied warranty of
17% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18% GNU General Public License for more details. 22% GNU General Public License for more details.
@@ -52,9 +56,11 @@
52 For GNU Emacs version \versionemacs\break 56 For GNU Emacs version \versionemacs\break
53 Author W{\l}odek Bzyl (matwb@univ.gda.pl) 57 Author W{\l}odek Bzyl (matwb@univ.gda.pl)
54 58
55 Permission is granted to make and distribute copies of 59 Released under the terms of the GNU General Public License
56 this card provided the copyright notice and this permission notice 60 version 3 or later.
57 are preserved on all copies.\par}} 61
62 \TeX{} source for this card is distributed with Emacs in
63 {\tt etc/refcards/}\par}}
58 64
59\hsize 3.2in 65\hsize 3.2in
60\vsize 7.95in 66\vsize 7.95in
diff --git a/etc/refcards/vipcard.tex b/etc/refcards/vipcard.tex
index 942ec6cf300..5eca55cc582 100644
--- a/etc/refcards/vipcard.tex
+++ b/etc/refcards/vipcard.tex
@@ -4,14 +4,18 @@
4 4
5% Author: Masahiko Sato <ms@sail.stanford.edu>, <masahiko@sato.riec.tohoku.junet> 5% Author: Masahiko Sato <ms@sail.stanford.edu>, <masahiko@sato.riec.tohoku.junet>
6 6
7% This file is part of GNU Emacs. 7% This document is free software: you can redistribute it and/or modify
8
9% GNU Emacs is free software: you can redistribute it and/or modify
10% it under the terms of the GNU General Public License as published by 8% it under the terms of the GNU General Public License as published by
11% the Free Software Foundation, either version 3 of the License, or 9% the Free Software Foundation, either version 3 of the License, or
12% (at your option) any later version. 10% (at your option) any later version.
13 11
14% GNU Emacs is distributed in the hope that it will be useful, 12% As a special additional permission, you may distribute reference cards
13% printed, or formatted for printing, with the notice "Released under
14% the terms of the GNU General Public License version 3 or later"
15% instead of the usual distributed-under-the-GNU-GPL notice, and without
16% a copy of the GPL itself.
17
18% This document is distributed in the hope that it will be useful,
15% but WITHOUT ANY WARRANTY; without even the implied warranty of 19% but WITHOUT ANY WARRANTY; without even the implied warranty of
16% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17% GNU General Public License for more details. 21% GNU General Public License for more details.
@@ -67,9 +71,9 @@
67\centerline{Written by Masahiko Sato,} 71\centerline{Written by Masahiko Sato,}
68\centerline{using refcard layout designed by Stephen Gildea.} 72\centerline{using refcard layout designed by Stephen Gildea.}
69 73
70Permission is granted to make and distribute copies of 74Released under the terms of the GNU General Public License version 3 or later.
71this card provided the copyright notice and this permission notice 75
72are preserved on all copies. 76\TeX{} source for this card is distributed with Emacs in {\tt etc/refcards/}
73 77
74For copies of the GNU Emacs manual, see: 78For copies of the GNU Emacs manual, see:
75 79
diff --git a/etc/refcards/viperCard.tex b/etc/refcards/viperCard.tex
index 35528b193c7..d984ffc484f 100644
--- a/etc/refcards/viperCard.tex
+++ b/etc/refcards/viperCard.tex
@@ -6,14 +6,18 @@
6% Aamod Sane <sane@cs.uiuc.edu> (VIP 4.3) 6% Aamod Sane <sane@cs.uiuc.edu> (VIP 4.3)
7% Masahiko Sato <ms@sail.stanford.edu> (VIP 3.5) 7% Masahiko Sato <ms@sail.stanford.edu> (VIP 3.5)
8 8
9% This file is part of GNU Emacs. 9% This document is free software: you can redistribute it and/or modify
10
11% GNU Emacs is free software: you can redistribute it and/or modify
12% it under the terms of the GNU General Public License as published by 10% it under the terms of the GNU General Public License as published by
13% the Free Software Foundation, either version 3 of the License, or 11% the Free Software Foundation, either version 3 of the License, or
14% (at your option) any later version. 12% (at your option) any later version.
15 13
16% GNU Emacs is distributed in the hope that it will be useful, 14% As a special additional permission, you may distribute reference cards
15% printed, or formatted for printing, with the notice "Released under
16% the terms of the GNU General Public License version 3 or later"
17% instead of the usual distributed-under-the-GNU-GPL notice, and without
18% a copy of the GPL itself.
19
20% This document is distributed in the hope that it will be useful,
17% but WITHOUT ANY WARRANTY; without even the implied warranty of 21% but WITHOUT ANY WARRANTY; without even the implied warranty of
18% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19% GNU General Public License for more details. 23% GNU General Public License for more details.
@@ -71,9 +75,9 @@
71\centerline{by Aamod Sane, VIP version 4.3} 75\centerline{by Aamod Sane, VIP version 4.3}
72\centerline{by Masahiko Sato, VIP version 3.5} 76\centerline{by Masahiko Sato, VIP version 3.5}
73 77
74Permission is granted to make and distribute copies of 78Released under the terms of the GNU General Public License version 3 or later.
75this card provided the copyright notice and this permission notice 79
76are preserved on all copies. 80\TeX{} source for this card is distributed with Emacs in {\tt etc/refcards/}
77 81
78For copies of the GNU Emacs manual, see: 82For copies of the GNU Emacs manual, see:
79 83
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in
index 150d943b7e2..c3693abf341 100644
--- a/lib-src/Makefile.in
+++ b/lib-src/Makefile.in
@@ -75,7 +75,7 @@ am__v_at_1 =
75 75
76# ==================== Where To Install Things ==================== 76# ==================== Where To Install Things ====================
77 77
78# Location to install Emacs.app under GNUstep / Mac OS X. 78# Location to install Emacs.app under GNUstep / macOS.
79# Later values may use this. 79# Later values may use this.
80ns_appbindir=@ns_appbindir@ 80ns_appbindir=@ns_appbindir@
81 81
diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el
index b5373c607d4..c42ca813e96 100644
--- a/lisp/arc-mode.el
+++ b/lisp/arc-mode.el
@@ -1646,7 +1646,7 @@ This doesn't recover lost files, it just undoes changes in the buffer itself."
1646 ;; converts "\" to "/". 1646 ;; converts "\" to "/".
1647 ;; - For 0 generic: generic_to_unix_filename() downcases if there's 1647 ;; - For 0 generic: generic_to_unix_filename() downcases if there's
1648 ;; no lower case already present, and converts "\" to "/". 1648 ;; no lower case already present, and converts "\" to "/".
1649 ;; - For 'm' MacOS: macos_to_unix_filename() changes "/" to ":" and 1649 ;; - For 'm' macOS: macos_to_unix_filename() changes "/" to ":" and
1650 ;; ":" to "/" 1650 ;; ":" to "/"
1651 (setq fiddle (cond ((= ?M osid) t) 1651 (setq fiddle (cond ((= ?M osid) t)
1652 ((= 0 osid) (string= efnname (upcase efnname))))) 1652 ((= 0 osid) (string= efnname (upcase efnname)))))
diff --git a/lisp/auth-source.el b/lisp/auth-source.el
index 96693644ceb..62d9a4521c0 100644
--- a/lisp/auth-source.el
+++ b/lisp/auth-source.el
@@ -417,13 +417,13 @@ with \"[a/b/c] \" if CHOICES is \(?a ?b ?c)."
417 ;; Keychain collection matching any user, host, and protocol 417 ;; Keychain collection matching any user, host, and protocol
418 ((eq entry 'macos-keychain-generic) 418 ((eq entry 'macos-keychain-generic)
419 (auth-source-backend-parse '(:source (:macos-keychain-generic default)))) 419 (auth-source-backend-parse '(:source (:macos-keychain-generic default))))
420 ;; take macos-keychain-internet:XYZ and recurse to get it as MacOS 420 ;; take macos-keychain-internet:XYZ and recurse to get it as macOS
421 ;; Keychain "XYZ" matching any user, host, and protocol 421 ;; Keychain "XYZ" matching any user, host, and protocol
422 ((and (stringp entry) (string-match "^macos-keychain-internet:\\(.+\\)" 422 ((and (stringp entry) (string-match "^macos-keychain-internet:\\(.+\\)"
423 entry)) 423 entry))
424 (auth-source-backend-parse `(:source (:macos-keychain-internet 424 (auth-source-backend-parse `(:source (:macos-keychain-internet
425 ,(match-string 1 entry))))) 425 ,(match-string 1 entry)))))
426 ;; take macos-keychain-generic:XYZ and recurse to get it as MacOS 426 ;; take macos-keychain-generic:XYZ and recurse to get it as macOS
427 ;; Keychain "XYZ" matching any user, host, and protocol 427 ;; Keychain "XYZ" matching any user, host, and protocol
428 ((and (stringp entry) (string-match "^macos-keychain-generic:\\(.+\\)" 428 ((and (stringp entry) (string-match "^macos-keychain-generic:\\(.+\\)"
429 entry)) 429 entry))
@@ -452,7 +452,7 @@ with \"[a/b/c] \" if CHOICES is \(?a ?b ?c)."
452 :search-function #'auth-source-netrc-search 452 :search-function #'auth-source-netrc-search
453 :create-function #'auth-source-netrc-create))) 453 :create-function #'auth-source-netrc-create)))
454 454
455 ;; the MacOS Keychain 455 ;; the macOS Keychain
456 ((and 456 ((and
457 (not (null (plist-get entry :source))) ; the source must not be nil 457 (not (null (plist-get entry :source))) ; the source must not be nil
458 (listp (plist-get entry :source)) ; and it must be a list 458 (listp (plist-get entry :source)) ; and it must be a list
@@ -1647,7 +1647,7 @@ authentication tokens:
1647(cl-defun auth-source-macos-keychain-search (&rest spec 1647(cl-defun auth-source-macos-keychain-search (&rest spec
1648 &key backend create delete type max 1648 &key backend create delete type max
1649 &allow-other-keys) 1649 &allow-other-keys)
1650 "Search the MacOS Keychain; spec is like `auth-source'. 1650 "Search the macOS Keychain; spec is like `auth-source'.
1651 1651
1652All search keys must match exactly. If you need substring 1652All search keys must match exactly. If you need substring
1653matching, do a wider search and narrow it down yourself. 1653matching, do a wider search and narrow it down yourself.
@@ -1669,13 +1669,13 @@ Similarly, :host maps to \"-c HOST\" (the \"creator\" keychain
1669field), :user maps to \"-a USER\", and :port maps to \"-s PORT\". 1669field), :user maps to \"-a USER\", and :port maps to \"-s PORT\".
1670 1670
1671Here's an example that looks for the first item in the default 1671Here's an example that looks for the first item in the default
1672generic MacOS Keychain: 1672generic macOS Keychain:
1673 1673
1674 (let ((auth-sources \\='(macos-keychain-generic))) 1674 (let ((auth-sources \\='(macos-keychain-generic)))
1675 (auth-source-search :max 1) 1675 (auth-source-search :max 1)
1676 1676
1677Here's another that looks for the first item in the internet 1677Here's another that looks for the first item in the internet
1678MacOS Keychain collection whose label is `gnus': 1678macOS Keychain collection whose label is `gnus':
1679 1679
1680 (let ((auth-sources \\='(macos-keychain-internet))) 1680 (let ((auth-sources \\='(macos-keychain-internet)))
1681 (auth-source-search :max 1 :label \"gnus\") 1681 (auth-source-search :max 1 :label \"gnus\")
@@ -1688,11 +1688,11 @@ entries for git.gnus.org:
1688" 1688"
1689 ;; TODO 1689 ;; TODO
1690 (cl-assert (not create) nil 1690 (cl-assert (not create) nil
1691 "The MacOS Keychain auth-source backend doesn't support creation yet") 1691 "The macOS Keychain auth-source backend doesn't support creation yet")
1692 ;; TODO 1692 ;; TODO
1693 ;; (macos-keychain-delete-item coll elt) 1693 ;; (macos-keychain-delete-item coll elt)
1694 (cl-assert (not delete) nil 1694 (cl-assert (not delete) nil
1695 "The MacOS Keychain auth-source backend doesn't support deletion yet") 1695 "The macOS Keychain auth-source backend doesn't support deletion yet")
1696 1696
1697 (let* ((coll (oref backend source)) 1697 (let* ((coll (oref backend source))
1698 (max (or max 5000)) ; sanity check: default to stop at 5K 1698 (max (or max 5000)) ; sanity check: default to stop at 5K
diff --git a/lisp/battery.el b/lisp/battery.el
index 10a34034019..24eb8a58f63 100644
--- a/lisp/battery.el
+++ b/lisp/battery.el
@@ -22,10 +22,10 @@
22 22
23;;; Commentary: 23;;; Commentary:
24 24
25;; There is at present support for GNU/Linux, OS X and Windows. This 25;; There is at present support for GNU/Linux, macOS and Windows. This
26;; library supports both the `/proc/apm' file format of Linux version 26;; library supports both the `/proc/apm' file format of Linux version
27;; 1.3.58 or newer and the `/proc/acpi/' directory structure of Linux 27;; 1.3.58 or newer and the `/proc/acpi/' directory structure of Linux
28;; 2.4.20 and 2.6. Darwin (OS X) is supported by using the `pmset' 28;; 2.4.20 and 2.6. Darwin (macOS) is supported by using the `pmset'
29;; program. Windows is supported by the GetSystemPowerStatus API call. 29;; program. Windows is supported by the GetSystemPowerStatus API call.
30 30
31;;; Code: 31;;; Code:
@@ -604,7 +604,7 @@ The following %-sequences are provided:
604 (cons ?t (or remaining-time "N/A"))))) 604 (cons ?t (or remaining-time "N/A")))))
605 605
606 606
607;;; `pmset' interface for Darwin (OS X). 607;;; `pmset' interface for Darwin (macOS).
608 608
609(defun battery-pmset () 609(defun battery-pmset ()
610 "Get battery status information using `pmset'. 610 "Get battery status information using `pmset'.
diff --git a/lisp/cedet/semantic/bovine/gcc.el b/lisp/cedet/semantic/bovine/gcc.el
index ec292395f12..b56b268ca0d 100644
--- a/lisp/cedet/semantic/bovine/gcc.el
+++ b/lisp/cedet/semantic/bovine/gcc.el
@@ -225,7 +225,7 @@ It should also include other symbols GCC was compiled with.")
225 (setq semantic-lex-c-preprocessor-symbol-map nil)) 225 (setq semantic-lex-c-preprocessor-symbol-map nil))
226 (dolist (D defines) 226 (dolist (D defines)
227 (add-to-list 'semantic-lex-c-preprocessor-symbol-map D)) 227 (add-to-list 'semantic-lex-c-preprocessor-symbol-map D))
228 ;; Needed for parsing OS X libc 228 ;; Needed for parsing macOS libc
229 (when (eq system-type 'darwin) 229 (when (eq system-type 'darwin)
230 (add-to-list 'semantic-lex-c-preprocessor-symbol-map '("__i386__" . ""))) 230 (add-to-list 'semantic-lex-c-preprocessor-symbol-map '("__i386__" . "")))
231 (when (featurep 'semantic/bovine/c) 231 (when (featurep 'semantic/bovine/c)
diff --git a/lisp/chistory.el b/lisp/chistory.el
index 6f8a74b2a67..be5393720ac 100644
--- a/lisp/chistory.el
+++ b/lisp/chistory.el
@@ -95,7 +95,7 @@ from the command history."
95 95
96;;;###autoload 96;;;###autoload
97(defun list-command-history () 97(defun list-command-history ()
98 "List history of commands typed to minibuffer. 98 "List history of commands that used the minibuffer.
99The number of commands listed is controlled by `list-command-history-max'. 99The number of commands listed is controlled by `list-command-history-max'.
100Calls value of `list-command-history-filter' (if non-nil) on each history 100Calls value of `list-command-history-filter' (if non-nil) on each history
101element to judge if that element should be excluded from the list. 101element to judge if that element should be excluded from the list.
diff --git a/lisp/dabbrev.el b/lisp/dabbrev.el
index d9f36b15290..438eda3776d 100644
--- a/lisp/dabbrev.el
+++ b/lisp/dabbrev.el
@@ -433,7 +433,10 @@ Expands to the most recent, preceding word for which this is a prefix.
433If no suitable preceding word is found, words following point are 433If no suitable preceding word is found, words following point are
434considered. If still no suitable word is found, then look in the 434considered. If still no suitable word is found, then look in the
435buffers accepted by the function pointed out by variable 435buffers accepted by the function pointed out by variable
436`dabbrev-friend-buffer-function'. 436`dabbrev-friend-buffer-function', if `dabbrev-check-other-buffers'
437says so. Then, if `dabbrev-check-all-buffers' is non-nil, look in
438all the other buffers, subject to constraints specified
439by `dabbrev-ignored-buffer-names' and `dabbrev-ignored-regexps'.
437 440
438A positive prefix argument, N, says to take the Nth backward *distinct* 441A positive prefix argument, N, says to take the Nth backward *distinct*
439possibility. A negative argument says search forward. 442possibility. A negative argument says search forward.
diff --git a/lisp/emacs-lisp/cl-preloaded.el b/lisp/emacs-lisp/cl-preloaded.el
index cd1d700f1b0..2b022c49053 100644
--- a/lisp/emacs-lisp/cl-preloaded.el
+++ b/lisp/emacs-lisp/cl-preloaded.el
@@ -45,7 +45,7 @@
45 45
46(defun cl--assertion-failed (form &optional string sargs args) 46(defun cl--assertion-failed (form &optional string sargs args)
47 (if debug-on-error 47 (if debug-on-error
48 (debug `(cl-assertion-failed ,form ,string ,@sargs)) 48 (funcall debugger `(cl-assertion-failed ,form ,string ,@sargs))
49 (if string 49 (if string
50 (apply #'error string (append sargs args)) 50 (apply #'error string (append sargs args))
51 (signal 'cl-assertion-failed `(,form ,@sargs))))) 51 (signal 'cl-assertion-failed `(,form ,@sargs)))))
diff --git a/lisp/faces.el b/lisp/faces.el
index 6e3b08cb02b..f536015e981 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -108,7 +108,7 @@ a font height that isn't optimal."
108 "Courier 10 Pitch" 108 "Courier 10 Pitch"
109 ;; This looks good on MS-Windows and OS X. 109 ;; This looks good on MS-Windows and OS X.
110 "Consolas" 110 "Consolas"
111 ;; This looks good on OS X. "Courier" looks good too, but is 111 ;; This looks good on macOS. "Courier" looks good too, but is
112 ;; jagged on GNU/Linux and so is listed later as "courier". 112 ;; jagged on GNU/Linux and so is listed later as "courier".
113 "Courier Std" 113 "Courier Std"
114 ;; Although these are anti-aliased, they are a bit faint compared 114 ;; Although these are anti-aliased, they are a bit faint compared
diff --git a/lisp/international/fontset.el b/lisp/international/fontset.el
index 612c0a08ad7..659f03a2a67 100644
--- a/lisp/international/fontset.el
+++ b/lisp/international/fontset.el
@@ -812,10 +812,11 @@
812 (#x1F700 . #x1F77F) ;; Alchemical Symbols 812 (#x1F700 . #x1F77F) ;; Alchemical Symbols
813 (#x1F780 . #x1F7FF) ;; Geometric Shapes Extended 813 (#x1F780 . #x1F7FF) ;; Geometric Shapes Extended
814 (#x1F800 . #x1F8FF))) ;; Supplemental Arrows-C 814 (#x1F800 . #x1F8FF))) ;; Supplemental Arrows-C
815 (set-fontset-font "fontset-default" symbol-subgroup "Symbola" nil 'prepend)) 815 (set-fontset-font "fontset-default" symbol-subgroup
816 '("Symbola" . "iso10646-1") nil 'prepend))
816 ;; Box Drawing and Block Elements 817 ;; Box Drawing and Block Elements
817 (set-fontset-font "fontset-default" '(#x2500 . #x259F) 818 (set-fontset-font "fontset-default" '(#x2500 . #x259F)
818 "FreeMono" nil 'prepend) 819 '("FreeMono" . "iso10646-1") nil 'prepend)
819 820
820 ;; Since standard-fontset-spec on X uses fixed-medium font, which 821 ;; Since standard-fontset-spec on X uses fixed-medium font, which
821 ;; gets mapped to a iso8859-1 variant, we would like to prefer its 822 ;; gets mapped to a iso8859-1 variant, we would like to prefer its
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index 28eec4f0df9..7543d0d734a 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -2723,7 +2723,7 @@ See also `locale-charset-language-names', `locale-language-names',
2723 ;; On Darwin, file names are always encoded in utf-8, no matter 2723 ;; On Darwin, file names are always encoded in utf-8, no matter
2724 ;; the locale. 2724 ;; the locale.
2725 (setq default-file-name-coding-system 'utf-8) 2725 (setq default-file-name-coding-system 'utf-8)
2726 ;; Mac OS X's Terminal.app by default uses utf-8 regardless of 2726 ;; macOS's Terminal.app by default uses utf-8 regardless of
2727 ;; the locale. 2727 ;; the locale.
2728 (when (and (null window-system) 2728 (when (and (null window-system)
2729 (equal (getenv "TERM_PROGRAM" frame) "Apple_Terminal")) 2729 (equal (getenv "TERM_PROGRAM" frame) "Apple_Terminal"))
diff --git a/lisp/international/ucs-normalize.el b/lisp/international/ucs-normalize.el
index cf2e81e20f2..b2bc622858d 100644
--- a/lisp/international/ucs-normalize.el
+++ b/lisp/international/ucs-normalize.el
@@ -621,7 +621,7 @@ COMPOSITION-PREDICATE will be used to compose region."
621 621
622;;; coding-system definition 622;;; coding-system definition
623(define-coding-system 'utf-8-hfs 623(define-coding-system 'utf-8-hfs
624 "UTF-8 based coding system for MacOS HFS file names. 624 "UTF-8 based coding system for macOS HFS file names.
625The singleton characters in HFS normalization exclusion will not 625The singleton characters in HFS normalization exclusion will not
626be decomposed." 626be decomposed."
627 :coding-type 'utf-8 627 :coding-type 'utf-8
diff --git a/lisp/ls-lisp.el b/lisp/ls-lisp.el
index 11cbea0b373..8395622546d 100644
--- a/lisp/ls-lisp.el
+++ b/lisp/ls-lisp.el
@@ -75,7 +75,7 @@
75 ((memq system-type '(hpux usg-unix-v berkeley-unix)) 75 ((memq system-type '(hpux usg-unix-v berkeley-unix))
76 'UNIX)) ; very similar to GNU 76 'UNIX)) ; very similar to GNU
77 ;; Anything else defaults to nil, meaning GNU. 77 ;; Anything else defaults to nil, meaning GNU.
78 "Platform to emulate: GNU (default), MacOS, MS-Windows, UNIX. 78 "Platform to emulate: GNU (default), macOS, MS-Windows, UNIX.
79Corresponding value is one of: nil, `MacOS', `MS-Windows', `UNIX'. 79Corresponding value is one of: nil, `MacOS', `MS-Windows', `UNIX'.
80Set this to your preferred value; it need not match the actual platform 80Set this to your preferred value; it need not match the actual platform
81you are using. 81you are using.
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el
index 18eaa22b34c..650fbfa13d2 100644
--- a/lisp/mail/emacsbug.el
+++ b/lisp/mail/emacsbug.el
@@ -72,7 +72,7 @@
72(defvar message-strip-special-text-properties) 72(defvar message-strip-special-text-properties)
73 73
74(defun report-emacs-bug-can-use-osx-open () 74(defun report-emacs-bug-can-use-osx-open ()
75 "Return non-nil if the OS X \"open\" command is available for mailing." 75 "Return non-nil if the macOS \"open\" command is available for mailing."
76 (and (featurep 'ns) 76 (and (featurep 'ns)
77 (equal (executable-find "open") "/usr/bin/open") 77 (equal (executable-find "open") "/usr/bin/open")
78 (memq system-type '(darwin)))) 78 (memq system-type '(darwin))))
@@ -107,7 +107,7 @@ This requires you to be running either Gnome, KDE, or Xfce4."
107 107
108(defun report-emacs-bug-insert-to-mailer () 108(defun report-emacs-bug-insert-to-mailer ()
109 "Send the message to your preferred mail client. 109 "Send the message to your preferred mail client.
110This requires either the OS X \"open\" command, or the freedesktop 110This requires either the macOS \"open\" command, or the freedesktop
111\"xdg-email\" command to be available." 111\"xdg-email\" command to be available."
112 (interactive) 112 (interactive)
113 (save-excursion 113 (save-excursion
diff --git a/lisp/man.el b/lisp/man.el
index 82691f5e9b7..a140e03d74a 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -881,7 +881,7 @@ test/automated/man-tests.el in the emacs repository."
881 (setq default-directory "/") ;; in case inherited doesn't exist 881 (setq default-directory "/") ;; in case inherited doesn't exist
882 ;; Actually for my `man' the arg is a regexp. 882 ;; Actually for my `man' the arg is a regexp.
883 ;; POSIX says it must be ERE and "man-db" seems to agree, 883 ;; POSIX says it must be ERE and "man-db" seems to agree,
884 ;; whereas under MacOSX it seems to be BRE-style and doesn't 884 ;; whereas under macOS it seems to be BRE-style and doesn't
885 ;; accept backslashes at all. Let's not bother to 885 ;; accept backslashes at all. Let's not bother to
886 ;; quote anything. 886 ;; quote anything.
887 (let ((process-environment (copy-sequence process-environment))) 887 (let ((process-environment (copy-sequence process-environment)))
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 9f3156d62b2..d21fa2cd61c 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -1865,7 +1865,7 @@ key, a click, or a menu-item"))
1865 '(menu-item "Emacs Tutorial" help-with-tutorial 1865 '(menu-item "Emacs Tutorial" help-with-tutorial
1866 :help "Learn how to use Emacs")) 1866 :help "Learn how to use Emacs"))
1867 1867
1868 ;; In OS X it's in the app menu already. 1868 ;; In macOS it's in the app menu already.
1869 ;; FIXME? There already is an "About Emacs" (sans ...) entry in the Help menu. 1869 ;; FIXME? There already is an "About Emacs" (sans ...) entry in the Help menu.
1870 (and (featurep 'ns) 1870 (and (featurep 'ns)
1871 (not (eq system-type 'darwin)) 1871 (not (eq system-type 'darwin))
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el
index 9ff9997e728..07c3daf7d7e 100644
--- a/lisp/net/ange-ftp.el
+++ b/lisp/net/ange-ftp.el
@@ -740,7 +740,7 @@ These mean that the FTP process should be (or already has been) killed."
740 :type 'regexp) 740 :type 'regexp)
741 741
742(defcustom ange-ftp-potential-error-msgs 742(defcustom ange-ftp-potential-error-msgs
743 ;; On Mac OS X we sometimes get things like: 743 ;; On macOS we sometimes get things like:
744 ;; 744 ;;
745 ;; ftp> open ftp.nluug.nl 745 ;; ftp> open ftp.nluug.nl
746 ;; Trying 2001:610:1:80aa:192:87:102:36... 746 ;; Trying 2001:610:1:80aa:192:87:102:36...
diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el
index 15f6df742cc..b2077d784c0 100644
--- a/lisp/net/browse-url.el
+++ b/lisp/net/browse-url.el
@@ -44,7 +44,7 @@
44;; browse-url-text-* Any text browser 0 44;; browse-url-text-* Any text browser 0
45;; browse-url-generic arbitrary 45;; browse-url-generic arbitrary
46;; browse-url-default-windows-browser MS-Windows browser 46;; browse-url-default-windows-browser MS-Windows browser
47;; browse-url-default-macosx-browser Mac OS X browser 47;; browse-url-default-macosx-browser macOS browser
48;; browse-url-xdg-open Free Desktop xdg-open on Gnome, KDE, Xfce4, LXDE 48;; browse-url-xdg-open Free Desktop xdg-open on Gnome, KDE, Xfce4, LXDE
49;; browse-url-kde KDE konqueror (kfm) 49;; browse-url-kde KDE konqueror (kfm)
50;; browse-url-elinks Elinks Don't know (tried with 0.12.GIT) 50;; browse-url-elinks Elinks Don't know (tried with 0.12.GIT)
@@ -162,7 +162,7 @@ regexp should probably be \".\" to specify a default browser."
162 :value browse-url-generic) 162 :value browse-url-generic)
163 (function-item :tag "Default Windows browser" 163 (function-item :tag "Default Windows browser"
164 :value browse-url-default-windows-browser) 164 :value browse-url-default-windows-browser)
165 (function-item :tag "Default Mac OS X browser" 165 (function-item :tag "Default macOS browser"
166 :value browse-url-default-macosx-browser) 166 :value browse-url-default-macosx-browser)
167 (function-item :tag "Default browser" 167 (function-item :tag "Default browser"
168 :value browse-url-default-browser) 168 :value browse-url-default-browser)
@@ -881,7 +881,7 @@ The optional NEW-WINDOW argument is not used."
881 (t (w32-shell-execute "open" url)))) 881 (t (w32-shell-execute "open" url))))
882 882
883(defun browse-url-default-macosx-browser (url &optional _new-window) 883(defun browse-url-default-macosx-browser (url &optional _new-window)
884 "Invoke the MacOS X system's default Web browser. 884 "Invoke the macOS system's default Web browser.
885The optional NEW-WINDOW argument is not used" 885The optional NEW-WINDOW argument is not used"
886 (interactive (browse-url-interactive-arg "URL: ")) 886 (interactive (browse-url-interactive-arg "URL: "))
887 (start-process (concat "open " url) nil "open" url)) 887 (start-process (concat "open " url) nil "open" url))
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 9496ebf7563..f44a4d37e78 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -1293,7 +1293,7 @@ target of the symlink differ."
1293 res-uid res-gid res-size res-symlink-target) 1293 res-uid res-gid res-size res-symlink-target)
1294 (tramp-message vec 5 "file attributes with ls: %s" localname) 1294 (tramp-message vec 5 "file attributes with ls: %s" localname)
1295 ;; We cannot send all three commands combined, it could exceed 1295 ;; We cannot send all three commands combined, it could exceed
1296 ;; NAME_MAX or PATH_MAX. Happened on Mac OS X, for example. 1296 ;; NAME_MAX or PATH_MAX. Happened on macOS, for example.
1297 (when (or (tramp-send-command-and-check 1297 (when (or (tramp-send-command-and-check
1298 vec 1298 vec
1299 (format "%s %s" 1299 (format "%s %s"
@@ -4123,7 +4123,7 @@ process to set up. VEC specifies the connection."
4123 (goto-char (point-min)) 4123 (goto-char (point-min))
4124 (when (search-forward "\r" nil t) 4124 (when (search-forward "\r" nil t)
4125 (setq cs-decode (coding-system-change-eol-conversion cs-decode 'dos))) 4125 (setq cs-decode (coding-system-change-eol-conversion cs-decode 'dos)))
4126 ;; Special setting for Mac OS X. 4126 ;; Special setting for macOS.
4127 (when (and (string-match "^Darwin" uname) 4127 (when (and (string-match "^Darwin" uname)
4128 (memq 'utf-8-hfs (coding-system-list))) 4128 (memq 'utf-8-hfs (coding-system-list)))
4129 (setq cs-decode 'utf-8-hfs 4129 (setq cs-decode 'utf-8-hfs
@@ -4178,7 +4178,7 @@ process to set up. VEC specifies the connection."
4178 (tramp-send-command vec "stty tabs" t) 4178 (tramp-send-command vec "stty tabs" t)
4179 (tramp-send-command vec "stty tab0" t)) 4179 (tramp-send-command vec "stty tab0" t))
4180 4180
4181 ;; Set utf8 encoding. Needed for Mac OS X, for example. This is 4181 ;; Set utf8 encoding. Needed for macOS, for example. This is
4182 ;; non-POSIX, so we must expect errors on some systems. 4182 ;; non-POSIX, so we must expect errors on some systems.
4183 (tramp-send-command vec "stty iutf8 2>/dev/null" t) 4183 (tramp-send-command vec "stty iutf8 2>/dev/null" t)
4184 4184
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index e9697ff2e1e..60199d2047e 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -981,7 +981,7 @@ this variable to be set as well."
981 :require 'tramp) 981 :require 'tramp)
982 982
983;; Logging in to a remote host normally requires obtaining a pty. But 983;; Logging in to a remote host normally requires obtaining a pty. But
984;; Emacs on MacOS X has process-connection-type set to nil by default, 984;; Emacs on macOS has process-connection-type set to nil by default,
985;; so on those systems Tramp doesn't obtain a pty. Here, we allow 985;; so on those systems Tramp doesn't obtain a pty. Here, we allow
986;; for an override of the system default. 986;; for an override of the system default.
987(defcustom tramp-process-connection-type t 987(defcustom tramp-process-connection-type t
diff --git a/lisp/org/org.el b/lisp/org/org.el
index 30ef5e83bdd..15f45822026 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -1940,7 +1940,7 @@ See `org-file-apps'.")
1940 ("eps.gz" . "gv %s") 1940 ("eps.gz" . "gv %s")
1941 ("dvi" . "xdvi %s") 1941 ("dvi" . "xdvi %s")
1942 ("fig" . "xfig %s")) 1942 ("fig" . "xfig %s"))
1943 "Default file applications on a MacOS X system. 1943 "Default file applications on a macOS system.
1944The system \"open\" is known as a default, but we use X11 applications 1944The system \"open\" is known as a default, but we use X11 applications
1945for some files for which the OS does not have a good default. 1945for some files for which the OS does not have a good default.
1946See `org-file-apps'.") 1946See `org-file-apps'.")
@@ -2015,7 +2015,7 @@ file identifier are
2015 (\"html\" . default) to the list as well. 2015 (\"html\" . default) to the list as well.
2016 t Default for files not matched by any of the other options. 2016 t Default for files not matched by any of the other options.
2017 `system' The system command to open files, like `open' on Windows 2017 `system' The system command to open files, like `open' on Windows
2018 and Mac OS X, and mailcap under GNU/Linux. This is the command 2018 and macOS, and mailcap under GNU/Linux. This is the command
2019 that will be selected if you call `C-c C-o' with a double 2019 that will be selected if you call `C-c C-o' with a double
2020 \\[universal-argument] \\[universal-argument] prefix. 2020 \\[universal-argument] \\[universal-argument] prefix.
2021 2021
diff --git a/lisp/outline.el b/lisp/outline.el
index 6345bb59df4..dca5f1a7de8 100644
--- a/lisp/outline.el
+++ b/lisp/outline.el
@@ -788,7 +788,8 @@ Show the heading too, if it is currently invisible."
788 'show-entry 'outline-show-entry "25.1") 788 'show-entry 'outline-show-entry "25.1")
789 789
790(defun outline-hide-body () 790(defun outline-hide-body ()
791 "Hide all body lines in buffer, leaving all headings visible." 791 "Hide all body lines in buffer, leaving all headings visible.
792Note that this does not hide the lines preceding the first heading line."
792 (interactive) 793 (interactive)
793 (outline-hide-region-body (point-min) (point-max))) 794 (outline-hide-region-body (point-min) (point-max)))
794 795
@@ -868,7 +869,12 @@ Show the heading too, if it is currently invisible."
868 nil)) 869 nil))
869 870
870(defun outline-hide-sublevels (levels) 871(defun outline-hide-sublevels (levels)
871 "Hide everything but the top LEVELS levels of headers, in whole buffer." 872 "Hide everything but the top LEVELS levels of headers, in whole buffer.
873This also unhides the top heading-less body, if any.
874
875Interactively, the prefix argument supplies the value of LEVELS.
876When invoked without a prefix argument, LEVELS defaults to the level
877of the current heading, or to 1 if the current line is not a heading."
872 (interactive (list 878 (interactive (list
873 (cond 879 (cond
874 (current-prefix-arg (prefix-numeric-value current-prefix-arg)) 880 (current-prefix-arg (prefix-numeric-value current-prefix-arg))
@@ -909,7 +915,8 @@ Show the heading too, if it is currently invisible."
909 'hide-sublevels 'outline-hide-sublevels "25.1") 915 'hide-sublevels 'outline-hide-sublevels "25.1")
910 916
911(defun outline-hide-other () 917(defun outline-hide-other ()
912 "Hide everything except current body and parent and top-level headings." 918 "Hide everything except current body and parent and top-level headings.
919This also unhides the top heading-less body, if any."
913 (interactive) 920 (interactive)
914 (outline-hide-sublevels 1) 921 (outline-hide-sublevels 1)
915 (let (outline-view-change-hook) 922 (let (outline-view-change-hook)
diff --git a/lisp/printing.el b/lisp/printing.el
index 7cdfb49a90f..7cf0afbf1fd 100644
--- a/lisp/printing.el
+++ b/lisp/printing.el
@@ -2272,7 +2272,7 @@ Useful links:
2272* gv 3.5, June 1997 2272* gv 3.5, June 1997
2273 `http://www.cs.wisc.edu/~ghost/gv/gv_doc/gv.html' 2273 `http://www.cs.wisc.edu/~ghost/gv/gv_doc/gv.html'
2274 2274
2275* MacGSView (MacOS) 2275* MacGSView (Mac OS)
2276 `http://www.cs.wisc.edu/~ghost/macos/index.htm' 2276 `http://www.cs.wisc.edu/~ghost/macos/index.htm'
2277" 2277"
2278 :type '(string :tag "Ghostview Utility") 2278 :type '(string :tag "Ghostview Utility")
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
index a2d4f143509..4f8709a21d7 100644
--- a/lisp/progmodes/gdb-mi.el
+++ b/lisp/progmodes/gdb-mi.el
@@ -69,12 +69,12 @@
69;; 2) Use MinGW GDB instead. 69;; 2) Use MinGW GDB instead.
70;; 3) Use cygwin-mount.el 70;; 3) Use cygwin-mount.el
71 71
72;;; Mac OSX: 72;;; macOS:
73 73
74;; GDB in Emacs on Mac OSX works best with FSF GDB as Apple have made 74;; GDB in Emacs on macOS works best with FSF GDB as Apple have made
75;; some changes to the version that they include as part of Mac OSX. 75;; some changes to the version that they include as part of macOS.
76;; This requires GDB version 7.0 or later (estimated release date Aug 2009) 76;; This requires GDB version 7.0 or later as earlier versions do not
77;; as earlier versions do not compile on Mac OSX. 77;; compile on macOS.
78 78
79;;; Known Bugs: 79;;; Known Bugs:
80 80
diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el
index 9cb2ca74063..bc607ac4019 100644
--- a/lisp/progmodes/idlwave.el
+++ b/lisp/progmodes/idlwave.el
@@ -420,22 +420,22 @@ A value of t means to show all source files."
420 :type 'integer) 420 :type 'integer)
421 421
422(defcustom idlwave-library-path nil 422(defcustom idlwave-library-path nil
423 "Library path for Windows and MacOS (OS9). Not needed under UNIX. 423 "Library path for Windows and Mac OS (OS9). Not needed under UNIX.
424When selecting the directories to scan for IDL user catalog routine 424When selecting the directories to scan for IDL user catalog routine
425info, IDLWAVE can, under UNIX, query the shell for the exact search 425info, IDLWAVE can, under UNIX, query the shell for the exact search
426path \(the value of !PATH). However, under Windows and MacOS 426path (the value of !PATH). However, under MS-Windows, the
427\(pre-OSX), the IDLWAVE shell does not work. In this case, this 427IDLWAVE shell does not work. In this case, this variable can be
428variable can be set to specify the paths where IDLWAVE can find PRO 428set to specify the paths where IDLWAVE can find PRO files. The
429files. The shell will only be asked for a list of paths when this 429shell will only be asked for a list of paths when this variable
430variable is nil. The value is a list of directories. A directory 430is nil. The value is a list of directories. A directory
431preceded by a `+' will be searched recursively. If you set this 431preceded by a `+' will be searched recursively. If you set this
432variable on a UNIX system, the shell will not be queried. See also 432variable on a UNIX system, the shell will not be queried. See
433`idlwave-system-directory'." 433also `idlwave-system-directory'."
434 :group 'idlwave-routine-info 434 :group 'idlwave-routine-info
435 :type '(repeat (directory))) 435 :type '(repeat (directory)))
436 436
437(defcustom idlwave-system-directory "" 437(defcustom idlwave-system-directory ""
438 "The IDL system directory for Windows and MacOS. Not needed under 438 "The IDL system directory for Windows and Mac OS. Not needed under
439UNIX. Set this to the value of the `!DIR' system variable in IDL. 439UNIX. Set this to the value of the `!DIR' system variable in IDL.
440IDLWAVE uses this to find out which of the library routines belong to 440IDLWAVE uses this to find out which of the library routines belong to
441the official system library. All files inside the `lib' subdirectory 441the official system library. All files inside the `lib' subdirectory
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index 5d5d101835a..6fff981c6bd 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -1758,6 +1758,10 @@ This performs fontification according to `js--class-styles'."
1758 (and (js--re-search-backward "[?:{]\\|\\_<case\\_>" nil t) 1758 (and (js--re-search-backward "[?:{]\\|\\_<case\\_>" nil t)
1759 (eq (char-after) ??)))) 1759 (eq (char-after) ??))))
1760 (not (and 1760 (not (and
1761 (eq (char-after) ?/)
1762 (save-excursion
1763 (eq (nth 3 (syntax-ppss)) ?/))))
1764 (not (and
1761 (eq (char-after) ?*) 1765 (eq (char-after) ?*)
1762 ;; Generator method (possibly using computed property). 1766 ;; Generator method (possibly using computed property).
1763 (looking-at (concat "\\* *\\(?:\\[\\|" js--name-re " *(\\)")) 1767 (looking-at (concat "\\* *\\(?:\\[\\|" js--name-re " *(\\)"))
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 9cd9cc8b7c0..be96ac32a01 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2436,7 +2436,7 @@ banner and the initial prompt are received separately."
2436(defun python-shell-comint-end-of-output-p (output) 2436(defun python-shell-comint-end-of-output-p (output)
2437 "Return non-nil if OUTPUT is ends with input prompt." 2437 "Return non-nil if OUTPUT is ends with input prompt."
2438 (string-match 2438 (string-match
2439 ;; XXX: It seems on OSX an extra carriage return is attached 2439 ;; XXX: It seems on macOS an extra carriage return is attached
2440 ;; at the end of output, this handles that too. 2440 ;; at the end of output, this handles that too.
2441 (concat 2441 (concat
2442 "\r?\n?" 2442 "\r?\n?"
@@ -5170,7 +5170,7 @@ returned as is."
5170 (add-to-list 5170 (add-to-list
5171 'hs-special-modes-alist 5171 'hs-special-modes-alist
5172 `(python-mode 5172 `(python-mode
5173 "\\s-*\\(?:def\\|class\\)\\>" 5173 "\\s-*\\_<\\(?:def\\|class\\)\\_>"
5174 ;; Use the empty string as end regexp so it doesn't default to 5174 ;; Use the empty string as end regexp so it doesn't default to
5175 ;; "\\s)". This way parens at end of defun are properly hidden. 5175 ;; "\\s)". This way parens at end of defun are properly hidden.
5176 "" 5176 ""
diff --git a/lisp/simple.el b/lisp/simple.el
index 2506c4a59a8..91dee30b218 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -5517,13 +5517,13 @@ after C-u \\[set-mark-command]."
5517 :group 'editing-basics) 5517 :group 'editing-basics)
5518 5518
5519(defun set-mark-command (arg) 5519(defun set-mark-command (arg)
5520 "Set the mark where point is, or jump to the mark. 5520 "Set the mark where point is, and activate it; or jump to the mark.
5521Setting the mark also alters the region, which is the text 5521Setting the mark also alters the region, which is the text
5522between point and mark; this is the closest equivalent in 5522between point and mark; this is the closest equivalent in
5523Emacs to what some editors call the \"selection\". 5523Emacs to what some editors call the \"selection\".
5524 5524
5525With no prefix argument, set the mark at point, and push the 5525With no prefix argument, set the mark at point, and push the
5526old mark position on local mark ring. Also push the old mark on 5526old mark position on local mark ring. Also push the new mark on
5527global mark ring, if the previous mark was set in another buffer. 5527global mark ring, if the previous mark was set in another buffer.
5528 5528
5529When Transient Mark Mode is off, immediately repeating this 5529When Transient Mark Mode is off, immediately repeating this
diff --git a/lisp/term.el b/lisp/term.el
index c067254f414..a4c652bad7f 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -849,6 +849,7 @@ is buffer-local."
849 (define-key map [S-insert] 'term-paste) 849 (define-key map [S-insert] 'term-paste)
850 (define-key map [prior] 'term-send-prior) 850 (define-key map [prior] 'term-send-prior)
851 (define-key map [next] 'term-send-next) 851 (define-key map [next] 'term-send-next)
852 (define-key map [xterm-paste] #'term--xterm-paste)
852 map) 853 map)
853 "Keyboard map for sending characters directly to the inferior process.") 854 "Keyboard map for sending characters directly to the inferior process.")
854 855
@@ -1204,6 +1205,13 @@ without any interpretation."
1204 (interactive) 1205 (interactive)
1205 (term-send-raw-string (current-kill 0))) 1206 (term-send-raw-string (current-kill 0)))
1206 1207
1208(defun term--xterm-paste ()
1209 "Insert the text pasted in an XTerm bracketed paste operation."
1210 (interactive)
1211 (term-send-raw-string (xterm--pasted-text)))
1212
1213(declare-function xterm--pasted-text "term/xterm" ())
1214
1207;; Which would be better: "\e[A" or "\eOA"? readline accepts either. 1215;; Which would be better: "\e[A" or "\eOA"? readline accepts either.
1208;; For my configuration it's definitely better \eOA but YMMV. -mm 1216;; For my configuration it's definitely better \eOA but YMMV. -mm
1209;; For example: vi works with \eOA while elm wants \e[A ... 1217;; For example: vi works with \eOA while elm wants \e[A ...
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el
index 5080ed0a8f7..41d6d72812b 100644
--- a/lisp/term/ns-win.el
+++ b/lisp/term/ns-win.el
@@ -1,4 +1,4 @@
1;;; ns-win.el --- lisp side of interface with NeXT/Open/GNUstep/MacOS X window system -*- lexical-binding: t -*- 1;;; ns-win.el --- lisp side of interface with NeXT/Open/GNUstep/macOS window system -*- lexical-binding: t -*-
2 2
3;; Copyright (C) 1993-1994, 2005-2016 Free Software Foundation, Inc. 3;; Copyright (C) 1993-1994, 2005-2016 Free Software Foundation, Inc.
4 4
@@ -41,7 +41,7 @@
41;;; Code: 41;;; Code:
42(eval-when-compile (require 'cl-lib)) 42(eval-when-compile (require 'cl-lib))
43(or (featurep 'ns) 43(or (featurep 'ns)
44 (error "%s: Loading ns-win.el but not compiled for GNUstep/MacOS" 44 (error "%s: Loading ns-win.el but not compiled for GNUstep/macOS"
45 (invocation-name))) 45 (invocation-name)))
46 46
47;; Documentation-purposes only: actually loaded in loadup.el. 47;; Documentation-purposes only: actually loaded in loadup.el.
@@ -54,7 +54,7 @@
54(require 'ucs-normalize) 54(require 'ucs-normalize)
55 55
56(defgroup ns nil 56(defgroup ns nil
57 "GNUstep/Mac OS X specific features." 57 "GNUstep/macOS specific features."
58 :group 'environment) 58 :group 'environment)
59 59
60;;;; Command line argument handling. 60;;;; Command line argument handling.
@@ -338,7 +338,7 @@ See `ns-insert-working-text'."
338 (setq ns-working-overlay nil)) 338 (setq ns-working-overlay nil))
339 339
340 340
341;; OS X file system Unicode UTF-8 NFD (decomposed form) support. 341;; macOS file system Unicode UTF-8 NFD (decomposed form) support.
342(when (eq system-type 'darwin) 342(when (eq system-type 'darwin)
343 ;; Used prior to Emacs 25. 343 ;; Used prior to Emacs 25.
344 (define-coding-system-alias 'utf-8-nfd 'utf-8-hfs) 344 (define-coding-system-alias 'utf-8-nfd 'utf-8-hfs)
@@ -641,7 +641,7 @@ This function has been overloaded in Nextstep.")
641 (set-frame-font ns-input-font)) 641 (set-frame-font ns-input-font))
642 642
643 643
644;; Default fontset for Mac OS X. This is mainly here to show how a fontset 644;; Default fontset for macOS. This is mainly here to show how a fontset
645;; can be set up manually. Ordinarily, fontsets are auto-created whenever 645;; can be set up manually. Ordinarily, fontsets are auto-created whenever
646;; a font is chosen by 646;; a font is chosen by
647(defvar ns-standard-fontset-spec 647(defvar ns-standard-fontset-spec
@@ -655,7 +655,7 @@ This function has been overloaded in Nextstep.")
655 ",") 655 ",")
656 "String of fontset spec of the standard fontset. 656 "String of fontset spec of the standard fontset.
657This defines a fontset consisting of the Courier and other fonts that 657This defines a fontset consisting of the Courier and other fonts that
658come with OS X. 658come with macOS.
659See the documentation of `create-fontset-from-fontset-spec' for the format.") 659See the documentation of `create-fontset-from-fontset-spec' for the format.")
660 660
661(defvar ns-reg-to-script) ; nsfont.m 661(defvar ns-reg-to-script) ; nsfont.m
@@ -844,7 +844,7 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.")
844 (setq default-process-coding-system 844 (setq default-process-coding-system
845 '(utf-8-unix . utf-8-unix))))) 845 '(utf-8-unix . utf-8-unix)))))
846 846
847 ;; OS X Lion introduces PressAndHold, which is unsupported by this port. 847 ;; Mac OS X Lion introduces PressAndHold, which is unsupported by this port.
848 ;; See this thread for more details: 848 ;; See this thread for more details:
849 ;; http://lists.gnu.org/archive/html/emacs-devel/2011-06/msg00505.html 849 ;; http://lists.gnu.org/archive/html/emacs-devel/2011-06/msg00505.html
850 (ns-set-resource nil "ApplePressAndHoldEnabled" "NO") 850 (ns-set-resource nil "ApplePressAndHoldEnabled" "NO")
diff --git a/lisp/term/xterm.el b/lisp/term/xterm.el
index 01c01130e7c..5fc6056ca23 100644
--- a/lisp/term/xterm.el
+++ b/lisp/term/xterm.el
@@ -784,7 +784,7 @@ We run the first FUNCTION whose STRING matches the input events."
784 ;; Try to find out the type of terminal by sending a "Secondary 784 ;; Try to find out the type of terminal by sending a "Secondary
785 ;; Device Attributes (DA)" query. 785 ;; Device Attributes (DA)" query.
786 (xterm--query "\e[>0c" 786 (xterm--query "\e[>0c"
787 ;; Some terminals (like OS X's Terminal.app) respond to 787 ;; Some terminals (like macOS's Terminal.app) respond to
788 ;; this query as if it were a "Primary Device Attributes" 788 ;; this query as if it were a "Primary Device Attributes"
789 ;; query instead, so we should handle that too. 789 ;; query instead, so we should handle that too.
790 '(("\e[?" . xterm--version-handler) 790 '(("\e[?" . xterm--version-handler)
diff --git a/lisp/textmodes/rst.el b/lisp/textmodes/rst.el
index 49809fab9e8..7161dd329ac 100644
--- a/lisp/textmodes/rst.el
+++ b/lisp/textmodes/rst.el
@@ -1227,7 +1227,7 @@ as well but give an additional message."
1227 ;; 1227 ;;
1228 ;; The adjustment function that adorns or rotates a section title. 1228 ;; The adjustment function that adorns or rotates a section title.
1229 (rst-define-key map [?\C-c ?\C-=] 'rst-adjust [?\C-c ?\C-a t]) 1229 (rst-define-key map [?\C-c ?\C-=] 'rst-adjust [?\C-c ?\C-a t])
1230 (rst-define-key map [?\C-=] 'rst-adjust) ; Does not work on the Mac OSX and 1230 (rst-define-key map [?\C-=] 'rst-adjust) ; Does not work on macOS and
1231 ; on consoles. 1231 ; on consoles.
1232 1232
1233 ;; \C-c \C-a is the keymap for adornments. 1233 ;; \C-c \C-a is the keymap for adornments.
diff --git a/lisp/vc/pcvs.el b/lisp/vc/pcvs.el
index 573feedd047..b0ad5ea588d 100644
--- a/lisp/vc/pcvs.el
+++ b/lisp/vc/pcvs.el
@@ -551,7 +551,7 @@ If non-nil, NEW means to create a new buffer no matter what."
551 ;; is accessed via SSH, a bad interaction between libc, 551 ;; is accessed via SSH, a bad interaction between libc,
552 ;; CVS and SSH can lead to garbled output. 552 ;; CVS and SSH can lead to garbled output.
553 ;; It might be a glibc-specific problem (but it can also happens 553 ;; It might be a glibc-specific problem (but it can also happens
554 ;; under Mac OS X, it seems). 554 ;; under macOS, it seems).
555 ;; It seems that using a pty can help circumvent the problem, 555 ;; It seems that using a pty can help circumvent the problem,
556 ;; but at the cost of screwing up when the process thinks it 556 ;; but at the cost of screwing up when the process thinks it
557 ;; can ask for user input (such as password or host-key 557 ;; can ask for user input (such as password or host-key
@@ -696,7 +696,7 @@ SUBDIR is the subdirectory (if any) where this command was run.
696OLD-FIS is the list of fileinfos on which the cvs command was applied and 696OLD-FIS is the list of fileinfos on which the cvs command was applied and
697 which should be considered up-to-date if they are missing from the output." 697 which should be considered up-to-date if they are missing from the output."
698 (when (eq system-type 'darwin) 698 (when (eq system-type 'darwin)
699 ;; Fixup the ^D^H^H inserted at beginning of buffer sometimes on MacOSX 699 ;; Fixup the ^D^H^H inserted at beginning of buffer sometimes on macOS
700 ;; because of the call to `process-send-eof'. 700 ;; because of the call to `process-send-eof'.
701 (save-excursion 701 (save-excursion
702 (goto-char (point-min)) 702 (goto-char (point-min))
diff --git a/nextstep/INSTALL b/nextstep/INSTALL
index dd690abf1b1..3740346acd5 100644
--- a/nextstep/INSTALL
+++ b/nextstep/INSTALL
@@ -19,7 +19,7 @@ In the top-level directory, use:
19 19
20 ./configure --with-ns 20 ./configure --with-ns
21 21
22(On Mac OS X, --with-ns is enabled by default.) 22(On macOS, --with-ns is enabled by default.)
23 23
24This will compile all the files, but emacs will not be able to be run except 24This will compile all the files, but emacs will not be able to be run except
25in -nw (terminal) mode. 25in -nw (terminal) mode.
diff --git a/nextstep/Makefile.in b/nextstep/Makefile.in
index 9aa034ad98d..d6e12825613 100644
--- a/nextstep/Makefile.in
+++ b/nextstep/Makefile.in
@@ -35,12 +35,12 @@ MKDIR_P = @MKDIR_P@
35 35
36## Emacs.app. 36## Emacs.app.
37ns_appdir = @ns_appdir@ 37ns_appdir = @ns_appdir@
38## GNUstep: ns_appdir; OS X: ns_appdir/Contents/MacOS 38## GNUstep: ns_appdir; macOS: ns_appdir/Contents/MacOS
39ns_appbindir = @ns_appbindir@ 39ns_appbindir = @ns_appbindir@
40## GNUstep/Emacs.base or Cocoa/Emacs.base. 40## GNUstep/Emacs.base or Cocoa/Emacs.base.
41ns_appsrc = @ns_appsrc@ 41ns_appsrc = @ns_appsrc@
42## GNUstep: GNUstep/Emacs.base/Resources/Info-gnustep.plist 42## GNUstep: GNUstep/Emacs.base/Resources/Info-gnustep.plist
43## OS X: Cocoa/Emacs.base/Contents/Info.plist 43## macOS: Cocoa/Emacs.base/Contents/Info.plist
44ns_check_file = @ns_appdir@/@ns_check_file@ 44ns_check_file = @ns_appdir@/@ns_check_file@
45 45
46.PHONY: all 46.PHONY: all
diff --git a/nextstep/README b/nextstep/README
index 7a1a0921cd8..6d37bb7b2d2 100644
--- a/nextstep/README
+++ b/nextstep/README
@@ -1,8 +1,8 @@
1 NS -- the Cocoa interface for OS X and compatible systems 1 NS -- the Cocoa interface for macOS and compatible systems
2 --------------------------------------------------------- 2 ----------------------------------------------------------
3 3
4This directory contains files needed to build Emacs on system based on 4This directory contains files needed to build Emacs on system based on
5NextStep (NS), including OS X (Mac) and GNUstep, using the Cocoa API. 5NextStep (NS), including macOS and GNUstep, using the Cocoa API.
6 6
7 7
8 HISTORY 8 HISTORY
@@ -14,14 +14,14 @@ OpenStep and then Rhapsody, which became Mac OS X. In 2004 it was
14adapted to GNUstep, a free OpenStep implementation, and in 2008 it was 14adapted to GNUstep, a free OpenStep implementation, and in 2008 it was
15merged to the GNU Emacs trunk and released with Emacs 23. Around the 15merged to the GNU Emacs trunk and released with Emacs 23. Around the
16same time a separate Mac-only port using the Carbon APIs and 16same time a separate Mac-only port using the Carbon APIs and
17descending from a 2001 MacOS 8/9 port of Emacs 21 was removed. (It 17descending from a 2001 Mac OS 8/9 port of Emacs 21 was removed. (It
18remains available externally under the name "mac".) 18remains available externally under the name "mac".)
19 19
20 20
21 OVERVIEW OF COCOA AND OBJECTIVE-C 21 OVERVIEW OF COCOA AND OBJECTIVE-C
22 22
23Cocoa is an API for the Objective-C language, an objective oriented 23Cocoa is an API for the Objective-C language, an objective oriented
24superset of C. Anybody with experience with iOS or modern OS X 24superset of C. Anybody with experience with iOS or modern macOS
25application development should feel at home. 25application development should feel at home.
26 26
27A method call in Objective-C differs from most other languages in the 27A method call in Objective-C differs from most other languages in the
@@ -58,11 +58,11 @@ Classes are declared like the following:
58* Don't use macros and types intended for the XCode Interface Builder, 58* Don't use macros and types intended for the XCode Interface Builder,
59 like 'IBAction'. 59 like 'IBAction'.
60 60
61* The NS interface should work on all version of OS X from 10.6.8 61* The NS interface should work on all version of macOS from Mac OS X
62 (Snow Leopard) to the latest official release. 62 10.6.8 (Snow Leopard) to the latest official release.
63 63
64* Under OS X, it is possible to build Emacs using NS, X11, or console 64* Under macOS, it is possible to build Emacs using NS, X11, or console
65 only. A new OS X feature should work in all appropriate builds. 65 only. A new macOS feature should work in all appropriate builds.
66 66
67 67
68 TRACING SUPPORT 68 TRACING SUPPORT
@@ -76,7 +76,7 @@ uncomment the lines defining symbols starting with 'NSTRACE_GROUP'.
76 76
77 GNUSTEP AND OTHER COMPATIBLE SYSTEMS 77 GNUSTEP AND OTHER COMPATIBLE SYSTEMS
78 78
79The NS interface works on system compatible with OS X, for example 79The NS interface works on systems compatible with macOS, for example
80GNUstep. Even though they are less frequently used, this is important 80GNUstep. Even though they are less frequently used, this is important
81for a number of reasons: 81for a number of reasons:
82 82
@@ -84,7 +84,7 @@ for a number of reasons:
84 look-and-feel as the rest of the system. 84 look-and-feel as the rest of the system.
85 85
86* This allows other Emacs developers to test their changes on the NS 86* This allows other Emacs developers to test their changes on the NS
87 interface without having access to an OS X machine. 87 interface without having access to a macOS machine.
88 88
89* If a feature in the NS interface work on free systems like GNUstep, 89* If a feature in the NS interface work on free systems like GNUstep,
90 this meets the FSF requirement that features in GNU software should 90 this meets the FSF requirement that features in GNU software should
diff --git a/nextstep/templates/Emacs.desktop.in b/nextstep/templates/Emacs.desktop.in
index 170f195f270..4fed1e3b159 100644
--- a/nextstep/templates/Emacs.desktop.in
+++ b/nextstep/templates/Emacs.desktop.in
@@ -4,7 +4,7 @@ Type=Application
4Version=@version@ 4Version=@version@
5Categories=GNUstep 5Categories=GNUstep
6Name=Emacs 6Name=Emacs
7Comment=GNU Emacs for NeXT/Open/GNUstep and OS X 7Comment=GNU Emacs for NeXT/Open/GNUstep and macOS
8Icon=emacs.tiff 8Icon=emacs.tiff
9Exec=openapp Emacs.app 9Exec=openapp Emacs.app
10#TryExec=Emacs.app 10#TryExec=Emacs.app
diff --git a/nextstep/templates/Info-gnustep.plist.in b/nextstep/templates/Info-gnustep.plist.in
index 679eb4fa435..1fd31849ab8 100644
--- a/nextstep/templates/Info-gnustep.plist.in
+++ b/nextstep/templates/Info-gnustep.plist.in
@@ -1,11 +1,11 @@
1{ 1{
2 ApplicationDescription = "GNU Emacs for GNUstep / OS X"; 2 ApplicationDescription = "GNU Emacs for GNUstep / macOS";
3 ApplicationIcon = emacs.tiff; 3 ApplicationIcon = emacs.tiff;
4 ApplicationName = Emacs; 4 ApplicationName = Emacs;
5 ApplicationRelease = "@version@"; 5 ApplicationRelease = "@version@";
6 Authors = ( 6 Authors = (
7 "Adrian Robert (GNUstep)", 7 "Adrian Robert (GNUstep)",
8 "Christophe de Dinechin (MacOS X)", 8 "Christophe de Dinechin (macOS)",
9 "Scott Bender (OpenStep)", 9 "Scott Bender (OpenStep)",
10 "Christian Limpach (NeXTstep)", 10 "Christian Limpach (NeXTstep)",
11 "Carl Edman (NeXTstep)", 11 "Carl Edman (NeXTstep)",
diff --git a/nextstep/templates/Info.plist.in b/nextstep/templates/Info.plist.in
index dcd2fe34167..686b8047dfb 100644
--- a/nextstep/templates/Info.plist.in
+++ b/nextstep/templates/Info.plist.in
@@ -504,7 +504,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
504 </dict> 504 </dict>
505 </array> 505 </array>
506 506
507 <!-- Export definitions so that OS X understands about the file types --> 507 <!-- Export definitions so that macOS understands about the file types -->
508 <key>UTExportedTypeDeclarations</key> 508 <key>UTExportedTypeDeclarations</key>
509 <array> 509 <array>
510 <dict> 510 <dict>
diff --git a/nt/README.W32 b/nt/README.W32
index d866d9fc7a6..b65a1de4eec 100644
--- a/nt/README.W32
+++ b/nt/README.W32
@@ -1,11 +1,12 @@
1Copyright (C) 2001-2016 Free Software Foundation, Inc. 1Copyright (C) 2001-2016 Free Software Foundation, Inc.
2See the end of the file for license conditions. 2See the end of the file for license conditions.
3 3
4 Emacs for Windows 4 Emacs version 25.1.50 for MS-Windows
5 5
6 This README file describes how to set up and run a precompiled 6 This README file describes how to set up and run a precompiled
7 distribution of GNU Emacs for Windows. You can find the precompiled 7 distribution of the latest version of GNU Emacs for MS-Windows. You
8 distribution on the ftp.gnu.org server and its mirrors: 8 can find the precompiled distribution on the ftp.gnu.org server and
9 its mirrors:
9 10
10 ftp://ftp.gnu.org/gnu/emacs/windows/ 11 ftp://ftp.gnu.org/gnu/emacs/windows/
11 12
@@ -15,19 +16,23 @@ See the end of the file for license conditions.
15 Information on how to compile Emacs from sources on Windows is in 16 Information on how to compile Emacs from sources on Windows is in
16 the files README and INSTALL in the nt/ sub-directory of the 17 the files README and INSTALL in the nt/ sub-directory of the
17 top-level Emacs directory in the source distribution, as is this 18 top-level Emacs directory in the source distribution, as is this
18 file as README.precompiled. If you received this file as part of 19 file under the name README.W32. If you received this file as part
19 the Emacs source distribution, and are looking for information on 20 of the Emacs source distribution, and are looking for information on
20 how to build Emacs on MS-Windows, please read those 2 files and not 21 how to build Emacs on MS-Windows, please read those 2 files and not
21 this one. 22 this one.
22 23
23* Preliminaries 24* Preliminaries
24 25
25 There are two binary distributions named 26 There are two binary distributions named
26 emacs-n-x86_64-w64-mingw32.zip and 27 emacs-VER-x86_64-w64-mingw32.zip and emacs-VER-i686-w64-mingw32.zip,
27 emacs-n-i686-w64-mingw32.zip. These are for 64-bit and 32-bit 28 where VER is the Emacs version. These are 64-bit and 32-bit builds,
28 machines respectively. 29 respectively. If you are running a 32-bit version of MS-Windows,
30 you need to install the 32-bit build; users of 64-bit Windows can
31 use either build, but we recommend to install the 64-bit one, as it
32 will be able to edit larger buffers and will generally run faster.
29 33
30 The binary distribution has these top-level directories: 34 The binary distribution has these top-level directories:
35
31 + bin 36 + bin
32 + libexec 37 + libexec
33 + share 38 + share
@@ -36,23 +41,42 @@ See the end of the file for license conditions.
36* Setting up Emacs 41* Setting up Emacs
37 42
38 To install Emacs, simply unpack the binary package into a directory 43 To install Emacs, simply unpack the binary package into a directory
39 of your choice. If you use File Explorer and "Extract" by default 44 of your choice. If you use the Windows Explorer and its "Extract"
40 this will be in a top-level directory with the same name as the zip 45 action, by default this will be in a top-level directory with the
41 file. 46 same name as the zip file.
42 47
43 We also provide a set of optional dependencies, in 48 We also provide a set of optional dependencies, in
44 emacs-25-x86_64-deps.zip or emacs-25-i686-deps.zip respectively, 49 emacs-MVER-x86_64-deps.zip or emacs-MVER-i686-deps.zip respectively,
45 which provide Emacs with an number of additional capabilities. To 50 where MVER is the major Emacs version that should use these
46 add these, unpack them directly over the emacs directory structure. 51 libraries. These provide Emacs with a number of additional optional
52 capabilities, described in detail below. To use these, unpack them
53 directly over the emacs directory structure. Note that, if
54 extracting with the Windows Explorer, you will have to override the
55 directory where it wants to put the file with the same directory
56 where you extracted the Emacs binary package.
47 57
48 Finally, and also optionally, you can run the program addpm.exe in 58 Finally, and also optionally, you can run the program addpm.exe in
49 the bin subdirectory which will place an icon for Emacs on the start 59 the bin subdirectory which will place an icon for Emacs on the start
50 page. 60 page. (This is no longer needed in latest versions of Emacs, so we
51 61 recommend you not do that, as running addpm.exe will insert entries
52 Emacs is completely portable. You can create your own shortcut to 62 into the Registry which might get in the way if you upgrade to later
53 runemacs.exe and place this wherever you find it convenient, or 63 versions without updating those entries, or would like to uninstall
54 run it from a USB or network drive without copying or installing 64 Emacs.)
55 anything on the machine itself. 65
66 Emacs is completely portable. You can create your own shortcut to
67 runemacs.exe and place this wherever you find it convenient (the
68 desktop and/or the Taskbar), or run it from a USB or network drive
69 without copying or installing anything on the machine itself.
70
71* Prerequisites for Windows 9X
72
73 The 32-bit build supports MS-Windows 9X (Windows 95/98/Me). To run
74 Emacs on these versions of Windows, you will need to have the
75 Microsoft Layer for Unicode (MSLU) installed. It can be downloaded
76 from the Microsoft site, and comes in a form of a single dynamic
77 library called UNICOWS.DLL. If this library is not accessible to
78 Emacs on Windows 9X, it will pop up a dialog saying that it cannot
79 find the UNICOWS library, and will refuse to start up.
56 80
57* Starting Emacs 81* Starting Emacs
58 82
@@ -66,7 +90,7 @@ See the end of the file for license conditions.
66 If you want to use Emacs in tty or character mode within a command 90 If you want to use Emacs in tty or character mode within a command
67 window, you can start it by typing "emacs -nw" at the command prompt. 91 window, you can start it by typing "emacs -nw" at the command prompt.
68 (Obviously, you need to ensure that the Emacs bin subdirectory is in 92 (Obviously, you need to ensure that the Emacs bin subdirectory is in
69 your PATH first, or specify the path to emacs.exe.) The -nw 93 your Path first, or specify the path to emacs.exe.) The -nw
70 (non-windowed) mode of operation is most useful if you have a telnet 94 (non-windowed) mode of operation is most useful if you have a telnet
71 server on your machine, allowing you to run Emacs remotely. 95 server on your machine, allowing you to run Emacs remotely.
72 96
@@ -90,7 +114,8 @@ See the end of the file for license conditions.
90 + emacsclientw.exe - A version of emacsclient that does not open 114 + emacsclientw.exe - A version of emacsclient that does not open
91 a command-line window. 115 a command-line window.
92 116
93 + addpm.exe - The installer that adds Emacs to "Start". 117 + addpm.exe - A basic installer that adds Emacs to "Start" menus and
118 adds Emacs-related entries to the Windows Registry.
94 119
95 + ctags.exe, etags.exe - Tools for generating tag files. See the 120 + ctags.exe, etags.exe - Tools for generating tag files. See the
96 `Tags' node of the Emacs manual. 121 `Tags' node of the Emacs manual.
@@ -124,26 +149,56 @@ See the end of the file for license conditions.
124 + update-game-score.exe - A utility for updating the score files of 149 + update-game-score.exe - A utility for updating the score files of
125 Emacs games. 150 Emacs games.
126 151
127* Optional Dependencies 152* Optional dependency libraries
128 153
129 Emacs has built in support for XBM and PPM/PGM/PBM images, and the 154 Emacs has built in support for XBM and PPM/PGM/PBM images, and the
130 libXpm library is bundled, providing XPM support (required for color 155 libXpm library is bundled, providing XPM support (required for color
131 toolbar icons and splash screen). Source for libXpm should be 156 toolbar icons and splash screen). Source for libXpm should be
132 available from the same place from which you got this binary 157 available from the same place from which you got this binary
133 distribution. 158 distribution.
134 159
135 In addition, as described, there is a separate dependency bundle 160 Emacs has a number of optional features which need additional
136 providing support for many images formats, TLS, XML parsing and 161 libraries. These are provided in a separate bundle of dependencies,
137 compression. 162 as described above, and enable support for the following:
163
164 - displaying inline images of many types (PNG, JPEG, GIF, TIFF, SVG)
165 - SSL/TLS secure network communications (HTTPS, IMAPS, etc.)
166 - HTML and XML parsing (necessary for the built-in EWW browser)
167 - built-in decompression of compressed text
168
169 The optional dependency libraries are in emacs-MVER-x86_64-deps.zip
170 (64-bit) and emacs-MVER-i686-deps.zip (32-bit), and their sources
171 are in emacs-MVER-deps-mingw-w64-src.zip, where MVER is the major
172 version of Emacs that should use these dependencies. Note that a
173 64-bit Emacs will only work with the 64-bit dependencies, and the
174 32-bit Emacs only with the 32-bit dependencies.
175
176 Newer/updated builds for these optional libraries are available at
177 http://msys2.github.io/ and
178 http://sourceforge.net/projects/ezwinports/files/ (but you shouldn't
179 need these except in emergencies).
180
181 If you install the libraries in a directory different from where you
182 have the Emacs executable programs, we recommend to add the
183 directory with DLLs to your Path, so that Emacs will be able to find
184 those DLLs when needed.
138 185
139* Installing with an existing MSYS2 installation. 186* Installing Emacs with an existing MSYS2 installation
140 187
141 You may also use Emacs with an existing MSYS2 installation by simply 188 You may also use Emacs with an existing MSYS2 installation by simply
142 unpacking the Emacs distribution over MSYS2. You can then use the 189 unpacking the Emacs distribution over MSYS2. You can then use the
143 'pacman' utility to install dependencies. You should not use the 190 'pacman' utility to install dependencies. You should not use the
144 optional dependencies bundle, as this will overwrite MSYS2 files 191 optional dependencies bundle from this site, as this will overwrite
145 (the dependency bundle derives from MSYS2, but may be a different 192 MSYS2 files (the dependency bundle derives from MSYS2, but may be a
146 version). 193 different version).
194
195 Some of the optional libraries need to be of certain versions to
196 work with your Emacs binary. Make sure you install those versions
197 of dependencies, and no others. Emacs variables such as
198 libpng-version and libjpeg-version tell what versions of the
199 corresponding libraries are expected by Emacs. (We recommend that
200 you use the dependency bundle, where these issues are always
201 resolved.)
147 202
148 To install the optional libraries, start the MSYS2 Bash window and 203 To install the optional libraries, start the MSYS2 Bash window and
149 type the following command: 204 type the following command:
@@ -153,17 +208,25 @@ See the end of the file for license conditions.
153 where PACKAGES is the list of packages you want to install. The 208 where PACKAGES is the list of packages you want to install. The
154 full list is as follows: 209 full list is as follows:
155 210
156 mingw-w64-x86_64-giflib 211 mingw-w64-x86_64-giflib
157 mingw-w64-x86_64-gnutls 212 mingw-w64-x86_64-gnutls
158 mingw-w64-x86_64-libjpeg-turbo 213 mingw-w64-x86_64-libjpeg-turbo
159 mingw-w64-x86_64-libpng 214 mingw-w64-x86_64-libpng
160 mingw-w64-x86_64-librsvg 215 mingw-w64-x86_64-librsvg
161 mingw-w64-x86_64-libtiff 216 mingw-w64-x86_64-libtiff
162 mingw-w64-x86_64-libxml2 217 mingw-w64-x86_64-libxml2
163 mingw-w64-x86_64-xpm-nox 218 mingw-w64-x86_64-xpm-nox
164 219
165 You can type any subset of this list. Once again, when asked 220 You can type any subset of this list. When asked whether to proceed
166 whether to proceed with installation, answer Y. 221 with installation, answer Y.
222
223 Alternatively, you could install the packages manually from this
224 page:
225
226 https://sourceforge.net/projects/msys2/files/REPOS/MINGW/x86_64/
227
228 However, the packages there are not self-contained, so you will need
229 to manually download all their dependencies as well.
167 230
168* Uninstalling Emacs 231* Uninstalling Emacs
169 232
@@ -184,6 +247,9 @@ See the end of the file for license conditions.
184 247
185* Troubleshooting 248* Troubleshooting
186 249
250 Some known problems and their solutions can be found in the file
251 etc\PROBLEMS in the unpacked Emacs distribution.
252
187 Virus scanners 253 Virus scanners
188 254
189 Some virus scanners interfere with Emacs' use of subprocesses. If you 255 Some virus scanners interfere with Emacs' use of subprocesses. If you
@@ -191,6 +257,12 @@ See the end of the file for license conditions.
191 McAfee's Vshield, turn off "Scan all files" (WinGuard) or "boot sector 257 McAfee's Vshield, turn off "Scan all files" (WinGuard) or "boot sector
192 scanning" (McAfee exclusion properties). 258 scanning" (McAfee exclusion properties).
193 259
260 Windows 9X
261
262 On Windows 9X, make sure you have the UNICOWS.DLL library either in
263 the same directory where you have emacs.exe or in the directory
264 where system-wide DLLs are kept.
265
194* Further information 266* Further information
195 267
196 The Emacs User manual describes Windows-specific issues in the 268 The Emacs User manual describes Windows-specific issues in the
@@ -206,17 +278,17 @@ See the end of the file for license conditions.
206 In addition to the manual, there is a mailing list for help with 278 In addition to the manual, there is a mailing list for help with
207 Emacs here: 279 Emacs here:
208 280
209 https://lists.gnu.org/mailman/listinfo/help-gnu-emacs 281 http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
210 282
211 To ask questions on the mailing list, send email to 283 To ask questions on this mailing list, send email to
212 help-gnu-emacs@gnu.org. 284 help-gnu-emacs@gnu.org.
213 285
214 And a more specific one for issues related to the Windows port of 286 A mailing list for issuesspecifically related to the MS-Windows port
215 Emacs. For information about the list, see this Web page: 287 of Emacs is here:
216 288
217 http://lists.gnu.org/mailman/listinfo/help-emacs-windows 289 http://lists.gnu.org/mailman/listinfo/help-emacs-windows
218 290
219 To ask questions on the mailing list, send email to 291 To ask questions on this mailing list, send email to
220 help-emacs-windows@gnu.org. 292 help-emacs-windows@gnu.org.
221 293
222* Reporting bugs 294* Reporting bugs
@@ -224,11 +296,11 @@ See the end of the file for license conditions.
224 If you encounter a bug in this port of Emacs, we would like to hear 296 If you encounter a bug in this port of Emacs, we would like to hear
225 about it. First check the FAQ on the web page above to see if the bug 297 about it. First check the FAQ on the web page above to see if the bug
226 is already known and if there are any workarounds. Then check whether 298 is already known and if there are any workarounds. Then check whether
227 the bug has something to do with code in your .emacs file, e.g. by 299 the bug has something to do with code in your `.emacs' file, e.g. by
228 invoking Emacs with the "-Q" option. 300 invoking Emacs with the "-Q" option.
229 301
230 If you decide that it is a bug in Emacs, use the built in bug 302 If you decide that it is a bug in Emacs, use the built in bug
231 reporting facility to report it (from the menu; Help -> Send Bug Report). 303 reporting facility to report it (from the menu: Help -> Send Bug Report).
232 If you have not yet configured Emacs for mail, then when you press 304 If you have not yet configured Emacs for mail, then when you press
233 C-c C-c to send the report, it will ask you to paste the text of the 305 C-c C-c to send the report, it will ask you to paste the text of the
234 report into your mail client. If the bug is related to subprocesses, 306 report into your mail client. If the bug is related to subprocesses,
diff --git a/src/coding.c b/src/coding.c
index b82d4f5cda9..feed9c8274c 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -122,7 +122,7 @@ END-OF-LINE FORMAT
122 How text end-of-line is encoded depends on operating system. For 122 How text end-of-line is encoded depends on operating system. For
123 instance, Unix's format is just one byte of LF (line-feed) code, 123 instance, Unix's format is just one byte of LF (line-feed) code,
124 whereas DOS's format is two-byte sequence of `carriage-return' and 124 whereas DOS's format is two-byte sequence of `carriage-return' and
125 `line-feed' codes. MacOS's format is usually one byte of 125 `line-feed' codes. Classic Mac OS's format is usually one byte of
126 `carriage-return'. 126 `carriage-return'.
127 127
128 Since text character encoding and end-of-line encoding are 128 Since text character encoding and end-of-line encoding are
diff --git a/src/conf_post.h b/src/conf_post.h
index 9c544e89e94..060b912fafb 100644
--- a/src/conf_post.h
+++ b/src/conf_post.h
@@ -186,7 +186,7 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */
186#endif 186#endif
187#endif /* MSDOS */ 187#endif /* MSDOS */
188 188
189/* Mac OS X / GNUstep need a bit more pure memory. Of the existing knobs, 189/* macOS / GNUstep need a bit more pure memory. Of the existing knobs,
190 SYSTEM_PURESIZE_EXTRA seems like the least likely to cause problems. */ 190 SYSTEM_PURESIZE_EXTRA seems like the least likely to cause problems. */
191#ifdef HAVE_NS 191#ifdef HAVE_NS
192#if defined NS_IMPL_GNUSTEP 192#if defined NS_IMPL_GNUSTEP
diff --git a/src/emacs-module.c b/src/emacs-module.c
index 5075263edff..68aeb0ce704 100644
--- a/src/emacs-module.c
+++ b/src/emacs-module.c
@@ -147,8 +147,8 @@ static emacs_value const module_nil = 0;
147 or a pointer to handle non-local exits. The function must have an 147 or a pointer to handle non-local exits. The function must have an
148 ENV parameter. The function will return the specified value if a 148 ENV parameter. The function will return the specified value if a
149 signal or throw is caught. */ 149 signal or throw is caught. */
150// TODO: Have Fsignal check for CATCHER_ALL so we only have to install 150/* TODO: Have Fsignal check for CATCHER_ALL so we only have to install
151// one handler. 151 one handler. */
152#define MODULE_HANDLE_NONLOCAL_EXIT(retval) \ 152#define MODULE_HANDLE_NONLOCAL_EXIT(retval) \
153 MODULE_SETJMP (CONDITION_CASE, module_handle_signal, retval); \ 153 MODULE_SETJMP (CONDITION_CASE, module_handle_signal, retval); \
154 MODULE_SETJMP (CATCHER_ALL, module_handle_throw, retval) 154 MODULE_SETJMP (CATCHER_ALL, module_handle_throw, retval)
@@ -168,7 +168,7 @@ static emacs_value const module_nil = 0;
168 code after the macro may longjmp back into the macro, which means 168 code after the macro may longjmp back into the macro, which means
169 its local variable C must stay live in later code. */ 169 its local variable C must stay live in later code. */
170 170
171// TODO: Make backtraces work if this macros is used. 171/* TODO: Make backtraces work if this macros is used. */
172 172
173#define MODULE_SETJMP_1(handlertype, handlerfunc, retval, c, dummy) \ 173#define MODULE_SETJMP_1(handlertype, handlerfunc, retval, c, dummy) \
174 if (module_non_local_exit_check (env) != emacs_funcall_exit_return) \ 174 if (module_non_local_exit_check (env) != emacs_funcall_exit_return) \
diff --git a/src/emacs.c b/src/emacs.c
index d86c34fd1fd..efd4fa329df 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -2504,7 +2504,7 @@ Special values:
2504 `gnu' compiled for a GNU Hurd system. 2504 `gnu' compiled for a GNU Hurd system.
2505 `gnu/linux' compiled for a GNU/Linux system. 2505 `gnu/linux' compiled for a GNU/Linux system.
2506 `gnu/kfreebsd' compiled for a GNU system with a FreeBSD kernel. 2506 `gnu/kfreebsd' compiled for a GNU system with a FreeBSD kernel.
2507 `darwin' compiled for Darwin (GNU-Darwin, Mac OS X, ...). 2507 `darwin' compiled for Darwin (GNU-Darwin, macOS, ...).
2508 `ms-dos' compiled as an MS-DOS application. 2508 `ms-dos' compiled as an MS-DOS application.
2509 `windows-nt' compiled as a native W32 application. 2509 `windows-nt' compiled as a native W32 application.
2510 `cygwin' compiled using the Cygwin library. 2510 `cygwin' compiled using the Cygwin library.
diff --git a/src/frame.c b/src/frame.c
index 3a2d009d325..b1d89f396ec 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -5110,7 +5110,7 @@ Setting this variable does not affect existing frames, only new ones. */);
5110 doc: /* Default position of vertical scroll bars on this window-system. */); 5110 doc: /* Default position of vertical scroll bars on this window-system. */);
5111#ifdef HAVE_WINDOW_SYSTEM 5111#ifdef HAVE_WINDOW_SYSTEM
5112#if defined (HAVE_NTGUI) || defined (NS_IMPL_COCOA) || (defined (USE_GTK) && defined (USE_TOOLKIT_SCROLL_BARS)) 5112#if defined (HAVE_NTGUI) || defined (NS_IMPL_COCOA) || (defined (USE_GTK) && defined (USE_TOOLKIT_SCROLL_BARS))
5113 /* MS-Windows, Mac OS X, and GTK have scroll bars on the right by 5113 /* MS-Windows, macOS, and GTK have scroll bars on the right by
5114 default. */ 5114 default. */
5115 Vdefault_frame_scroll_bars = Qright; 5115 Vdefault_frame_scroll_bars = Qright;
5116#else 5116#else
diff --git a/src/gfilenotify.c b/src/gfilenotify.c
index 3b1f2fc516a..30d0753f7e7 100644
--- a/src/gfilenotify.c
+++ b/src/gfilenotify.c
@@ -105,7 +105,7 @@ dir_monitor_callback (GFileMonitor *monitor,
105 105
106 /* Store it into the input event queue. */ 106 /* Store it into the input event queue. */
107 kbd_buffer_store_event (&event); 107 kbd_buffer_store_event (&event);
108 // XD_DEBUG_MESSAGE ("%s", XD_OBJECT_TO_STRING (event.arg)); 108 /* XD_DEBUG_MESSAGE ("%s", XD_OBJECT_TO_STRING (event.arg)); */
109 } 109 }
110 110
111 /* Cancel monitor if file or directory is deleted. */ 111 /* Cancel monitor if file or directory is deleted. */
diff --git a/src/gtkutil.c b/src/gtkutil.c
index 986eca85587..3d35a3dee81 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -191,7 +191,7 @@ xg_display_open (char *display_name, Display **dpy)
191{ 191{
192 GdkDisplay *gdpy; 192 GdkDisplay *gdpy;
193 193
194 unrequest_sigio (); // See comment in x_display_ok, xterm.c. 194 unrequest_sigio (); /* See comment in x_display_ok, xterm.c. */
195 gdpy = gdk_display_open (display_name); 195 gdpy = gdk_display_open (display_name);
196 request_sigio (); 196 request_sigio ();
197 if (!gdpy_def && gdpy) 197 if (!gdpy_def && gdpy)
@@ -2386,7 +2386,7 @@ make_widget_for_menu_item (const char *utf8_label, const char *utf8_key)
2386 in the group. On exit, *GROUP contains the radio item group. 2386 in the group. On exit, *GROUP contains the radio item group.
2387 2387
2388 Unfortunately, keys don't line up as nicely as in Motif, 2388 Unfortunately, keys don't line up as nicely as in Motif,
2389 but the MacOS X version doesn't either, so I guess that is OK. */ 2389 but the macOS version doesn't either, so I guess that is OK. */
2390 2390
2391static GtkWidget * 2391static GtkWidget *
2392make_menu_item (const char *utf8_label, 2392make_menu_item (const char *utf8_label,
diff --git a/src/image.c b/src/image.c
index 1303a931263..d82fedb8dea 100644
--- a/src/image.c
+++ b/src/image.c
@@ -3718,7 +3718,7 @@ xpm_load (struct frame *f, struct image *img)
3718 } 3718 }
3719 3719
3720#ifdef USE_CAIRO 3720#ifdef USE_CAIRO
3721 // Load very specific Xpm:s. 3721 /* Load very specific Xpm:s. */
3722 if (rc == XpmSuccess 3722 if (rc == XpmSuccess
3723 && img->ximg->format == ZPixmap 3723 && img->ximg->format == ZPixmap
3724 && img->ximg->bits_per_pixel == 32 3724 && img->ximg->bits_per_pixel == 32
@@ -3742,7 +3742,7 @@ xpm_load (struct frame *f, struct image *img)
3742 int maskidx = mid ? i * img->mask_img->bytes_per_line + k/8 : 0; 3742 int maskidx = mid ? i * img->mask_img->bytes_per_line + k/8 : 0;
3743 int mask = mid ? mid[maskidx] & (1 << (k % 8)) : 1; 3743 int mask = mid ? mid[maskidx] & (1 << (k % 8)) : 1;
3744 3744
3745 if (mask) od[idx] = id[idx] + 0xff000000; // ff => full alpha 3745 if (mask) od[idx] = id[idx] + 0xff000000; /* ff => full alpha */
3746 else od[idx] = bgcolor; 3746 else od[idx] = bgcolor;
3747 } 3747 }
3748 } 3748 }
diff --git a/src/kqueue.c b/src/kqueue.c
index f45bd0c4c24..d1d0a612044 100644
--- a/src/kqueue.c
+++ b/src/kqueue.c
@@ -268,8 +268,6 @@ kqueue_compare_dir_list (Lisp_Object watch_object)
268 report_file_error ("New list not empty", new_dl); 268 report_file_error ("New list not empty", new_dl);
269 if (! NILP (pending_dl)) 269 if (! NILP (pending_dl))
270 report_file_error ("Pending events list not empty", pending_dl); 270 report_file_error ("Pending events list not empty", pending_dl);
271 // if (! NILP (deleted_dl))
272 // report_file_error ("Deleted events list not empty", deleted_dl);
273 271
274 /* Replace old directory listing with the new one. */ 272 /* Replace old directory listing with the new one. */
275 XSETCDR (Fnthcdr (make_number (3), watch_object), 273 XSETCDR (Fnthcdr (make_number (3), watch_object),
diff --git a/src/macfont.h b/src/macfont.h
index 6630fb526b7..8f734527a46 100644
--- a/src/macfont.h
+++ b/src/macfont.h
@@ -1,4 +1,4 @@
1/* Interface definition for Mac OSX Core text font backend. 1/* Interface definition for macOS Core text font backend.
2 Copyright (C) 2009-2016 Free Software Foundation, Inc. 2 Copyright (C) 2009-2016 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
diff --git a/src/macfont.m b/src/macfont.m
index d9bad034fe9..3af9edc148a 100644
--- a/src/macfont.m
+++ b/src/macfont.m
@@ -1,4 +1,4 @@
1/* Font driver on Mac OSX Core text. 1/* Font driver on macOS Core text.
2 Copyright (C) 2009-2016 Free Software Foundation, Inc. 2 Copyright (C) 2009-2016 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
@@ -1005,7 +1005,7 @@ macfont_set_family_cache (Lisp_Object symbol, CFStringRef string)
1005and those start with ".". NULL means the cache has been invalidated. 1005and those start with ".". NULL means the cache has been invalidated.
1006Otherwise, the value is CFArray of CFStrings and the elements are 1006Otherwise, the value is CFArray of CFStrings and the elements are
1007sorted in the canonical order (CTFontManagerCompareFontFamilyNames on 1007sorted in the canonical order (CTFontManagerCompareFontFamilyNames on
1008OS X 10.6 and later). */ 1008Mac OS X 10.6 and later). */
1009 1009
1010static CFArrayRef macfont_available_families_cache = NULL; 1010static CFArrayRef macfont_available_families_cache = NULL;
1011 1011
@@ -4057,7 +4057,7 @@ mac_register_font_driver (struct frame *f)
4057void 4057void
4058syms_of_macfont (void) 4058syms_of_macfont (void)
4059{ 4059{
4060 /* Core Text, for Mac OS X. */ 4060 /* Core Text, for macOS. */
4061 DEFSYM (Qmac_ct, "mac-ct"); 4061 DEFSYM (Qmac_ct, "mac-ct");
4062 macfont_driver.type = Qmac_ct; 4062 macfont_driver.type = Qmac_ct;
4063 register_font_driver (&macfont_driver, NULL); 4063 register_font_driver (&macfont_driver, NULL);
diff --git a/src/nsfns.m b/src/nsfns.m
index b8264608b34..cfaaf53cbc6 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -1,4 +1,4 @@
1/* Functions for the NeXT/Open/GNUstep and MacOSX window system. 1/* Functions for the NeXT/Open/GNUstep and macOS window system.
2 2
3Copyright (C) 1989, 1992-1994, 2005-2006, 2008-2016 Free Software 3Copyright (C) 1989, 1992-1994, 2005-2006, 2008-2016 Free Software
4Foundation, Inc. 4Foundation, Inc.
@@ -22,7 +22,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
22Originally by Carl Edman 22Originally by Carl Edman
23Updated by Christian Limpach (chris@nice.ch) 23Updated by Christian Limpach (chris@nice.ch)
24OpenStep/Rhapsody port by Scott Bender (sbender@harmony-ds.com) 24OpenStep/Rhapsody port by Scott Bender (sbender@harmony-ds.com)
25MacOSX/Aqua port by Christophe de Dinechin (descubes@earthlink.net) 25macOS/Aqua port by Christophe de Dinechin (descubes@earthlink.net)
26GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu) 26GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu)
27*/ 27*/
28 28
@@ -905,7 +905,7 @@ static void
905x_icon (struct frame *f, Lisp_Object parms) 905x_icon (struct frame *f, Lisp_Object parms)
906/* -------------------------------------------------------------------------- 906/* --------------------------------------------------------------------------
907 Strangely-named function to set icon position parameters in frame. 907 Strangely-named function to set icon position parameters in frame.
908 This is irrelevant under OS X, but might be needed under GNUstep, 908 This is irrelevant under macOS, but might be needed under GNUstep,
909 depending on the window manager used. Note, this is not a standard 909 depending on the window manager used. Note, this is not a standard
910 frame parameter-setter; it is called directly from x-create-frame. 910 frame parameter-setter; it is called directly from x-create-frame.
911 -------------------------------------------------------------------------- */ 911 -------------------------------------------------------------------------- */
@@ -2024,7 +2024,7 @@ DEFUN ("ns-list-services", Fns_list_services, Sns_list_services, 0, 0, 0,
2024 2024
2025 [svcs setAutoenablesItems: NO]; 2025 [svcs setAutoenablesItems: NO];
2026#ifdef NS_IMPL_COCOA 2026#ifdef NS_IMPL_COCOA
2027 [svcs update]; /* on OS X, converts from '/' structure */ 2027 [svcs update]; /* on macOS, converts from '/' structure */
2028#endif 2028#endif
2029 2029
2030 ret = interpret_services_menu (svcs, Qnil, ret); 2030 ret = interpret_services_menu (svcs, Qnil, ret);
diff --git a/src/nsfont.m b/src/nsfont.m
index be7d2ec36b9..389d0ed7aa4 100644
--- a/src/nsfont.m
+++ b/src/nsfont.m
@@ -1,4 +1,4 @@
1/* Font back-end driver for the NeXT/Open/GNUstep and MacOSX window system. 1/* Font back-end driver for the NeXT/Open/GNUstep and macOS window system.
2 See font.h 2 See font.h
3 Copyright (C) 2006-2016 Free Software Foundation, Inc. 3 Copyright (C) 2006-2016 Free Software Foundation, Inc.
4 4
@@ -497,7 +497,7 @@ static NSSet
497 { 497 {
498 NSCharacterSet *fset = [[fontMgr fontWithFamily: family 498 NSCharacterSet *fset = [[fontMgr fontWithFamily: family
499 traits: 0 weight: 5 size: 12.0] coveredCharacterSet]; 499 traits: 0 weight: 5 size: 12.0] coveredCharacterSet];
500 /* Some fonts on OS X, maybe many on GNUstep, return nil. */ 500 /* Some fonts on macOS, maybe many on GNUstep, return nil. */
501 if (fset == nil) 501 if (fset == nil)
502 fset = [NSCharacterSet characterSetWithRange: 502 fset = [NSCharacterSet characterSetWithRange:
503 NSMakeRange (0, 127)]; 503 NSMakeRange (0, 127)];
diff --git a/src/nsimage.m b/src/nsimage.m
index 6d1b3937f94..32bcea76ccd 100644
--- a/src/nsimage.m
+++ b/src/nsimage.m
@@ -1,4 +1,4 @@
1/* Image support for the NeXT/Open/GNUstep and MacOSX window system. 1/* Image support for the NeXT/Open/GNUstep and macOS window system.
2 Copyright (C) 1989, 1992-1994, 2005-2006, 2008-2016 Free Software 2 Copyright (C) 1989, 1992-1994, 2005-2006, 2008-2016 Free Software
3 Foundation, Inc. 3 Foundation, Inc.
4 4
@@ -21,7 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
21Originally by Carl Edman 21Originally by Carl Edman
22Updated by Christian Limpach (chris@nice.ch) 22Updated by Christian Limpach (chris@nice.ch)
23OpenStep/Rhapsody port by Scott Bender (sbender@harmony-ds.com) 23OpenStep/Rhapsody port by Scott Bender (sbender@harmony-ds.com)
24MacOSX/Aqua port by Christophe de Dinechin (descubes@earthlink.net) 24macOS/Aqua port by Christophe de Dinechin (descubes@earthlink.net)
25GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu) 25GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu)
26*/ 26*/
27 27
diff --git a/src/nsmenu.m b/src/nsmenu.m
index 470d6d0dbcf..3e9887acf5d 100644
--- a/src/nsmenu.m
+++ b/src/nsmenu.m
@@ -1,4 +1,4 @@
1/* NeXT/Open/GNUstep and MacOSX Cocoa menu and toolbar module. 1/* NeXT/Open/GNUstep and macOS Cocoa menu and toolbar module.
2 Copyright (C) 2007-2016 Free Software Foundation, Inc. 2 Copyright (C) 2007-2016 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
@@ -92,7 +92,7 @@ popup_activated (void)
92/* -------------------------------------------------------------------------- 92/* --------------------------------------------------------------------------
93 Update menubar. Three cases: 93 Update menubar. Three cases:
94 1) ! deep_p, submenu = nil: Fresh switch onto a frame -- either set up 94 1) ! deep_p, submenu = nil: Fresh switch onto a frame -- either set up
95 just top-level menu strings (OS X), or goto case (2) (GNUstep). 95 just top-level menu strings (macOS), or goto case (2) (GNUstep).
96 2) deep_p, submenu = nil: Recompute all submenus. 96 2) deep_p, submenu = nil: Recompute all submenus.
97 3) deep_p, submenu = non-nil: Update contents of a single submenu. 97 3) deep_p, submenu = non-nil: Update contents of a single submenu.
98 -------------------------------------------------------------------------- */ 98 -------------------------------------------------------------------------- */
@@ -577,7 +577,7 @@ x_activate_menubar (struct frame *f)
577 return; 577 return;
578/*fprintf (stderr, "Updating menu '%s'\n", [[self title] UTF8String]); NSLog (@"%@\n", event); */ 578/*fprintf (stderr, "Updating menu '%s'\n", [[self title] UTF8String]); NSLog (@"%@\n", event); */
579#ifdef NS_IMPL_GNUSTEP 579#ifdef NS_IMPL_GNUSTEP
580 /* Don't know how to do this for anything other than OSX >= 10.5 580 /* Don't know how to do this for anything other than Mac OS X 10.5 and later.
581 This is wrong, as it might run Lisp code in the event loop. */ 581 This is wrong, as it might run Lisp code in the event loop. */
582 ns_update_menubar (frame, true, self); 582 ns_update_menubar (frame, true, self);
583#endif 583#endif
@@ -638,7 +638,7 @@ x_activate_menubar (struct frame *f)
638 638
639 keyEq = [self parseKeyEquiv: wv->key]; 639 keyEq = [self parseKeyEquiv: wv->key];
640#ifdef NS_IMPL_COCOA 640#ifdef NS_IMPL_COCOA
641 /* OS X just ignores modifier strings longer than one character */ 641 /* macOS just ignores modifier strings longer than one character */
642 if (keyEquivModMask == 0) 642 if (keyEquivModMask == 0)
643 title = [title stringByAppendingFormat: @" (%@)", keyEq]; 643 title = [title stringByAppendingFormat: @" (%@)", keyEq];
644#endif 644#endif
@@ -1048,9 +1048,9 @@ update_frame_tool_bar (struct frame *f)
1048 /* Check if this is a separator. */ 1048 /* Check if this is a separator. */
1049 if (EQ (TOOLPROP (TOOL_BAR_ITEM_TYPE), Qt)) 1049 if (EQ (TOOLPROP (TOOL_BAR_ITEM_TYPE), Qt))
1050 { 1050 {
1051 /* Skip separators. Newer OSX don't show them, and on GNUstep they 1051 /* Skip separators. Newer macOS don't show them, and on
1052 are wide as a button, thus overflowing the toolbar most of 1052 GNUstep they are wide as a button, thus overflowing the
1053 the time. */ 1053 toolbar most of the time. */
1054 continue; 1054 continue;
1055 } 1055 }
1056 1056
diff --git a/src/nsselect.m b/src/nsselect.m
index eba23932e65..b7c9148ee05 100644
--- a/src/nsselect.m
+++ b/src/nsselect.m
@@ -1,4 +1,4 @@
1/* NeXT/Open/GNUstep / MacOSX Cocoa selection processing for emacs. 1/* NeXT/Open/GNUstep / macOS Cocoa selection processing for emacs.
2 Copyright (C) 1993-1994, 2005-2006, 2008-2016 Free Software 2 Copyright (C) 1993-1994, 2005-2006, 2008-2016 Free Software
3 Foundation, Inc. 3 Foundation, Inc.
4 4
@@ -21,7 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
21Originally by Carl Edman 21Originally by Carl Edman
22Updated by Christian Limpach (chris@nice.ch) 22Updated by Christian Limpach (chris@nice.ch)
23OpenStep/Rhapsody port by Scott Bender (sbender@harmony-ds.com) 23OpenStep/Rhapsody port by Scott Bender (sbender@harmony-ds.com)
24MacOSX/Aqua port by Christophe de Dinechin (descubes@earthlink.net) 24macOS/Aqua port by Christophe de Dinechin (descubes@earthlink.net)
25GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu) 25GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu)
26*/ 26*/
27 27
diff --git a/src/nsterm.m b/src/nsterm.m
index 1b44a73cd8b..7e6ec85abf1 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -1,4 +1,4 @@
1/* NeXT/Open/GNUstep / MacOSX communication module. -*- coding: utf-8 -*- 1/* NeXT/Open/GNUstep / macOS communication module. -*- coding: utf-8 -*-
2 2
3Copyright (C) 1989, 1993-1994, 2005-2006, 2008-2016 Free Software 3Copyright (C) 1989, 1993-1994, 2005-2006, 2008-2016 Free Software
4Foundation, Inc. 4Foundation, Inc.
@@ -22,7 +22,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
22Originally by Carl Edman 22Originally by Carl Edman
23Updated by Christian Limpach (chris@nice.ch) 23Updated by Christian Limpach (chris@nice.ch)
24OpenStep/Rhapsody port by Scott Bender (sbender@harmony-ds.com) 24OpenStep/Rhapsody port by Scott Bender (sbender@harmony-ds.com)
25MacOSX/Aqua port by Christophe de Dinechin (descubes@earthlink.net) 25macOS/Aqua port by Christophe de Dinechin (descubes@earthlink.net)
26GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu) 26GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu)
27*/ 27*/
28 28
@@ -251,7 +251,7 @@ static unsigned convert_ns_to_X_keysym[] =
251 0x1B, 0x1B /* escape */ 251 0x1B, 0x1B /* escape */
252}; 252};
253 253
254/* On OS X picks up the default NSGlobalDomain AppleAntiAliasingThreshold, 254/* On macOS picks up the default NSGlobalDomain AppleAntiAliasingThreshold,
255 the maximum font size to NOT antialias. On GNUstep there is currently 255 the maximum font size to NOT antialias. On GNUstep there is currently
256 no way to control this behavior. */ 256 no way to control this behavior. */
257float ns_antialias_threshold; 257float ns_antialias_threshold;
@@ -588,7 +588,7 @@ ns_load_path (void)
588 588
589void 589void
590ns_init_locale (void) 590ns_init_locale (void)
591/* OS X doesn't set any environment variables for the locale when run 591/* macOS doesn't set any environment variables for the locale when run
592 from the GUI. Get the locale from the OS and set LANG. */ 592 from the GUI. Get the locale from the OS and set LANG. */
593{ 593{
594 NSLocale *locale = [NSLocale currentLocale]; 594 NSLocale *locale = [NSLocale currentLocale];
@@ -597,7 +597,7 @@ ns_init_locale (void)
597 597
598 @try 598 @try
599 { 599 {
600 /* It seems OS X should probably use UTF-8 everywhere. 600 /* It seems macOS should probably use UTF-8 everywhere.
601 'localeIdentifier' does not specify the encoding, and I can't 601 'localeIdentifier' does not specify the encoding, and I can't
602 find any way to get the OS to tell us which encoding to use, 602 find any way to get the OS to tell us which encoding to use,
603 so hard-code '.UTF-8'. */ 603 so hard-code '.UTF-8'. */
@@ -719,7 +719,7 @@ ns_screen_margins (NSScreen *screen)
719 719
720 720
721/* A screen margin between 1 and DOCK_IGNORE_LIMIT (inclusive) is 721/* A screen margin between 1 and DOCK_IGNORE_LIMIT (inclusive) is
722 assumed to contain a hidden dock. OS X currently use 4 pixels for 722 assumed to contain a hidden dock. macOS currently use 4 pixels for
723 this, however, to be future compatible, a larger value is used. */ 723 this, however, to be future compatible, a larger value is used. */
724#define DOCK_IGNORE_LIMIT 6 724#define DOCK_IGNORE_LIMIT 6
725 725
@@ -732,7 +732,7 @@ reserved for an hidden dock. */
732 732
733 struct EmacsMargins margins = ns_screen_margins(screen); 733 struct EmacsMargins margins = ns_screen_margins(screen);
734 734
735 /* OS X (currently) reserved 4 pixels along the edge where a hidden 735 /* macOS (currently) reserved 4 pixels along the edge where a hidden
736 dock is located. Unfortunately, it's not possible to find the 736 dock is located. Unfortunately, it's not possible to find the
737 location and information about if the dock is hidden. Instead, 737 location and information about if the dock is hidden. Instead,
738 it is assumed that if the margin of an edge is less than 738 it is assumed that if the margin of an edge is less than
@@ -749,7 +749,7 @@ reserved for an hidden dock. */
749 { 749 {
750 margins.top = 0; 750 margins.top = 0;
751 } 751 }
752 /* Note: This doesn't occur in current versions of OS X, but 752 /* Note: This doesn't occur in current versions of macOS, but
753 included for completeness and future compatibility. */ 753 included for completeness and future compatibility. */
754 if (margins.bottom <= DOCK_IGNORE_LIMIT) 754 if (margins.bottom <= DOCK_IGNORE_LIMIT)
755 { 755 {
@@ -1028,7 +1028,7 @@ ns_update_begin (struct frame *f)
1028#ifdef NS_IMPL_COCOA 1028#ifdef NS_IMPL_COCOA
1029 if ([view isFullscreen] && [view fsIsNative]) 1029 if ([view isFullscreen] && [view fsIsNative])
1030 { 1030 {
1031 // Fix reappearing tool bar in fullscreen for OSX 10.7 1031 // Fix reappearing tool bar in fullscreen for Mac OS X 10.7
1032 BOOL tbar_visible = FRAME_EXTERNAL_TOOL_BAR (f) ? YES : NO; 1032 BOOL tbar_visible = FRAME_EXTERNAL_TOOL_BAR (f) ? YES : NO;
1033 NSToolbar *toolbar = [FRAME_NS_VIEW (f) toolbar]; 1033 NSToolbar *toolbar = [FRAME_NS_VIEW (f) toolbar];
1034 if (! tbar_visible != ! [toolbar isVisible]) 1034 if (! tbar_visible != ! [toolbar isVisible])
@@ -1940,8 +1940,8 @@ ns_get_color (const char *name, NSColor **col)
1940 } 1940 }
1941 else if ([nsname isEqualToString: @"ns_selection_fg_color"]) 1941 else if ([nsname isEqualToString: @"ns_selection_fg_color"])
1942 { 1942 {
1943 /* NOTE: OSX applications normally don't set foreground selection, but 1943 /* NOTE: macOS applications normally don't set foreground
1944 text may be unreadable if we don't. 1944 selection, but text may be unreadable if we don't.
1945 */ 1945 */
1946 if ((new = [NSColor selectedTextColor]) != nil) 1946 if ((new = [NSColor selectedTextColor]) != nil)
1947 { 1947 {
@@ -3879,7 +3879,7 @@ ns_send_appdefined (int value)
3879#ifdef NS_IMPL_COCOA 3879#ifdef NS_IMPL_COCOA
3880 if (! send_appdefined) 3880 if (! send_appdefined)
3881 { 3881 {
3882 /* OSX 10.10.1 swallows the AppDefined event we are sending ourselves 3882 /* OS X 10.10.1 swallows the AppDefined event we are sending ourselves
3883 in certain situations (rapid incoming events). 3883 in certain situations (rapid incoming events).
3884 So check if we have one, if not add one. */ 3884 So check if we have one, if not add one. */
3885 NSEvent *appev = [NSApp nextEventMatchingMask:NSEventMaskApplicationDefined 3885 NSEvent *appev = [NSApp nextEventMatchingMask:NSEventMaskApplicationDefined
@@ -4758,7 +4758,7 @@ ns_term_init (Lisp_Object display_name)
4758 [outerpool release]; 4758 [outerpool release];
4759 outerpool = [[NSAutoreleasePool alloc] init]; 4759 outerpool = [[NSAutoreleasePool alloc] init];
4760 4760
4761 /* count object allocs (About, click icon); on OS X use ObjectAlloc tool */ 4761 /* count object allocs (About, click icon); on macOS use ObjectAlloc tool */
4762 /*GSDebugAllocationActive (YES); */ 4762 /*GSDebugAllocationActive (YES); */
4763 block_input (); 4763 block_input ();
4764 4764
@@ -4887,7 +4887,7 @@ ns_term_init (Lisp_Object display_name)
4887 4887
4888 ns_app_name = [[NSProcessInfo processInfo] processName]; 4888 ns_app_name = [[NSProcessInfo processInfo] processName];
4889 4889
4890 /* Set up OS X app menu */ 4890 /* Set up macOS app menu */
4891 4891
4892 NSTRACE_MSG ("Menu init"); 4892 NSTRACE_MSG ("Menu init");
4893 4893
@@ -4959,7 +4959,7 @@ ns_term_init (Lisp_Object display_name)
4959 selector: @selector (trackingNotification:) 4959 selector: @selector (trackingNotification:)
4960 name: NSMenuDidEndTrackingNotification object: mainMenu]; 4960 name: NSMenuDidEndTrackingNotification object: mainMenu];
4961 } 4961 }
4962#endif /* MAC OS X menu setup */ 4962#endif /* macOS menu setup */
4963 4963
4964 /* Register our external input/output types, used for determining 4964 /* Register our external input/output types, used for determining
4965 applicable services and also drag/drop eligibility. */ 4965 applicable services and also drag/drop eligibility. */
@@ -5187,7 +5187,7 @@ ns_term_shutdown (int sig)
5187 5187
5188#ifdef NS_IMPL_COCOA 5188#ifdef NS_IMPL_COCOA
5189 /* If no dialog and none of our frames have focus and it is a move, skip it. 5189 /* If no dialog and none of our frames have focus and it is a move, skip it.
5190 It is a mouse move in an auxiliary menu, i.e. on the top right on OSX, 5190 It is a mouse move in an auxiliary menu, i.e. on the top right on macOS,
5191 such as Wifi, sound, date or similar. 5191 such as Wifi, sound, date or similar.
5192 This prevents "spooky" highlighting in the frame under the menu. */ 5192 This prevents "spooky" highlighting in the frame under the menu. */
5193 if (type == NSEventTypeMouseMoved && [NSApp modalWindow] == nil) 5193 if (type == NSEventTypeMouseMoved && [NSApp modalWindow] == nil)
@@ -5722,7 +5722,7 @@ not_in_argv (NSString *arg)
5722 5722
5723 NSTRACE ("[EmacsView keyDown:]"); 5723 NSTRACE ("[EmacsView keyDown:]");
5724 5724
5725 /* Rhapsody and OS X give up and down events for the arrow keys */ 5725 /* Rhapsody and macOS give up and down events for the arrow keys */
5726 if (ns_fake_keydown == YES) 5726 if (ns_fake_keydown == YES)
5727 ns_fake_keydown = NO; 5727 ns_fake_keydown = NO;
5728 else if ([theEvent type] != NSEventTypeKeyDown) 5728 else if ([theEvent type] != NSEventTypeKeyDown)
@@ -5956,7 +5956,7 @@ not_in_argv (NSString *arg)
5956 5956
5957 5957
5958#ifdef NS_IMPL_COCOA 5958#ifdef NS_IMPL_COCOA
5959/* Needed to pick up Ctrl-tab and possibly other events that OS X has 5959/* Needed to pick up Ctrl-tab and possibly other events that Mac OS X
5960 decided not to send key-down for. 5960 decided not to send key-down for.
5961 See http://osdir.com/ml/editors.vim.mac/2007-10/msg00141.html 5961 See http://osdir.com/ml/editors.vim.mac/2007-10/msg00141.html
5962 This only applies on Tiger and earlier. 5962 This only applies on Tiger and earlier.
@@ -7121,8 +7121,8 @@ not_in_argv (NSString *arg)
7121#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7 7121#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7
7122 unsigned val = (unsigned)[NSApp presentationOptions]; 7122 unsigned val = (unsigned)[NSApp presentationOptions];
7123 7123
7124 // OSX 10.7 bug fix, the menu won't appear without this. 7124 // Mac OS X 10.7 bug fix, the menu won't appear without this.
7125 // val is non-zero on other OSX versions. 7125 // val is non-zero on other macOS versions.
7126 if (val == 0) 7126 if (val == 0)
7127 { 7127 {
7128 NSApplicationPresentationOptions options 7128 NSApplicationPresentationOptions options
@@ -7546,7 +7546,7 @@ not_in_argv (NSString *arg)
7546 unblock_input (); 7546 unblock_input ();
7547 7547
7548 /* 7548 /*
7549 drawRect: may be called (at least in OS X 10.5) for invisible 7549 drawRect: may be called (at least in Mac OS X 10.5) for invisible
7550 views as well for some reason. Thus, do not infer visibility 7550 views as well for some reason. Thus, do not infer visibility
7551 here. 7551 here.
7552 7552
@@ -8071,7 +8071,7 @@ not_in_argv (NSString *arg)
8071 [self setEnabled: YES]; 8071 [self setEnabled: YES];
8072 8072
8073 /* Ensure auto resizing of scrollbars occurs within the emacs frame's view 8073 /* Ensure auto resizing of scrollbars occurs within the emacs frame's view
8074 locked against the top and bottom edges, and right edge on OS X, where 8074 locked against the top and bottom edges, and right edge on macOS, where
8075 scrollers are on right. */ 8075 scrollers are on right. */
8076#ifdef NS_IMPL_GNUSTEP 8076#ifdef NS_IMPL_GNUSTEP
8077 [self setAutoresizingMask: NSViewMaxXMargin | NSViewHeightSizable]; 8077 [self setAutoresizingMask: NSViewMaxXMargin | NSViewHeightSizable];
@@ -8732,14 +8732,14 @@ allowing it to be used at a lower level for accented character entry.");
8732 8732
8733 DEFVAR_LISP ("ns-auto-hide-menu-bar", ns_auto_hide_menu_bar, 8733 DEFVAR_LISP ("ns-auto-hide-menu-bar", ns_auto_hide_menu_bar,
8734 doc: /* Non-nil means that the menu bar is hidden, but appears when the mouse is near. 8734 doc: /* Non-nil means that the menu bar is hidden, but appears when the mouse is near.
8735Only works on OSX 10.6 or later. */); 8735Only works on Mac OS X 10.6 or later. */);
8736 ns_auto_hide_menu_bar = Qnil; 8736 ns_auto_hide_menu_bar = Qnil;
8737 8737
8738 DEFVAR_BOOL ("ns-use-native-fullscreen", ns_use_native_fullscreen, 8738 DEFVAR_BOOL ("ns-use-native-fullscreen", ns_use_native_fullscreen,
8739 doc: /*Non-nil means to use native fullscreen on OSX >= 10.7. 8739 doc: /*Non-nil means to use native fullscreen on Mac OS X 10.7 and later.
8740Nil means use fullscreen the old (< 10.7) way. The old way works better with 8740Nil means use fullscreen the old (< 10.7) way. The old way works better with
8741multiple monitors, but lacks tool bar. This variable is ignored on OSX < 10.7. 8741multiple monitors, but lacks tool bar. This variable is ignored on
8742Default is t for OSX >= 10.7, nil otherwise. */); 8742Mac OS X < 10.7. Default is t for 10.7 and later, nil otherwise. */);
8743#ifdef HAVE_NATIVE_FS 8743#ifdef HAVE_NATIVE_FS
8744 ns_use_native_fullscreen = YES; 8744 ns_use_native_fullscreen = YES;
8745#else 8745#else
@@ -8754,9 +8754,9 @@ Default is nil. */);
8754 ns_use_fullscreen_animation = NO; 8754 ns_use_fullscreen_animation = NO;
8755 8755
8756 DEFVAR_BOOL ("ns-use-srgb-colorspace", ns_use_srgb_colorspace, 8756 DEFVAR_BOOL ("ns-use-srgb-colorspace", ns_use_srgb_colorspace,
8757 doc: /*Non-nil means to use sRGB colorspace on OSX >= 10.7. 8757 doc: /*Non-nil means to use sRGB colorspace on Mac OS X 10.7 and later.
8758Note that this does not apply to images. 8758Note that this does not apply to images.
8759This variable is ignored on OSX < 10.7 and GNUstep. */); 8759This variable is ignored on Mac OS X < 10.7 and GNUstep. */);
8760 ns_use_srgb_colorspace = YES; 8760 ns_use_srgb_colorspace = YES;
8761 8761
8762 /* TODO: move to common code */ 8762 /* TODO: move to common code */
diff --git a/src/sysdep.c b/src/sysdep.c
index 55d29bcc814..892e97626bd 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -2426,7 +2426,7 @@ posix_close (int fd, int flag)
2426 closed, and retrying the close could inadvertently close a file 2426 closed, and retrying the close could inadvertently close a file
2427 descriptor allocated by some other thread. In other systems 2427 descriptor allocated by some other thread. In other systems
2428 (e.g., HP/UX) FD is not closed. And in still other systems 2428 (e.g., HP/UX) FD is not closed. And in still other systems
2429 (e.g., OS X, Solaris), maybe FD is closed, maybe not, and in a 2429 (e.g., macOS, Solaris), maybe FD is closed, maybe not, and in a
2430 multithreaded program there can be no way to tell. 2430 multithreaded program there can be no way to tell.
2431 2431
2432 So, in this case, pretend that the close succeeded. This works 2432 So, in this case, pretend that the close succeeded. This works
diff --git a/src/unexmacosx.c b/src/unexmacosx.c
index ea8e884f177..5584e693f75 100644
--- a/src/unexmacosx.c
+++ b/src/unexmacosx.c
@@ -1,4 +1,4 @@
1/* Dump Emacs in Mach-O format for use on Mac OS X. 1/* Dump Emacs in Mach-O format for use on macOS.
2 Copyright (C) 2001-2016 Free Software Foundation, Inc. 2 Copyright (C) 2001-2016 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
@@ -24,7 +24,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
24 Mach-O format: the file loader.h, man pages for Mach-O and ld, old 24 Mach-O format: the file loader.h, man pages for Mach-O and ld, old
25 NEXTSTEP documents of the Mach-O format. The tool otool dumps the 25 NEXTSTEP documents of the Mach-O format. The tool otool dumps the
26 mach header (-h option) and the load commands (-l option) in a 26 mach header (-h option) and the load commands (-l option) in a
27 Mach-O file. The tool nm on Mac OS X displays the symbol table in 27 Mach-O file. The tool nm on macOS displays the symbol table in
28 a Mach-O file. For examples of unexec for the Mach-O format, see 28 a Mach-O file. For examples of unexec for the Mach-O format, see
29 the file unexnext.c in the GNU Emacs distribution, the file 29 the file unexnext.c in the GNU Emacs distribution, the file
30 unexdyld.c in the Darwin port of GNU Emacs 20.7, and unexdyld.c in 30 unexdyld.c in the Darwin port of GNU Emacs 20.7, and unexdyld.c in
@@ -33,7 +33,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
33 Read that to see what they do. This file was written completely 33 Read that to see what they do. This file was written completely
34 from scratch, making use of information from the above sources. */ 34 from scratch, making use of information from the above sources. */
35 35
36/* The Mac OS X implementation of unexec makes use of Darwin's `zone' 36/* The macOS implementation of unexec makes use of Darwin's `zone'
37 memory allocator. All calls to malloc, realloc, and free in Emacs 37 memory allocator. All calls to malloc, realloc, and free in Emacs
38 are redirected to unexec_malloc, unexec_realloc, and unexec_free in 38 are redirected to unexec_malloc, unexec_realloc, and unexec_free in
39 this file. When temacs is run, all memory requests are handled in 39 this file. When temacs is run, all memory requests are handled in
@@ -49,7 +49,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
49 block must be obtained by malloc and the old contents copied to 49 block must be obtained by malloc and the old contents copied to
50 it. */ 50 it. */
51 51
52/* Peculiarity of the Mach-O files generated by ld in Mac OS X 52/* Peculiarity of the Mach-O files generated by ld in macOS
53 (possible causes of future bugs if changed). 53 (possible causes of future bugs if changed).
54 54
55 The file offset of the start of the __TEXT segment is zero. Since 55 The file offset of the start of the __TEXT segment is zero. Since
@@ -117,9 +117,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
117 117
118#include <assert.h> 118#include <assert.h>
119 119
120/* LC_DATA_IN_CODE is not defined in mach-o/loader.h on OS X 10.7. 120/* LC_DATA_IN_CODE is not defined in mach-o/loader.h on Mac OS X 10.7.
121 But it is used if we build with "Command Line Tools for Xcode 4.5 121 But it is used if we build with "Command Line Tools for Xcode 4.5
122 (OS X Lion) - September 2012". */ 122 (Mac OS X Lion) - September 2012". */
123#ifndef LC_DATA_IN_CODE 123#ifndef LC_DATA_IN_CODE
124#define LC_DATA_IN_CODE 0x29 /* table of non-instructions in __text */ 124#define LC_DATA_IN_CODE 0x29 /* table of non-instructions in __text */
125#endif 125#endif
diff --git a/src/w32fns.c b/src/w32fns.c
index 1d83b02d629..8c8272b16d4 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -7328,7 +7328,7 @@ value of DIR as in previous invocations; this is standard Windows behavior. */)
7328 } new_file_details_w; 7328 } new_file_details_w;
7329 7329
7330#ifdef NTGUI_UNICODE 7330#ifdef NTGUI_UNICODE
7331 wchar_t filename_buf_w[32*1024 + 1]; // NT kernel maximum 7331 wchar_t filename_buf_w[32*1024 + 1]; /* NT kernel maximum */
7332 OPENFILENAMEW * file_details_w = &new_file_details_w.details; 7332 OPENFILENAMEW * file_details_w = &new_file_details_w.details;
7333 const int use_unicode = 1; 7333 const int use_unicode = 1;
7334#else /* not NTGUI_UNICODE */ 7334#else /* not NTGUI_UNICODE */
diff --git a/src/xdisp.c b/src/xdisp.c
index 6e8af8aaf0a..c045ced000b 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -24565,7 +24565,7 @@ calc_pixel_width_or_height (double *res, struct it *it, Lisp_Object prop,
24565 } 24565 }
24566 if (FRAME_WINDOW_P (it->f) && valid_xwidget_spec_p (prop)) 24566 if (FRAME_WINDOW_P (it->f) && valid_xwidget_spec_p (prop))
24567 { 24567 {
24568 // TODO: Don't return dummy size. 24568 /* TODO: Don't return dummy size. */
24569 return OK_PIXELS (100); 24569 return OK_PIXELS (100);
24570 } 24570 }
24571#endif 24571#endif
diff --git a/src/xselect.c b/src/xselect.c
index 93b81b9fca1..b997cc887ef 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -693,7 +693,7 @@ x_reply_selection_request (struct selection_input_event *event,
693 : format_bytes); 693 : format_bytes);
694 XFlush (display); 694 XFlush (display);
695 had_errors_p = x_had_errors_p (display); 695 had_errors_p = x_had_errors_p (display);
696 // See comment above about property_change_reply. 696 /* See comment above about property_change_reply. */
697 set_property_change_object (cs->wait_object); 697 set_property_change_object (cs->wait_object);
698 unblock_input (); 698 unblock_input ();
699 699
@@ -1393,7 +1393,7 @@ receive_incremental_selection (struct x_display_info *dpyinfo,
1393 wait_object = expect_property_change (display, window, property, 1393 wait_object = expect_property_change (display, window, property,
1394 PropertyNewValue); 1394 PropertyNewValue);
1395 XFlush (display); 1395 XFlush (display);
1396 // See comment in x_reply_selection_request about property_change_reply. 1396 /* See comment in x_reply_selection_request about property_change_reply. */
1397 set_property_change_object (wait_object); 1397 set_property_change_object (wait_object);
1398 unblock_input (); 1398 unblock_input ();
1399 1399
@@ -1433,7 +1433,8 @@ receive_incremental_selection (struct x_display_info *dpyinfo,
1433 XDeleteProperty (display, window, property); 1433 XDeleteProperty (display, window, property);
1434 wait_object = expect_property_change (display, window, property, 1434 wait_object = expect_property_change (display, window, property,
1435 PropertyNewValue); 1435 PropertyNewValue);
1436 // See comment in x_reply_selection_request about property_change_reply. 1436 /* See comment in x_reply_selection_request about
1437 property_change_reply. */
1437 set_property_change_object (wait_object); 1438 set_property_change_object (wait_object);
1438 XFlush (display); 1439 XFlush (display);
1439 unblock_input (); 1440 unblock_input ();
diff --git a/src/xsmfns.c b/src/xsmfns.c
index a7ec8e0c7e2..95ede642130 100644
--- a/src/xsmfns.c
+++ b/src/xsmfns.c
@@ -170,7 +170,7 @@ smc_save_yourself_CB (SmcConn smcConn,
170 char *smid_opt, *chdir_opt = NULL; 170 char *smid_opt, *chdir_opt = NULL;
171 Lisp_Object user_login_name = Fuser_login_name (Qnil); 171 Lisp_Object user_login_name = Fuser_login_name (Qnil);
172 172
173 // Must have these. 173 /* Must have these. */
174 if (! STRINGP (Vinvocation_name) || ! STRINGP (user_login_name)) 174 if (! STRINGP (Vinvocation_name) || ! STRINGP (user_login_name))
175 return; 175 return;
176 176
diff --git a/src/xterm.c b/src/xterm.c
index d6e1fe2190c..bdc21e6de02 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -12063,7 +12063,7 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
12063 12063
12064#else /* not USE_X_TOOLKIT */ 12064#else /* not USE_X_TOOLKIT */
12065 XSetLocaleModifiers (""); 12065 XSetLocaleModifiers ("");
12066 unrequest_sigio (); // See comment in x_display_ok. 12066 unrequest_sigio (); /* See comment in x_display_ok. */
12067 dpy = XOpenDisplay (SSDATA (display_name)); 12067 dpy = XOpenDisplay (SSDATA (display_name));
12068 request_sigio (); 12068 request_sigio ();
12069#endif /* not USE_X_TOOLKIT */ 12069#endif /* not USE_X_TOOLKIT */