aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--INSTALL4
-rw-r--r--Makefile.in2
-rw-r--r--README5
-rw-r--r--admin/CPP-DEFINES4
-rw-r--r--configure.ac20
-rw-r--r--doc/emacs/cmdargs.texi4
-rw-r--r--doc/emacs/macos.texi14
-rw-r--r--doc/emacs/msdos.texi2
-rw-r--r--doc/emacs/mule.texi8
-rw-r--r--doc/lispref/display.texi2
-rw-r--r--doc/lispref/nonascii.texi3
-rw-r--r--doc/lispref/os.texi2
-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/NEWS26
-rw-r--r--etc/NEWS.224
-rw-r--r--etc/NEWS.2410
-rw-r--r--etc/NEXTSTEP30
-rw-r--r--etc/ORG-NEWS2
-rw-r--r--etc/PROBLEMS2
-rw-r--r--etc/TODO23
-rw-r--r--lib-src/Makefile.in2
-rw-r--r--lisp/arc-mode.el2
-rw-r--r--lisp/battery.el6
-rw-r--r--lisp/cedet/semantic/bovine/gcc.el2
-rw-r--r--lisp/faces.el2
-rw-r--r--lisp/gnus/auth-source.el16
-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/printing.el2
-rw-r--r--lisp/progmodes/gdb-mi.el10
-rw-r--r--lisp/progmodes/idlwave.el18
-rw-r--r--lisp/progmodes/python.el2
-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--src/coding.c2
-rw-r--r--src/conf_post.h2
-rw-r--r--src/emacs.c2
-rw-r--r--src/frame.c2
-rw-r--r--src/gtkutil.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
73 files changed, 253 insertions, 254 deletions
diff --git a/INSTALL b/INSTALL
index 119b4d4dd1d..ade9bcbf463 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 b3f7edb2eaa..9600c1199ab 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 35a31dbd31e..d227ec59cc7 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 796b57db3d8..cf8360316c2 100644
--- a/admin/CPP-DEFINES
+++ b/admin/CPP-DEFINES
@@ -22,7 +22,7 @@ WINDOWSNT Compiling the native MS-Windows (W32) port.
22__MINGW32__ Compiling the W32 port with the MinGW or MinGW-w64 ports of GCC. 22__MINGW32__ Compiling the W32 port with the MinGW or MinGW-w64 ports of GCC.
23_MSC_VER Compiling the W32 port with the Microsoft C compiler. 23_MSC_VER Compiling the W32 port with the Microsoft C compiler.
24MINGW_W64 Compiling the W32 port with the MinGW-w64 port of GCC. 24MINGW_W64 Compiling the W32 port with the MinGW-w64 port of GCC.
25DARWIN_OS Compiling on Mac OS X or pure Darwin (and using s/darwin.h). 25DARWIN_OS Compiling on macOS or pure Darwin (and using s/darwin.h).
26SOLARIS2 26SOLARIS2
27USG 27USG
28USG5_4 28USG5_4
@@ -30,7 +30,7 @@ USG5_4
30** Distinguishing GUIs ** 30** Distinguishing GUIs **
31 31
32HAVE_NTGUI Use the native W32 GUI for windows, frames, menus&scrollbars. 32HAVE_NTGUI Use the native W32 GUI for windows, frames, menus&scrollbars.
33HAVE_NS Use the NeXT/OpenStep/Cocoa UI under Mac OS X or GNUstep. 33HAVE_NS Use the NeXT/OpenStep/Cocoa UI under macOS or GNUstep.
34NS_IMPL_GNUSTEP Compile support for GNUstep implementation of NS GUI API. 34NS_IMPL_GNUSTEP Compile support for GNUstep implementation of NS GUI API.
35NS_IMPL_COCOA Compile support for Cocoa (Apple) implementation of NS GUI API. 35NS_IMPL_COCOA Compile support for Cocoa (Apple) implementation of NS GUI API.
36HAVE_X11 Compile support for the X11 GUI. 36HAVE_X11 Compile support for the X11 GUI.
diff --git a/configure.ac b/configure.ac
index 19b44bd34ce..9f12a2b7331 100644
--- a/configure.ac
+++ b/configure.ac
@@ -342,8 +342,8 @@ OPTION_DEFAULT_ON([toolkit-scroll-bars],[don't use Motif or Xaw3d scroll bars])
342OPTION_DEFAULT_ON([xaw3d],[don't use Xaw3d]) 342OPTION_DEFAULT_ON([xaw3d],[don't use Xaw3d])
343OPTION_DEFAULT_ON([xim],[don't use X11 XIM]) 343OPTION_DEFAULT_ON([xim],[don't use X11 XIM])
344AC_ARG_WITH([ns],[AS_HELP_STRING([--with-ns], 344AC_ARG_WITH([ns],[AS_HELP_STRING([--with-ns],
345[use Nextstep (OS X Cocoa or GNUstep) windowing system. 345[use Nextstep (macOS Cocoa or GNUstep) windowing system.
346On by default on Mac OS X.])],[],[with_ns=maybe]) 346On by default on macOS.])],[],[with_ns=maybe])
347OPTION_DEFAULT_OFF([w32], [use native MS Windows GUI in a Cygwin build]) 347OPTION_DEFAULT_OFF([w32], [use native MS Windows GUI in a Cygwin build])
348 348
349OPTION_DEFAULT_ON([gpm],[don't use -lgpm for mouse support on a GNU/Linux console]) 349OPTION_DEFAULT_ON([gpm],[don't use -lgpm for mouse support on a GNU/Linux console])
@@ -599,7 +599,7 @@ case "${canonical}" in
599 opsys=openbsd 599 opsys=openbsd
600 ;; 600 ;;
601 601
602 ## Apple Darwin / Mac OS X 602 ## Apple Darwin / macOS
603 *-apple-darwin* ) 603 *-apple-darwin* )
604 case "${canonical}" in 604 case "${canonical}" in
605 *-apple-darwin[0-9].*) unported=yes ;; 605 *-apple-darwin[0-9].*) unported=yes ;;
@@ -1864,14 +1864,14 @@ Either fix this, or re-configure with the option '--without-ns'.])])
1864 1864
1865 macfont_file="" 1865 macfont_file=""
1866 if test "${NS_IMPL_COCOA}" = "yes"; then 1866 if test "${NS_IMPL_COCOA}" = "yes"; then
1867 AC_MSG_CHECKING([for OSX 10.6 or newer]) 1867 AC_MSG_CHECKING([for Mac OS X 10.6 or newer])
1868 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <AppKit/AppKit.h>], 1868 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <AppKit/AppKit.h>],
1869 [ 1869 [
1870#ifdef MAC_OS_X_VERSION_MAX_ALLOWED 1870#ifdef MAC_OS_X_VERSION_MAX_ALLOWED
1871#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060 1871#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
1872 ; /* OK */ 1872 ; /* OK */
1873#else 1873#else
1874 error "OSX 10.6 or newer required"; 1874 error "Mac OS X 10.6 or newer required";
1875#endif 1875#endif
1876#endif 1876#endif
1877 ])], 1877 ])],
@@ -1880,7 +1880,7 @@ Either fix this, or re-configure with the option '--without-ns'.])])
1880 AC_MSG_RESULT([$ns_osx_have_106]) 1880 AC_MSG_RESULT([$ns_osx_have_106])
1881 1881
1882 if test $ns_osx_have_106 = no; then 1882 if test $ns_osx_have_106 = no; then
1883 AC_MSG_ERROR([OSX 10.6 or newer is required]); 1883 AC_MSG_ERROR([Mac OS X 10.6 or newer is required]);
1884 fi 1884 fi
1885 fi 1885 fi
1886fi 1886fi
@@ -3562,9 +3562,9 @@ AC_CHECK_HEADERS_ONCE(malloc/malloc.h)
3562GNUSTEP_CFLAGS= 3562GNUSTEP_CFLAGS=
3563### Use NeXTstep API to implement GUI. 3563### Use NeXTstep API to implement GUI.
3564if test "${HAVE_NS}" = "yes"; then 3564if test "${HAVE_NS}" = "yes"; then
3565 AC_DEFINE(HAVE_NS, 1, [Define to 1 if you are using the NeXTstep API, either GNUstep or Cocoa on Mac OS X.]) 3565 AC_DEFINE(HAVE_NS, 1, [Define to 1 if you are using the NeXTstep API, either GNUstep or Cocoa on macOS.])
3566 if test "${NS_IMPL_COCOA}" = "yes"; then 3566 if test "${NS_IMPL_COCOA}" = "yes"; then
3567 AC_DEFINE(NS_IMPL_COCOA, 1, [Define to 1 if you are using NS windowing under MacOS X.]) 3567 AC_DEFINE(NS_IMPL_COCOA, 1, [Define to 1 if you are using NS windowing under macOS.])
3568 fi 3568 fi
3569 if test "${NS_IMPL_GNUSTEP}" = "yes"; then 3569 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
3570 AC_DEFINE(NS_IMPL_GNUSTEP, 1, [Define to 1 if you are using NS windowing under GNUstep.]) 3570 AC_DEFINE(NS_IMPL_GNUSTEP, 1, [Define to 1 if you are using NS windowing under GNUstep.])
@@ -4725,9 +4725,9 @@ case $opsys in
4725 ;; 4725 ;;
4726 4726
4727 darwin) 4727 darwin)
4728 dnl Not __APPLE__, as this may not be defined on non-OSX Darwin. 4728 dnl Not __APPLE__, as this may not be defined on non-macOS Darwin.
4729 dnl Not DARWIN, because Panther and lower CoreFoundation.h use DARWIN to 4729 dnl Not DARWIN, because Panther and lower CoreFoundation.h use DARWIN to
4730 dnl distinguish OS X from pure Darwin. 4730 dnl distinguish macOS from pure Darwin.
4731 AC_DEFINE(DARWIN_OS, [], [Define if the system is Darwin.]) 4731 AC_DEFINE(DARWIN_OS, [], [Define if the system is Darwin.])
4732 ;; 4732 ;;
4733 4733
diff --git a/doc/emacs/cmdargs.texi b/doc/emacs/cmdargs.texi
index f0f686f855c..881bf11a9f0 100644
--- a/doc/emacs/cmdargs.texi
+++ b/doc/emacs/cmdargs.texi
@@ -550,11 +550,11 @@ variables is not set, the category defaults to the value of the
550@env{LANG} is not set. But if @env{LC_ALL} is specified, it overrides 550@env{LANG} is not set. But if @env{LC_ALL} is specified, it overrides
551the settings of all the other locale environment variables. 551the settings of all the other locale environment variables.
552 552
553On MS-Windows and OS X, if @env{LANG} is not already set in the 553On MS-Windows and macOS, if @env{LANG} is not already set in the
554environment, Emacs sets it based on the system-wide default. You can 554environment, Emacs sets it based on the system-wide default. You can
555set this in the ``Regional Settings'' Control Panel on some versions 555set this in the ``Regional Settings'' Control Panel on some versions
556of MS-Windows, and in the ``Language and Region'' System Preference on 556of MS-Windows, and in the ``Language and Region'' System Preference on
557OS X. 557macOS.
558 558
559The value of the @env{LC_CTYPE} category is 559The value of the @env{LC_CTYPE} category is
560matched against entries in @code{locale-language-names}, 560matched against entries in @code{locale-language-names},
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/msdos.texi b/doc/emacs/msdos.texi
index 6ad12d646a1..47ba23b95aa 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/lispref/display.texi b/doc/lispref/display.texi
index f94628ce105..a49bfc8ca8c 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -6958,7 +6958,7 @@ Emacs is displaying the frame using X.
6958Emacs is displaying the frame using native MS-Windows GUI. 6958Emacs is displaying the frame using native MS-Windows GUI.
6959@item ns 6959@item ns
6960Emacs is displaying the frame using the Nextstep interface (used on 6960Emacs is displaying the frame using the Nextstep interface (used on
6961GNUstep and Mac OS X). 6961GNUstep and macOS).
6962@item pc 6962@item pc
6963Emacs is displaying the frame using MS-DOS direct screen writes. 6963Emacs is displaying the frame using MS-DOS direct screen writes.
6964@item nil 6964@item nil
diff --git a/doc/lispref/nonascii.texi b/doc/lispref/nonascii.texi
index 9cf3b5750f2..e4581b3d68e 100644
--- a/doc/lispref/nonascii.texi
+++ b/doc/lispref/nonascii.texi
@@ -1034,8 +1034,7 @@ Unix convention, used on GNU and Unix systems, is to use the linefeed
1034character (also called newline). The DOS convention, used on 1034character (also called newline). The DOS convention, used on
1035MS-Windows and MS-DOS systems, is to use a carriage-return and a 1035MS-Windows and MS-DOS systems, is to use a carriage-return and a
1036linefeed at the end of a line. The Mac convention is to use just 1036linefeed at the end of a line. The Mac convention is to use just
1037carriage-return. (This was the convention used on the Macintosh 1037carriage-return. (This was the convention used in Classic Mac OS.)
1038system prior to OS X.)
1039 1038
1040@cindex base coding system 1039@cindex base coding system
1041@cindex variant coding system 1040@cindex variant coding system
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi
index 0d999ae9b99..6b9b2c7faf3 100644
--- a/doc/lispref/os.texi
+++ b/doc/lispref/os.texi
@@ -888,7 +888,7 @@ Berkeley BSD and its variants.
888Cygwin, a Posix layer on top of MS-Windows. 888Cygwin, a Posix layer on top of MS-Windows.
889 889
890@item darwin 890@item darwin
891Darwin (Mac OS X). 891Darwin (macOS).
892 892
893@item gnu 893@item gnu
894The GNU system (using the GNU kernel, which consists of the HURD and Mach). 894The GNU system (using the GNU kernel, which consists of the HURD and Mach).
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 08067b0c735..11f9f35227d 100644
--- a/doc/misc/gnus.texi
+++ b/doc/misc/gnus.texi
@@ -21520,7 +21520,7 @@ bound to mairix searches and are automatically updated.
21520Mairix is a tool for indexing and searching words in locally stored 21520Mairix is a tool for indexing and searching words in locally stored
21521mail. It was written by Richard Curnow and is licensed under the 21521mail. It was written by Richard Curnow and is licensed under the
21522GPL@. Mairix comes with most popular GNU/Linux distributions, but it also 21522GPL@. Mairix comes with most popular GNU/Linux distributions, but it also
21523runs under Windows (with cygwin), Mac OS X and Solaris. The homepage can 21523runs under Windows (with cygwin), macOS and Solaris. The homepage can
21524be found at 21524be found at
21525@uref{http://www.rpcurnow.force9.co.uk/mairix/index.html} 21525@uref{http://www.rpcurnow.force9.co.uk/mairix/index.html}
21526 21526
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 5ce10d298c0..dae514033f8 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -977,7 +977,7 @@ active, @pxref{Top, , D-Bus, dbus}.
977@cindex afp method 977@cindex afp method
978 978
979This method is for connecting to remote hosts with the Apple Filing 979This method is for connecting to remote hosts with the Apple Filing
980Protocol for accessing files on Mac OS X volumes. @value{tramp} access 980Protocol for accessing files on macOS volumes. @value{tramp} access
981syntax requires a leading volume (share) name, for example: 981syntax requires a leading volume (share) name, for example:
982@file{@trampfn{afp,user@@host,/volume}}. 982@file{@trampfn{afp,user@@host,/volume}}.
983 983
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 085f169e85b..fcab23c7b53 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 b/etc/NEWS
index a5bcb8dabdc..f6792431907 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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/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/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/PROBLEMS b/etc/PROBLEMS
index 008f5a15310..9904339be40 100644
--- a/etc/PROBLEMS
+++ b/etc/PROBLEMS
@@ -604,7 +604,7 @@ See <http://debbugs.gnu.org/22814>.
604When you have a large number of buffers running auto-revert-mode, and 604When you have a large number of buffers running auto-revert-mode, and
605Emacs is configured to use the kqueue file notification library, it 605Emacs is configured to use the kqueue file notification library, it
606uses an own file descriptor for every watched file. On systems with a 606uses an own file descriptor for every watched file. On systems with a
607small limit of file descriptors allowed per process, like OS X, you 607small limit of file descriptors allowed per process, like macOS, you
608could run out of file descriptors. You won't be able to open new files. 608could run out of file descriptors. You won't be able to open new files.
609 609
610auto-revert-use-notify is set to nil in global-auto-revert-mode, therefore. 610auto-revert-use-notify is set to nil in global-auto-revert-mode, therefore.
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/lib-src/Makefile.in b/lib-src/Makefile.in
index 5fa152ae5bf..2aaec25a5a3 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/battery.el b/lisp/battery.el
index b5e312f6c3e..20f3017fc45 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:
@@ -600,7 +600,7 @@ The following %-sequences are provided:
600 (cons ?t (or remaining-time "N/A"))))) 600 (cons ?t (or remaining-time "N/A")))))
601 601
602 602
603;;; `pmset' interface for Darwin (OS X). 603;;; `pmset' interface for Darwin (macOS).
604 604
605(defun battery-pmset () 605(defun battery-pmset ()
606 "Get battery status information using `pmset'. 606 "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/faces.el b/lisp/faces.el
index b1ea0f0fc34..a84edab3615 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/gnus/auth-source.el b/lisp/gnus/auth-source.el
index 52765ce6b31..df8f61ff380 100644
--- a/lisp/gnus/auth-source.el
+++ b/lisp/gnus/auth-source.el
@@ -423,13 +423,13 @@ with \"[a/b/c] \" if CHOICES is \(?a ?b ?c)."
423 ;; Keychain collection matching any user, host, and protocol 423 ;; Keychain collection matching any user, host, and protocol
424 ((eq entry 'macos-keychain-generic) 424 ((eq entry 'macos-keychain-generic)
425 (auth-source-backend-parse '(:source (:macos-keychain-generic default)))) 425 (auth-source-backend-parse '(:source (:macos-keychain-generic default))))
426 ;; take macos-keychain-internet:XYZ and recurse to get it as MacOS 426 ;; take macos-keychain-internet: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-internet:\\(.+\\)" 428 ((and (stringp entry) (string-match "^macos-keychain-internet:\\(.+\\)"
429 entry)) 429 entry))
430 (auth-source-backend-parse `(:source (:macos-keychain-internet 430 (auth-source-backend-parse `(:source (:macos-keychain-internet
431 ,(match-string 1 entry))))) 431 ,(match-string 1 entry)))))
432 ;; take macos-keychain-generic:XYZ and recurse to get it as MacOS 432 ;; take macos-keychain-generic:XYZ and recurse to get it as macOS
433 ;; Keychain "XYZ" matching any user, host, and protocol 433 ;; Keychain "XYZ" matching any user, host, and protocol
434 ((and (stringp entry) (string-match "^macos-keychain-generic:\\(.+\\)" 434 ((and (stringp entry) (string-match "^macos-keychain-generic:\\(.+\\)"
435 entry)) 435 entry))
@@ -458,7 +458,7 @@ with \"[a/b/c] \" if CHOICES is \(?a ?b ?c)."
458 :search-function #'auth-source-netrc-search 458 :search-function #'auth-source-netrc-search
459 :create-function #'auth-source-netrc-create))) 459 :create-function #'auth-source-netrc-create)))
460 460
461 ;; the MacOS Keychain 461 ;; the macOS Keychain
462 ((and 462 ((and
463 (not (null (plist-get entry :source))) ; the source must not be nil 463 (not (null (plist-get entry :source))) ; the source must not be nil
464 (listp (plist-get entry :source)) ; and it must be a list 464 (listp (plist-get entry :source)) ; and it must be a list
@@ -1666,7 +1666,7 @@ authentication tokens:
1666 &key backend create delete 1666 &key backend create delete
1667 type max 1667 type max
1668 &allow-other-keys) 1668 &allow-other-keys)
1669 "Search the MacOS Keychain; spec is like `auth-source'. 1669 "Search the macOS Keychain; spec is like `auth-source'.
1670 1670
1671All search keys must match exactly. If you need substring 1671All search keys must match exactly. If you need substring
1672matching, do a wider search and narrow it down yourself. 1672matching, do a wider search and narrow it down yourself.
@@ -1688,13 +1688,13 @@ Similarly, :host maps to \"-c HOST\" (the \"creator\" keychain
1688field), :user maps to \"-a USER\", and :port maps to \"-s PORT\". 1688field), :user maps to \"-a USER\", and :port maps to \"-s PORT\".
1689 1689
1690Here's an example that looks for the first item in the default 1690Here's an example that looks for the first item in the default
1691generic MacOS Keychain: 1691generic macOS Keychain:
1692 1692
1693 (let ((auth-sources \\='(macos-keychain-generic))) 1693 (let ((auth-sources \\='(macos-keychain-generic)))
1694 (auth-source-search :max 1) 1694 (auth-source-search :max 1)
1695 1695
1696Here's another that looks for the first item in the internet 1696Here's another that looks for the first item in the internet
1697MacOS Keychain collection whose label is `gnus': 1697macOS Keychain collection whose label is `gnus':
1698 1698
1699 (let ((auth-sources \\='(macos-keychain-internet))) 1699 (let ((auth-sources \\='(macos-keychain-internet)))
1700 (auth-source-search :max 1 :label \"gnus\") 1700 (auth-source-search :max 1 :label \"gnus\")
@@ -1707,11 +1707,11 @@ entries for git.gnus.org:
1707" 1707"
1708 ;; TODO 1708 ;; TODO
1709 (assert (not create) nil 1709 (assert (not create) nil
1710 "The MacOS Keychain auth-source backend doesn't support creation yet") 1710 "The macOS Keychain auth-source backend doesn't support creation yet")
1711 ;; TODO 1711 ;; TODO
1712 ;; (macos-keychain-delete-item coll elt) 1712 ;; (macos-keychain-delete-item coll elt)
1713 (assert (not delete) nil 1713 (assert (not delete) nil
1714 "The MacOS Keychain auth-source backend doesn't support deletion yet") 1714 "The macOS Keychain auth-source backend doesn't support deletion yet")
1715 1715
1716 (let* ((coll (oref backend source)) 1716 (let* ((coll (oref backend source))
1717 (max (or max 5000)) ; sanity check: default to stop at 5K 1717 (max (or max 5000)) ; sanity check: default to stop at 5K
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index e7c7049cd0a..5008fd5f27b 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 1e247c5dba5..29cd042eee9 100644
--- a/lisp/international/ucs-normalize.el
+++ b/lisp/international/ucs-normalize.el
@@ -624,7 +624,7 @@ COMPOSITION-PREDICATE will be used to compose region."
624 624
625;;; coding-system definition 625;;; coding-system definition
626(define-coding-system 'utf-8-hfs 626(define-coding-system 'utf-8-hfs
627 "UTF-8 based coding system for MacOS HFS file names. 627 "UTF-8 based coding system for macOS HFS file names.
628The singleton characters in HFS normalization exclusion will not 628The singleton characters in HFS normalization exclusion will not
629be decomposed." 629be decomposed."
630 :coding-type 'utf-8 630 :coding-type 'utf-8
diff --git a/lisp/ls-lisp.el b/lisp/ls-lisp.el
index 85e91cdadc0..41587bfe144 100644
--- a/lisp/ls-lisp.el
+++ b/lisp/ls-lisp.el
@@ -75,7 +75,7 @@
75 ((memq system-type '(hpux usg-unix-v irix berkeley-unix)) 75 ((memq system-type '(hpux usg-unix-v irix 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 ce3c50bce2b..86aefe4a6dd 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 5acf90baf28..94b9e0d04da 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -887,7 +887,7 @@ test/automated/man-tests.el in the emacs repository."
887 (setq default-directory "/") ;; in case inherited doesn't exist 887 (setq default-directory "/") ;; in case inherited doesn't exist
888 ;; Actually for my `man' the arg is a regexp. 888 ;; Actually for my `man' the arg is a regexp.
889 ;; POSIX says it must be ERE and "man-db" seems to agree, 889 ;; POSIX says it must be ERE and "man-db" seems to agree,
890 ;; whereas under MacOSX it seems to be BRE-style and doesn't 890 ;; whereas under macOS it seems to be BRE-style and doesn't
891 ;; accept backslashes at all. Let's not bother to 891 ;; accept backslashes at all. Let's not bother to
892 ;; quote anything. 892 ;; quote anything.
893 (let ((process-environment (copy-sequence process-environment))) 893 (let ((process-environment (copy-sequence process-environment)))
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 640395e8d7d..ba1bf34d1a5 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 d5c03e3f4ae..239da7829df 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 be859283891..68258d41666 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)
@@ -870,7 +870,7 @@ The optional NEW-WINDOW argument is not used."
870 (t (w32-shell-execute "open" url)))) 870 (t (w32-shell-execute "open" url))))
871 871
872(defun browse-url-default-macosx-browser (url &optional _new-window) 872(defun browse-url-default-macosx-browser (url &optional _new-window)
873 "Invoke the MacOS X system's default Web browser. 873 "Invoke the macOS system's default Web browser.
874The optional NEW-WINDOW argument is not used" 874The optional NEW-WINDOW argument is not used"
875 (interactive (browse-url-interactive-arg "URL: ")) 875 (interactive (browse-url-interactive-arg "URL: "))
876 (start-process (concat "open " url) nil "open" url)) 876 (start-process (concat "open " url) nil "open" url))
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 2983d402fa3..842b1ce2880 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -1272,7 +1272,7 @@ target of the symlink differ."
1272 res-uid res-gid res-size res-symlink-target) 1272 res-uid res-gid res-size res-symlink-target)
1273 (tramp-message vec 5 "file attributes with ls: %s" localname) 1273 (tramp-message vec 5 "file attributes with ls: %s" localname)
1274 ;; We cannot send all three commands combined, it could exceed 1274 ;; We cannot send all three commands combined, it could exceed
1275 ;; NAME_MAX or PATH_MAX. Happened on Mac OS X, for example. 1275 ;; NAME_MAX or PATH_MAX. Happened on macOS, for example.
1276 (when (or (tramp-send-command-and-check 1276 (when (or (tramp-send-command-and-check
1277 vec 1277 vec
1278 (format "%s %s" 1278 (format "%s %s"
@@ -4263,7 +4263,7 @@ process to set up. VEC specifies the connection."
4263 (when (search-forward "\r" nil t) 4263 (when (search-forward "\r" nil t)
4264 (setq cs-decode (tramp-compat-coding-system-change-eol-conversion 4264 (setq cs-decode (tramp-compat-coding-system-change-eol-conversion
4265 cs-decode 'dos))) 4265 cs-decode 'dos)))
4266 ;; Special setting for Mac OS X. 4266 ;; Special setting for macOS.
4267 (when (and (string-match "^Darwin" uname) 4267 (when (and (string-match "^Darwin" uname)
4268 (memq 'utf-8-hfs (coding-system-list))) 4268 (memq 'utf-8-hfs (coding-system-list)))
4269 (setq cs-decode 'utf-8-hfs 4269 (setq cs-decode 'utf-8-hfs
@@ -4325,7 +4325,7 @@ process to set up. VEC specifies the connection."
4325 (tramp-send-command vec "stty tabs" t) 4325 (tramp-send-command vec "stty tabs" t)
4326 (tramp-send-command vec "stty tab0" t)) 4326 (tramp-send-command vec "stty tab0" t))
4327 4327
4328 ;; Set utf8 encoding. Needed for Mac OS X, for example. This is 4328 ;; Set utf8 encoding. Needed for macOS, for example. This is
4329 ;; non-POSIX, so we must expect errors on some systems. 4329 ;; non-POSIX, so we must expect errors on some systems.
4330 (tramp-send-command vec "stty iutf8 2>/dev/null" t) 4330 (tramp-send-command vec "stty iutf8 2>/dev/null" t)
4331 4331
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index cb8e4d4d4c3..5d8081cd815 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -1018,7 +1018,7 @@ this variable to be set as well."
1018 :type '(choice (const nil) integer)) 1018 :type '(choice (const nil) integer))
1019 1019
1020;; Logging in to a remote host normally requires obtaining a pty. But 1020;; Logging in to a remote host normally requires obtaining a pty. But
1021;; Emacs on MacOS X has process-connection-type set to nil by default, 1021;; Emacs on macOS has process-connection-type set to nil by default,
1022;; so on those systems Tramp doesn't obtain a pty. Here, we allow 1022;; so on those systems Tramp doesn't obtain a pty. Here, we allow
1023;; for an override of the system default. 1023;; for an override of the system default.
1024(defcustom tramp-process-connection-type t 1024(defcustom tramp-process-connection-type t
diff --git a/lisp/org/org.el b/lisp/org/org.el
index 13e4a222131..eb01426533d 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -1937,7 +1937,7 @@ See `org-file-apps'.")
1937 ("eps.gz" . "gv %s") 1937 ("eps.gz" . "gv %s")
1938 ("dvi" . "xdvi %s") 1938 ("dvi" . "xdvi %s")
1939 ("fig" . "xfig %s")) 1939 ("fig" . "xfig %s"))
1940 "Default file applications on a MacOS X system. 1940 "Default file applications on a macOS system.
1941The system \"open\" is known as a default, but we use X11 applications 1941The system \"open\" is known as a default, but we use X11 applications
1942for some files for which the OS does not have a good default. 1942for some files for which the OS does not have a good default.
1943See `org-file-apps'.") 1943See `org-file-apps'.")
@@ -2012,7 +2012,7 @@ file identifier are
2012 (\"html\" . default) to the list as well. 2012 (\"html\" . default) to the list as well.
2013 t Default for files not matched by any of the other options. 2013 t Default for files not matched by any of the other options.
2014 `system' The system command to open files, like `open' on Windows 2014 `system' The system command to open files, like `open' on Windows
2015 and Mac OS X, and mailcap under GNU/Linux. This is the command 2015 and macOS, and mailcap under GNU/Linux. This is the command
2016 that will be selected if you call `C-c C-o' with a double 2016 that will be selected if you call `C-c C-o' with a double
2017 \\[universal-argument] \\[universal-argument] prefix. 2017 \\[universal-argument] \\[universal-argument] prefix.
2018 2018
diff --git a/lisp/printing.el b/lisp/printing.el
index d9cc2a3614a..72f825fcb89 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 d243650d73a..978b81699fc 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/python.el b/lisp/progmodes/python.el
index 3fae3987b22..8ec9febe5c9 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2414,7 +2414,7 @@ banner and the initial prompt are received separately."
2414(defun python-shell-comint-end-of-output-p (output) 2414(defun python-shell-comint-end-of-output-p (output)
2415 "Return non-nil if OUTPUT is ends with input prompt." 2415 "Return non-nil if OUTPUT is ends with input prompt."
2416 (string-match 2416 (string-match
2417 ;; XXX: It seems on OSX an extra carriage return is attached 2417 ;; XXX: It seems on macOS an extra carriage return is attached
2418 ;; at the end of output, this handles that too. 2418 ;; at the end of output, this handles that too.
2419 (concat 2419 (concat
2420 "\r?\n?" 2420 "\r?\n?"
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el
index e737131d5bf..21bba480d02 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
@@ -892,7 +892,7 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.")
892 (setq default-process-coding-system 892 (setq default-process-coding-system
893 '(utf-8-unix . utf-8-unix))))) 893 '(utf-8-unix . utf-8-unix)))))
894 894
895 ;; OS X Lion introduces PressAndHold, which is unsupported by this port. 895 ;; Mac OS X Lion introduces PressAndHold, which is unsupported by this port.
896 ;; See this thread for more details: 896 ;; See this thread for more details:
897 ;; http://lists.gnu.org/archive/html/emacs-devel/2011-06/msg00505.html 897 ;; http://lists.gnu.org/archive/html/emacs-devel/2011-06/msg00505.html
898 (ns-set-resource nil "ApplePressAndHoldEnabled" "NO") 898 (ns-set-resource nil "ApplePressAndHoldEnabled" "NO")
diff --git a/lisp/term/xterm.el b/lisp/term/xterm.el
index 19eb37a51d6..880141bda12 100644
--- a/lisp/term/xterm.el
+++ b/lisp/term/xterm.el
@@ -771,7 +771,7 @@ We run the first FUNCTION whose STRING matches the input events."
771 ;; Try to find out the type of terminal by sending a "Secondary 771 ;; Try to find out the type of terminal by sending a "Secondary
772 ;; Device Attributes (DA)" query. 772 ;; Device Attributes (DA)" query.
773 (xterm--query "\e[>0c" 773 (xterm--query "\e[>0c"
774 ;; Some terminals (like OS X's Terminal.app) respond to 774 ;; Some terminals (like macOS's Terminal.app) respond to
775 ;; this query as if it were a "Primary Device Attributes" 775 ;; this query as if it were a "Primary Device Attributes"
776 ;; query instead, so we should handle that too. 776 ;; query instead, so we should handle that too.
777 '(("\e[?" . xterm--version-handler) 777 '(("\e[?" . xterm--version-handler)
diff --git a/lisp/textmodes/rst.el b/lisp/textmodes/rst.el
index 3d4854e89d6..aea8e7072ea 100644
--- a/lisp/textmodes/rst.el
+++ b/lisp/textmodes/rst.el
@@ -645,7 +645,7 @@ as well but give an additional message."
645 ;; 645 ;;
646 ;; The adjustment function that adorns or rotates a section title. 646 ;; The adjustment function that adorns or rotates a section title.
647 (rst-define-key map [?\C-c ?\C-=] 'rst-adjust [?\C-c ?\C-a t]) 647 (rst-define-key map [?\C-c ?\C-=] 'rst-adjust [?\C-c ?\C-a t])
648 (rst-define-key map [?\C-=] 'rst-adjust) ; Does not work on the Mac OSX and 648 (rst-define-key map [?\C-=] 'rst-adjust) ; Does not work on macOS and
649 ; on consoles. 649 ; on consoles.
650 650
651 ;; \C-c \C-a is the keymap for adornments. 651 ;; \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/src/coding.c b/src/coding.c
index 9f709bea24c..3e4af722e4c 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 f83965bf8b1..d8070fad8e7 100644
--- a/src/conf_post.h
+++ b/src/conf_post.h
@@ -192,7 +192,7 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */
192#endif 192#endif
193#endif /* MSDOS */ 193#endif /* MSDOS */
194 194
195/* Mac OS X / GNUstep need a bit more pure memory. Of the existing knobs, 195/* macOS / GNUstep need a bit more pure memory. Of the existing knobs,
196 SYSTEM_PURESIZE_EXTRA seems like the least likely to cause problems. */ 196 SYSTEM_PURESIZE_EXTRA seems like the least likely to cause problems. */
197#ifdef HAVE_NS 197#ifdef HAVE_NS
198#if defined NS_IMPL_GNUSTEP 198#if defined NS_IMPL_GNUSTEP
diff --git a/src/emacs.c b/src/emacs.c
index f8d5dfa3c6e..ce30ae741b2 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -2412,7 +2412,7 @@ Special values:
2412 `gnu' compiled for a GNU Hurd system. 2412 `gnu' compiled for a GNU Hurd system.
2413 `gnu/linux' compiled for a GNU/Linux system. 2413 `gnu/linux' compiled for a GNU/Linux system.
2414 `gnu/kfreebsd' compiled for a GNU system with a FreeBSD kernel. 2414 `gnu/kfreebsd' compiled for a GNU system with a FreeBSD kernel.
2415 `darwin' compiled for Darwin (GNU-Darwin, Mac OS X, ...). 2415 `darwin' compiled for Darwin (GNU-Darwin, macOS, ...).
2416 `ms-dos' compiled as an MS-DOS application. 2416 `ms-dos' compiled as an MS-DOS application.
2417 `windows-nt' compiled as a native W32 application. 2417 `windows-nt' compiled as a native W32 application.
2418 `cygwin' compiled using the Cygwin library. 2418 `cygwin' compiled using the Cygwin library.
diff --git a/src/frame.c b/src/frame.c
index cfa5f7d5027..854f72e64b4 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -5088,7 +5088,7 @@ Setting this variable does not affect existing frames, only new ones. */);
5088 doc: /* Default position of vertical scroll bars on this window-system. */); 5088 doc: /* Default position of vertical scroll bars on this window-system. */);
5089#ifdef HAVE_WINDOW_SYSTEM 5089#ifdef HAVE_WINDOW_SYSTEM
5090#if defined (HAVE_NTGUI) || defined (NS_IMPL_COCOA) || (defined (USE_GTK) && defined (USE_TOOLKIT_SCROLL_BARS)) 5090#if defined (HAVE_NTGUI) || defined (NS_IMPL_COCOA) || (defined (USE_GTK) && defined (USE_TOOLKIT_SCROLL_BARS))
5091 /* MS-Windows, Mac OS X, and GTK have scroll bars on the right by 5091 /* MS-Windows, macOS, and GTK have scroll bars on the right by
5092 default. */ 5092 default. */
5093 Vdefault_frame_scroll_bars = Qright; 5093 Vdefault_frame_scroll_bars = Qright;
5094#else 5094#else
diff --git a/src/gtkutil.c b/src/gtkutil.c
index 0f256c563dc..e323216bb79 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -2370,7 +2370,7 @@ make_widget_for_menu_item (const char *utf8_label, const char *utf8_key)
2370 in the group. On exit, *GROUP contains the radio item group. 2370 in the group. On exit, *GROUP contains the radio item group.
2371 2371
2372 Unfortunately, keys don't line up as nicely as in Motif, 2372 Unfortunately, keys don't line up as nicely as in Motif,
2373 but the MacOS X version doesn't either, so I guess that is OK. */ 2373 but the macOS version doesn't either, so I guess that is OK. */
2374 2374
2375static GtkWidget * 2375static GtkWidget *
2376make_menu_item (const char *utf8_label, 2376make_menu_item (const char *utf8_label,
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 04456283fa1..ed7c1e3bd7a 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
@@ -4042,7 +4042,7 @@ mac_register_font_driver (struct frame *f)
4042void 4042void
4043syms_of_macfont (void) 4043syms_of_macfont (void)
4044{ 4044{
4045 /* Core Text, for Mac OS X. */ 4045 /* Core Text, for macOS. */
4046 DEFSYM (Qmac_ct, "mac-ct"); 4046 DEFSYM (Qmac_ct, "mac-ct");
4047 macfont_driver.type = Qmac_ct; 4047 macfont_driver.type = Qmac_ct;
4048 register_font_driver (&macfont_driver, NULL); 4048 register_font_driver (&macfont_driver, NULL);
diff --git a/src/nsfns.m b/src/nsfns.m
index 9bc6c1d3418..82bb84a147a 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
@@ -942,7 +942,7 @@ static void
942x_icon (struct frame *f, Lisp_Object parms) 942x_icon (struct frame *f, Lisp_Object parms)
943/* -------------------------------------------------------------------------- 943/* --------------------------------------------------------------------------
944 Strangely-named function to set icon position parameters in frame. 944 Strangely-named function to set icon position parameters in frame.
945 This is irrelevant under OS X, but might be needed under GNUstep, 945 This is irrelevant under macOS, but might be needed under GNUstep,
946 depending on the window manager used. Note, this is not a standard 946 depending on the window manager used. Note, this is not a standard
947 frame parameter-setter; it is called directly from x-create-frame. 947 frame parameter-setter; it is called directly from x-create-frame.
948 -------------------------------------------------------------------------- */ 948 -------------------------------------------------------------------------- */
@@ -2060,7 +2060,7 @@ DEFUN ("ns-list-services", Fns_list_services, Sns_list_services, 0, 0, 0,
2060 2060
2061 [svcs setAutoenablesItems: NO]; 2061 [svcs setAutoenablesItems: NO];
2062#ifdef NS_IMPL_COCOA 2062#ifdef NS_IMPL_COCOA
2063 [svcs update]; /* on OS X, converts from '/' structure */ 2063 [svcs update]; /* on macOS, converts from '/' structure */
2064#endif 2064#endif
2065 2065
2066 ret = interpret_services_menu (svcs, Qnil, ret); 2066 ret = interpret_services_menu (svcs, Qnil, ret);
diff --git a/src/nsfont.m b/src/nsfont.m
index 92e7d1154bf..4f95ee3a1a8 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
@@ -500,7 +500,7 @@ static NSSet
500 { 500 {
501 NSCharacterSet *fset = [[fontMgr fontWithFamily: family 501 NSCharacterSet *fset = [[fontMgr fontWithFamily: family
502 traits: 0 weight: 5 size: 12.0] coveredCharacterSet]; 502 traits: 0 weight: 5 size: 12.0] coveredCharacterSet];
503 /* Some fonts on OS X, maybe many on GNUstep, return nil. */ 503 /* Some fonts on macOS, maybe many on GNUstep, return nil. */
504 if (fset == nil) 504 if (fset == nil)
505 fset = [NSCharacterSet characterSetWithRange: 505 fset = [NSCharacterSet characterSetWithRange:
506 NSMakeRange (0, 127)]; 506 NSMakeRange (0, 127)];
diff --git a/src/nsimage.m b/src/nsimage.m
index 5b2534b9007..66aecd4289d 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 7d340e8ec83..f73c184dce7 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.
@@ -93,7 +93,7 @@ popup_activated (void)
93/* -------------------------------------------------------------------------- 93/* --------------------------------------------------------------------------
94 Update menubar. Three cases: 94 Update menubar. Three cases:
95 1) ! deep_p, submenu = nil: Fresh switch onto a frame -- either set up 95 1) ! deep_p, submenu = nil: Fresh switch onto a frame -- either set up
96 just top-level menu strings (OS X), or goto case (2) (GNUstep). 96 just top-level menu strings (macOS), or goto case (2) (GNUstep).
97 2) deep_p, submenu = nil: Recompute all submenus. 97 2) deep_p, submenu = nil: Recompute all submenus.
98 3) deep_p, submenu = non-nil: Update contents of a single submenu. 98 3) deep_p, submenu = non-nil: Update contents of a single submenu.
99 -------------------------------------------------------------------------- */ 99 -------------------------------------------------------------------------- */
@@ -584,7 +584,7 @@ x_activate_menubar (struct frame *f)
584 return; 584 return;
585/*fprintf (stderr, "Updating menu '%s'\n", [[self title] UTF8String]); NSLog (@"%@\n", event); */ 585/*fprintf (stderr, "Updating menu '%s'\n", [[self title] UTF8String]); NSLog (@"%@\n", event); */
586#ifdef NS_IMPL_GNUSTEP 586#ifdef NS_IMPL_GNUSTEP
587 /* Don't know how to do this for anything other than OSX >= 10.5 587 /* Don't know how to do this for anything other than Mac OS X 10.5 and later.
588 This is wrong, as it might run Lisp code in the event loop. */ 588 This is wrong, as it might run Lisp code in the event loop. */
589 ns_update_menubar (frame, true, self); 589 ns_update_menubar (frame, true, self);
590#endif 590#endif
@@ -645,7 +645,7 @@ x_activate_menubar (struct frame *f)
645 645
646 keyEq = [self parseKeyEquiv: wv->key]; 646 keyEq = [self parseKeyEquiv: wv->key];
647#ifdef NS_IMPL_COCOA 647#ifdef NS_IMPL_COCOA
648 /* OS X just ignores modifier strings longer than one character */ 648 /* macOS just ignores modifier strings longer than one character */
649 if (keyEquivModMask == 0) 649 if (keyEquivModMask == 0)
650 title = [title stringByAppendingFormat: @" (%@)", keyEq]; 650 title = [title stringByAppendingFormat: @" (%@)", keyEq];
651#endif 651#endif
@@ -1057,9 +1057,9 @@ update_frame_tool_bar (struct frame *f)
1057 /* Check if this is a separator. */ 1057 /* Check if this is a separator. */
1058 if (EQ (TOOLPROP (TOOL_BAR_ITEM_TYPE), Qt)) 1058 if (EQ (TOOLPROP (TOOL_BAR_ITEM_TYPE), Qt))
1059 { 1059 {
1060 /* Skip separators. Newer OSX don't show them, and on GNUstep they 1060 /* Skip separators. Newer macOS don't show them, and on
1061 are wide as a button, thus overflowing the toolbar most of 1061 GNUstep they are wide as a button, thus overflowing the
1062 the time. */ 1062 toolbar most of the time. */
1063 continue; 1063 continue;
1064 } 1064 }
1065 1065
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 4d9d10559ea..4f99a13c44e 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
@@ -250,7 +250,7 @@ static unsigned convert_ns_to_X_keysym[] =
250 0x1B, 0x1B /* escape */ 250 0x1B, 0x1B /* escape */
251}; 251};
252 252
253/* On OS X picks up the default NSGlobalDomain AppleAntiAliasingThreshold, 253/* On macOS picks up the default NSGlobalDomain AppleAntiAliasingThreshold,
254 the maximum font size to NOT antialias. On GNUstep there is currently 254 the maximum font size to NOT antialias. On GNUstep there is currently
255 no way to control this behavior. */ 255 no way to control this behavior. */
256float ns_antialias_threshold; 256float ns_antialias_threshold;
@@ -587,7 +587,7 @@ ns_load_path (void)
587 587
588void 588void
589ns_init_locale (void) 589ns_init_locale (void)
590/* OS X doesn't set any environment variables for the locale when run 590/* macOS doesn't set any environment variables for the locale when run
591 from the GUI. Get the locale from the OS and set LANG. */ 591 from the GUI. Get the locale from the OS and set LANG. */
592{ 592{
593 NSLocale *locale = [NSLocale currentLocale]; 593 NSLocale *locale = [NSLocale currentLocale];
@@ -596,7 +596,7 @@ ns_init_locale (void)
596 596
597 @try 597 @try
598 { 598 {
599 /* It seems OS X should probably use UTF-8 everywhere. 599 /* It seems macOS should probably use UTF-8 everywhere.
600 'localeIdentifier' does not specify the encoding, and I can't 600 'localeIdentifier' does not specify the encoding, and I can't
601 find any way to get the OS to tell us which encoding to use, 601 find any way to get the OS to tell us which encoding to use,
602 so hard-code '.UTF-8'. */ 602 so hard-code '.UTF-8'. */
@@ -718,7 +718,7 @@ ns_screen_margins (NSScreen *screen)
718 718
719 719
720/* A screen margin between 1 and DOCK_IGNORE_LIMIT (inclusive) is 720/* A screen margin between 1 and DOCK_IGNORE_LIMIT (inclusive) is
721 assumed to contain a hidden dock. OS X currently use 4 pixels for 721 assumed to contain a hidden dock. macOS currently use 4 pixels for
722 this, however, to be future compatible, a larger value is used. */ 722 this, however, to be future compatible, a larger value is used. */
723#define DOCK_IGNORE_LIMIT 6 723#define DOCK_IGNORE_LIMIT 6
724 724
@@ -731,7 +731,7 @@ reserved for an hidden dock. */
731 731
732 struct EmacsMargins margins = ns_screen_margins(screen); 732 struct EmacsMargins margins = ns_screen_margins(screen);
733 733
734 /* OS X (currently) reserved 4 pixels along the edge where a hidden 734 /* macOS (currently) reserved 4 pixels along the edge where a hidden
735 dock is located. Unfortunately, it's not possible to find the 735 dock is located. Unfortunately, it's not possible to find the
736 location and information about if the dock is hidden. Instead, 736 location and information about if the dock is hidden. Instead,
737 it is assumed that if the margin of an edge is less than 737 it is assumed that if the margin of an edge is less than
@@ -748,7 +748,7 @@ reserved for an hidden dock. */
748 { 748 {
749 margins.top = 0; 749 margins.top = 0;
750 } 750 }
751 /* Note: This doesn't occur in current versions of OS X, but 751 /* Note: This doesn't occur in current versions of macOS, but
752 included for completeness and future compatibility. */ 752 included for completeness and future compatibility. */
753 if (margins.bottom <= DOCK_IGNORE_LIMIT) 753 if (margins.bottom <= DOCK_IGNORE_LIMIT)
754 { 754 {
@@ -1027,7 +1027,7 @@ ns_update_begin (struct frame *f)
1027#ifdef NS_IMPL_COCOA 1027#ifdef NS_IMPL_COCOA
1028 if ([view isFullscreen] && [view fsIsNative]) 1028 if ([view isFullscreen] && [view fsIsNative])
1029 { 1029 {
1030 // Fix reappearing tool bar in fullscreen for OSX 10.7 1030 // Fix reappearing tool bar in fullscreen for Mac OS X 10.7
1031 BOOL tbar_visible = FRAME_EXTERNAL_TOOL_BAR (f) ? YES : NO; 1031 BOOL tbar_visible = FRAME_EXTERNAL_TOOL_BAR (f) ? YES : NO;
1032 NSToolbar *toolbar = [FRAME_NS_VIEW (f) toolbar]; 1032 NSToolbar *toolbar = [FRAME_NS_VIEW (f) toolbar];
1033 if (! tbar_visible != ! [toolbar isVisible]) 1033 if (! tbar_visible != ! [toolbar isVisible])
@@ -1986,8 +1986,8 @@ ns_get_color (const char *name, NSColor **col)
1986 } 1986 }
1987 else if ([nsname isEqualToString: @"ns_selection_fg_color"]) 1987 else if ([nsname isEqualToString: @"ns_selection_fg_color"])
1988 { 1988 {
1989 /* NOTE: OSX applications normally don't set foreground selection, but 1989 /* NOTE: macOS applications normally don't set foreground
1990 text may be unreadable if we don't. 1990 selection, but text may be unreadable if we don't.
1991 */ 1991 */
1992 if ((new = [NSColor selectedTextColor]) != nil) 1992 if ((new = [NSColor selectedTextColor]) != nil)
1993 { 1993 {
@@ -3937,7 +3937,7 @@ ns_send_appdefined (int value)
3937#ifdef NS_IMPL_COCOA 3937#ifdef NS_IMPL_COCOA
3938 if (! send_appdefined) 3938 if (! send_appdefined)
3939 { 3939 {
3940 /* OSX 10.10.1 swallows the AppDefined event we are sending ourselves 3940 /* OS X 10.10.1 swallows the AppDefined event we are sending ourselves
3941 in certain situations (rapid incoming events). 3941 in certain situations (rapid incoming events).
3942 So check if we have one, if not add one. */ 3942 So check if we have one, if not add one. */
3943 NSEvent *appev = [NSApp nextEventMatchingMask:NSApplicationDefinedMask 3943 NSEvent *appev = [NSApp nextEventMatchingMask:NSApplicationDefinedMask
@@ -4816,7 +4816,7 @@ ns_term_init (Lisp_Object display_name)
4816 [outerpool release]; 4816 [outerpool release];
4817 outerpool = [[NSAutoreleasePool alloc] init]; 4817 outerpool = [[NSAutoreleasePool alloc] init];
4818 4818
4819 /* count object allocs (About, click icon); on OS X use ObjectAlloc tool */ 4819 /* count object allocs (About, click icon); on macOS use ObjectAlloc tool */
4820 /*GSDebugAllocationActive (YES); */ 4820 /*GSDebugAllocationActive (YES); */
4821 block_input (); 4821 block_input ();
4822 4822
@@ -4945,7 +4945,7 @@ ns_term_init (Lisp_Object display_name)
4945 4945
4946 ns_app_name = [[NSProcessInfo processInfo] processName]; 4946 ns_app_name = [[NSProcessInfo processInfo] processName];
4947 4947
4948 /* Set up OS X app menu */ 4948 /* Set up macOS app menu */
4949 4949
4950 NSTRACE_MSG ("Menu init"); 4950 NSTRACE_MSG ("Menu init");
4951 4951
@@ -5017,7 +5017,7 @@ ns_term_init (Lisp_Object display_name)
5017 selector: @selector (trackingNotification:) 5017 selector: @selector (trackingNotification:)
5018 name: NSMenuDidEndTrackingNotification object: mainMenu]; 5018 name: NSMenuDidEndTrackingNotification object: mainMenu];
5019 } 5019 }
5020#endif /* MAC OS X menu setup */ 5020#endif /* macOS menu setup */
5021 5021
5022 /* Register our external input/output types, used for determining 5022 /* Register our external input/output types, used for determining
5023 applicable services and also drag/drop eligibility. */ 5023 applicable services and also drag/drop eligibility. */
@@ -5245,7 +5245,7 @@ ns_term_shutdown (int sig)
5245 5245
5246#ifdef NS_IMPL_COCOA 5246#ifdef NS_IMPL_COCOA
5247 /* If no dialog and none of our frames have focus and it is a move, skip it. 5247 /* If no dialog and none of our frames have focus and it is a move, skip it.
5248 It is a mouse move in an auxiliary menu, i.e. on the top right on OSX, 5248 It is a mouse move in an auxiliary menu, i.e. on the top right on macOS,
5249 such as Wifi, sound, date or similar. 5249 such as Wifi, sound, date or similar.
5250 This prevents "spooky" highlighting in the frame under the menu. */ 5250 This prevents "spooky" highlighting in the frame under the menu. */
5251 if (type == NSMouseMoved && [NSApp modalWindow] == nil) 5251 if (type == NSMouseMoved && [NSApp modalWindow] == nil)
@@ -5784,7 +5784,7 @@ not_in_argv (NSString *arg)
5784 5784
5785 NSTRACE ("[EmacsView keyDown:]"); 5785 NSTRACE ("[EmacsView keyDown:]");
5786 5786
5787 /* Rhapsody and OS X give up and down events for the arrow keys */ 5787 /* Rhapsody and macOS give up and down events for the arrow keys */
5788 if (ns_fake_keydown == YES) 5788 if (ns_fake_keydown == YES)
5789 ns_fake_keydown = NO; 5789 ns_fake_keydown = NO;
5790 else if ([theEvent type] != NSKeyDown) 5790 else if ([theEvent type] != NSKeyDown)
@@ -6018,7 +6018,7 @@ not_in_argv (NSString *arg)
6018 6018
6019 6019
6020#ifdef NS_IMPL_COCOA 6020#ifdef NS_IMPL_COCOA
6021/* Needed to pick up Ctrl-tab and possibly other events that OS X has 6021/* Needed to pick up Ctrl-tab and possibly other events that Mac OS X
6022 decided not to send key-down for. 6022 decided not to send key-down for.
6023 See http://osdir.com/ml/editors.vim.mac/2007-10/msg00141.html 6023 See http://osdir.com/ml/editors.vim.mac/2007-10/msg00141.html
6024 This only applies on Tiger and earlier. 6024 This only applies on Tiger and earlier.
@@ -7176,8 +7176,8 @@ not_in_argv (NSString *arg)
7176#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7 7176#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7
7177 unsigned val = (unsigned)[NSApp presentationOptions]; 7177 unsigned val = (unsigned)[NSApp presentationOptions];
7178 7178
7179 // OSX 10.7 bug fix, the menu won't appear without this. 7179 // Mac OS X 10.7 bug fix, the menu won't appear without this.
7180 // val is non-zero on other OSX versions. 7180 // val is non-zero on other macOS versions.
7181 if (val == 0) 7181 if (val == 0)
7182 { 7182 {
7183 NSApplicationPresentationOptions options 7183 NSApplicationPresentationOptions options
@@ -7601,7 +7601,7 @@ not_in_argv (NSString *arg)
7601 unblock_input (); 7601 unblock_input ();
7602 7602
7603 /* 7603 /*
7604 drawRect: may be called (at least in OS X 10.5) for invisible 7604 drawRect: may be called (at least in Mac OS X 10.5) for invisible
7605 views as well for some reason. Thus, do not infer visibility 7605 views as well for some reason. Thus, do not infer visibility
7606 here. 7606 here.
7607 7607
@@ -8123,7 +8123,7 @@ not_in_argv (NSString *arg)
8123 [self setEnabled: YES]; 8123 [self setEnabled: YES];
8124 8124
8125 /* Ensure auto resizing of scrollbars occurs within the emacs frame's view 8125 /* Ensure auto resizing of scrollbars occurs within the emacs frame's view
8126 locked against the top and bottom edges, and right edge on OS X, where 8126 locked against the top and bottom edges, and right edge on macOS, where
8127 scrollers are on right. */ 8127 scrollers are on right. */
8128#ifdef NS_IMPL_GNUSTEP 8128#ifdef NS_IMPL_GNUSTEP
8129 [self setAutoresizingMask: NSViewMaxXMargin | NSViewHeightSizable]; 8129 [self setAutoresizingMask: NSViewMaxXMargin | NSViewHeightSizable];
@@ -8730,14 +8730,14 @@ allowing it to be used at a lower level for accented character entry.");
8730 8730
8731 DEFVAR_LISP ("ns-auto-hide-menu-bar", ns_auto_hide_menu_bar, 8731 DEFVAR_LISP ("ns-auto-hide-menu-bar", ns_auto_hide_menu_bar,
8732 doc: /* Non-nil means that the menu bar is hidden, but appears when the mouse is near. 8732 doc: /* Non-nil means that the menu bar is hidden, but appears when the mouse is near.
8733Only works on OSX 10.6 or later. */); 8733Only works on Mac OS X 10.6 or later. */);
8734 ns_auto_hide_menu_bar = Qnil; 8734 ns_auto_hide_menu_bar = Qnil;
8735 8735
8736 DEFVAR_BOOL ("ns-use-native-fullscreen", ns_use_native_fullscreen, 8736 DEFVAR_BOOL ("ns-use-native-fullscreen", ns_use_native_fullscreen,
8737 doc: /*Non-nil means to use native fullscreen on OSX >= 10.7. 8737 doc: /*Non-nil means to use native fullscreen on Mac OS X 10.7 and later.
8738Nil means use fullscreen the old (< 10.7) way. The old way works better with 8738Nil means use fullscreen the old (< 10.7) way. The old way works better with
8739multiple monitors, but lacks tool bar. This variable is ignored on OSX < 10.7. 8739multiple monitors, but lacks tool bar. This variable is ignored on
8740Default is t for OSX >= 10.7, nil otherwise. */); 8740Mac OS X < 10.7. Default is t for 10.7 and later, nil otherwise. */);
8741#ifdef HAVE_NATIVE_FS 8741#ifdef HAVE_NATIVE_FS
8742 ns_use_native_fullscreen = YES; 8742 ns_use_native_fullscreen = YES;
8743#else 8743#else
@@ -8752,9 +8752,9 @@ Default is nil. */);
8752 ns_use_fullscreen_animation = NO; 8752 ns_use_fullscreen_animation = NO;
8753 8753
8754 DEFVAR_BOOL ("ns-use-srgb-colorspace", ns_use_srgb_colorspace, 8754 DEFVAR_BOOL ("ns-use-srgb-colorspace", ns_use_srgb_colorspace,
8755 doc: /*Non-nil means to use sRGB colorspace on OSX >= 10.7. 8755 doc: /*Non-nil means to use sRGB colorspace on Mac OS X 10.7 and later.
8756Note that this does not apply to images. 8756Note that this does not apply to images.
8757This variable is ignored on OSX < 10.7 and GNUstep. */); 8757This variable is ignored on Mac OS X < 10.7 and GNUstep. */);
8758 ns_use_srgb_colorspace = YES; 8758 ns_use_srgb_colorspace = YES;
8759 8759
8760 /* TODO: move to common code */ 8760 /* TODO: move to common code */
diff --git a/src/sysdep.c b/src/sysdep.c
index 460166d119e..674e76db7a0 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -2337,7 +2337,7 @@ posix_close (int fd, int flag)
2337 closed, and retrying the close could inadvertently close a file 2337 closed, and retrying the close could inadvertently close a file
2338 descriptor allocated by some other thread. In other systems 2338 descriptor allocated by some other thread. In other systems
2339 (e.g., HP/UX) FD is not closed. And in still other systems 2339 (e.g., HP/UX) FD is not closed. And in still other systems
2340 (e.g., OS X, Solaris), maybe FD is closed, maybe not, and in a 2340 (e.g., macOS, Solaris), maybe FD is closed, maybe not, and in a
2341 multithreaded program there can be no way to tell. 2341 multithreaded program there can be no way to tell.
2342 2342
2343 So, in this case, pretend that the close succeeded. This works 2343 So, in this case, pretend that the close succeeded. This works
diff --git a/src/unexmacosx.c b/src/unexmacosx.c
index bdacc8b540b..f755f7fafd9 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
@@ -118,9 +118,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
118 118
119#include <assert.h> 119#include <assert.h>
120 120
121/* LC_DATA_IN_CODE is not defined in mach-o/loader.h on OS X 10.7. 121/* LC_DATA_IN_CODE is not defined in mach-o/loader.h on Mac OS X 10.7.
122 But it is used if we build with "Command Line Tools for Xcode 4.5 122 But it is used if we build with "Command Line Tools for Xcode 4.5
123 (OS X Lion) - September 2012". */ 123 (Mac OS X Lion) - September 2012". */
124#ifndef LC_DATA_IN_CODE 124#ifndef LC_DATA_IN_CODE
125#define LC_DATA_IN_CODE 0x29 /* table of non-instructions in __text */ 125#define LC_DATA_IN_CODE 0x29 /* table of non-instructions in __text */
126#endif 126#endif