aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorPaul Eggert2016-11-19 14:31:05 -0800
committerPaul Eggert2016-11-19 14:31:05 -0800
commitc61ee94959ba96b2a327df0684593f7e569e30be (patch)
tree33e7b6bdb654b45ebeed805f48b1324b2ab038ec /lisp
parentb19e05b13192f72991b65b4b352e09c807fd581c (diff)
parent4af5981dc75c96e34a27922001106df05ee19e69 (diff)
downloademacs-c61ee94959ba96b2a327df0684593f7e569e30be.tar.gz
emacs-c61ee94959ba96b2a327df0684593f7e569e30be.zip
Merge from origin/emacs-25
4af5981 Add a comment in generated refcards about the source ef880a5 ; * etc/refcards/calccard.tex: Remove obsolete comment. 4887e7c js-mode: Fix indent problem after a regexp e992ac0 Fix sluggish display of symbols in UTF-8 language environment 1fc101b Don't confuse how Texinfo outputs @var with the input 91aa5d1 * doc/lispref/display.texi (Scroll Bars): * doc/lispref/frame... f758fcd * doc/emacs/cmdargs.texi (Initial Options): Copyedit for --da... 5b0cddd More fixes in copyright notices in etc/refcards/ f994c20 Update copyright text in refcards 9ad2ae7 Fix Outline command names 26c3554 Send text received by bracketed paste to process db0b58d Correct the statement about programming modes always running ... 78aece4 Improve documentation of 'occur' eb364fd Do call debugger on failed cl-assert 3ef4ee8 Avoid infloop in python 8da810f Don't refer to obsolete FEATURE-unload-hook 4f478ca Improve documentation of dabbrevs 7272e5d * lisp/chistory.el (list-command-history): Doc fix. (Bug#24890) 89b7482 * lisp/simple.el (set-mark-command): Doc fix. (Bug#24890) 3b199f7 Improve documentation of some Help commands 93d3a0e Fix documentation of yes-or-no prompts af04919 Fix documentation of partial completion style ed80184 Fix documentation of the mode line on emacsclient frames e6be855 Fix description of 'C-z' in User manual 16f7007 Improve and clarify documentation of Outline Mode 31d93aa Add Emacs version number to nt/README.W32 0b6b815 Fix python-mode hideshow regexp dc152c5 Modernize usage of 'macOS' in doc and comments 84c5343 Prefer comments /* like this */ in C code bb61e50 * doc/lispref/loading.texi (Autoload): Better link (Bug#24845). 3ef86fd Clarify documentation of face attribute functions de51d59 ; * nt/README.W32: Minor copyedits. db436e9 Don't call debug on failed cl-assert # Conflicts: # doc/emacs/cmdargs.texi # etc/NEWS # etc/PROBLEMS # lisp/auth-source.el # lisp/net/tramp-sh.el
Diffstat (limited to 'lisp')
-rw-r--r--lisp/arc-mode.el2
-rw-r--r--lisp/auth-source.el16
-rw-r--r--lisp/battery.el6
-rw-r--r--lisp/cedet/semantic/bovine/gcc.el2
-rw-r--r--lisp/chistory.el2
-rw-r--r--lisp/dabbrev.el5
-rw-r--r--lisp/emacs-lisp/cl-preloaded.el2
-rw-r--r--lisp/faces.el2
-rw-r--r--lisp/international/fontset.el5
-rw-r--r--lisp/international/mule-cmds.el2
-rw-r--r--lisp/international/ucs-normalize.el2
-rw-r--r--lisp/ls-lisp.el2
-rw-r--r--lisp/mail/emacsbug.el4
-rw-r--r--lisp/man.el2
-rw-r--r--lisp/menu-bar.el2
-rw-r--r--lisp/net/ange-ftp.el2
-rw-r--r--lisp/net/browse-url.el6
-rw-r--r--lisp/net/tramp-sh.el6
-rw-r--r--lisp/net/tramp.el2
-rw-r--r--lisp/org/org.el4
-rw-r--r--lisp/outline.el13
-rw-r--r--lisp/printing.el2
-rw-r--r--lisp/progmodes/gdb-mi.el10
-rw-r--r--lisp/progmodes/idlwave.el18
-rw-r--r--lisp/progmodes/js.el4
-rw-r--r--lisp/progmodes/python.el4
-rw-r--r--lisp/simple.el4
-rw-r--r--lisp/term.el8
-rw-r--r--lisp/term/ns-win.el14
-rw-r--r--lisp/term/xterm.el2
-rw-r--r--lisp/textmodes/rst.el2
-rw-r--r--lisp/vc/pcvs.el4
32 files changed, 92 insertions, 69 deletions
diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el
index b5373c607d4..c42ca813e96 100644
--- a/lisp/arc-mode.el
+++ b/lisp/arc-mode.el
@@ -1646,7 +1646,7 @@ This doesn't recover lost files, it just undoes changes in the buffer itself."
1646 ;; converts "\" to "/". 1646 ;; converts "\" to "/".
1647 ;; - For 0 generic: generic_to_unix_filename() downcases if there's 1647 ;; - For 0 generic: generic_to_unix_filename() downcases if there's
1648 ;; no lower case already present, and converts "\" to "/". 1648 ;; no lower case already present, and converts "\" to "/".
1649 ;; - For 'm' MacOS: macos_to_unix_filename() changes "/" to ":" and 1649 ;; - For 'm' macOS: macos_to_unix_filename() changes "/" to ":" and
1650 ;; ":" to "/" 1650 ;; ":" to "/"
1651 (setq fiddle (cond ((= ?M osid) t) 1651 (setq fiddle (cond ((= ?M osid) t)
1652 ((= 0 osid) (string= efnname (upcase efnname))))) 1652 ((= 0 osid) (string= efnname (upcase efnname)))))
diff --git a/lisp/auth-source.el b/lisp/auth-source.el
index 96693644ceb..62d9a4521c0 100644
--- a/lisp/auth-source.el
+++ b/lisp/auth-source.el
@@ -417,13 +417,13 @@ with \"[a/b/c] \" if CHOICES is \(?a ?b ?c)."
417 ;; Keychain collection matching any user, host, and protocol 417 ;; Keychain collection matching any user, host, and protocol
418 ((eq entry 'macos-keychain-generic) 418 ((eq entry 'macos-keychain-generic)
419 (auth-source-backend-parse '(:source (:macos-keychain-generic default)))) 419 (auth-source-backend-parse '(:source (:macos-keychain-generic default))))
420 ;; take macos-keychain-internet:XYZ and recurse to get it as MacOS 420 ;; take macos-keychain-internet:XYZ and recurse to get it as macOS
421 ;; Keychain "XYZ" matching any user, host, and protocol 421 ;; Keychain "XYZ" matching any user, host, and protocol
422 ((and (stringp entry) (string-match "^macos-keychain-internet:\\(.+\\)" 422 ((and (stringp entry) (string-match "^macos-keychain-internet:\\(.+\\)"
423 entry)) 423 entry))
424 (auth-source-backend-parse `(:source (:macos-keychain-internet 424 (auth-source-backend-parse `(:source (:macos-keychain-internet
425 ,(match-string 1 entry))))) 425 ,(match-string 1 entry)))))
426 ;; take macos-keychain-generic:XYZ and recurse to get it as MacOS 426 ;; take macos-keychain-generic:XYZ and recurse to get it as macOS
427 ;; Keychain "XYZ" matching any user, host, and protocol 427 ;; Keychain "XYZ" matching any user, host, and protocol
428 ((and (stringp entry) (string-match "^macos-keychain-generic:\\(.+\\)" 428 ((and (stringp entry) (string-match "^macos-keychain-generic:\\(.+\\)"
429 entry)) 429 entry))
@@ -452,7 +452,7 @@ with \"[a/b/c] \" if CHOICES is \(?a ?b ?c)."
452 :search-function #'auth-source-netrc-search 452 :search-function #'auth-source-netrc-search
453 :create-function #'auth-source-netrc-create))) 453 :create-function #'auth-source-netrc-create)))
454 454
455 ;; the MacOS Keychain 455 ;; the macOS Keychain
456 ((and 456 ((and
457 (not (null (plist-get entry :source))) ; the source must not be nil 457 (not (null (plist-get entry :source))) ; the source must not be nil
458 (listp (plist-get entry :source)) ; and it must be a list 458 (listp (plist-get entry :source)) ; and it must be a list
@@ -1647,7 +1647,7 @@ authentication tokens:
1647(cl-defun auth-source-macos-keychain-search (&rest spec 1647(cl-defun auth-source-macos-keychain-search (&rest spec
1648 &key backend create delete type max 1648 &key backend create delete type max
1649 &allow-other-keys) 1649 &allow-other-keys)
1650 "Search the MacOS Keychain; spec is like `auth-source'. 1650 "Search the macOS Keychain; spec is like `auth-source'.
1651 1651
1652All search keys must match exactly. If you need substring 1652All search keys must match exactly. If you need substring
1653matching, do a wider search and narrow it down yourself. 1653matching, do a wider search and narrow it down yourself.
@@ -1669,13 +1669,13 @@ Similarly, :host maps to \"-c HOST\" (the \"creator\" keychain
1669field), :user maps to \"-a USER\", and :port maps to \"-s PORT\". 1669field), :user maps to \"-a USER\", and :port maps to \"-s PORT\".
1670 1670
1671Here's an example that looks for the first item in the default 1671Here's an example that looks for the first item in the default
1672generic MacOS Keychain: 1672generic macOS Keychain:
1673 1673
1674 (let ((auth-sources \\='(macos-keychain-generic))) 1674 (let ((auth-sources \\='(macos-keychain-generic)))
1675 (auth-source-search :max 1) 1675 (auth-source-search :max 1)
1676 1676
1677Here's another that looks for the first item in the internet 1677Here's another that looks for the first item in the internet
1678MacOS Keychain collection whose label is `gnus': 1678macOS Keychain collection whose label is `gnus':
1679 1679
1680 (let ((auth-sources \\='(macos-keychain-internet))) 1680 (let ((auth-sources \\='(macos-keychain-internet)))
1681 (auth-source-search :max 1 :label \"gnus\") 1681 (auth-source-search :max 1 :label \"gnus\")
@@ -1688,11 +1688,11 @@ entries for git.gnus.org:
1688" 1688"
1689 ;; TODO 1689 ;; TODO
1690 (cl-assert (not create) nil 1690 (cl-assert (not create) nil
1691 "The MacOS Keychain auth-source backend doesn't support creation yet") 1691 "The macOS Keychain auth-source backend doesn't support creation yet")
1692 ;; TODO 1692 ;; TODO
1693 ;; (macos-keychain-delete-item coll elt) 1693 ;; (macos-keychain-delete-item coll elt)
1694 (cl-assert (not delete) nil 1694 (cl-assert (not delete) nil
1695 "The MacOS Keychain auth-source backend doesn't support deletion yet") 1695 "The macOS Keychain auth-source backend doesn't support deletion yet")
1696 1696
1697 (let* ((coll (oref backend source)) 1697 (let* ((coll (oref backend source))
1698 (max (or max 5000)) ; sanity check: default to stop at 5K 1698 (max (or max 5000)) ; sanity check: default to stop at 5K
diff --git a/lisp/battery.el b/lisp/battery.el
index 10a34034019..24eb8a58f63 100644
--- a/lisp/battery.el
+++ b/lisp/battery.el
@@ -22,10 +22,10 @@
22 22
23;;; Commentary: 23;;; Commentary:
24 24
25;; There is at present support for GNU/Linux, OS X and Windows. This 25;; There is at present support for GNU/Linux, macOS and Windows. This
26;; library supports both the `/proc/apm' file format of Linux version 26;; library supports both the `/proc/apm' file format of Linux version
27;; 1.3.58 or newer and the `/proc/acpi/' directory structure of Linux 27;; 1.3.58 or newer and the `/proc/acpi/' directory structure of Linux
28;; 2.4.20 and 2.6. Darwin (OS X) is supported by using the `pmset' 28;; 2.4.20 and 2.6. Darwin (macOS) is supported by using the `pmset'
29;; program. Windows is supported by the GetSystemPowerStatus API call. 29;; program. Windows is supported by the GetSystemPowerStatus API call.
30 30
31;;; Code: 31;;; Code:
@@ -604,7 +604,7 @@ The following %-sequences are provided:
604 (cons ?t (or remaining-time "N/A"))))) 604 (cons ?t (or remaining-time "N/A")))))
605 605
606 606
607;;; `pmset' interface for Darwin (OS X). 607;;; `pmset' interface for Darwin (macOS).
608 608
609(defun battery-pmset () 609(defun battery-pmset ()
610 "Get battery status information using `pmset'. 610 "Get battery status information using `pmset'.
diff --git a/lisp/cedet/semantic/bovine/gcc.el b/lisp/cedet/semantic/bovine/gcc.el
index ec292395f12..b56b268ca0d 100644
--- a/lisp/cedet/semantic/bovine/gcc.el
+++ b/lisp/cedet/semantic/bovine/gcc.el
@@ -225,7 +225,7 @@ It should also include other symbols GCC was compiled with.")
225 (setq semantic-lex-c-preprocessor-symbol-map nil)) 225 (setq semantic-lex-c-preprocessor-symbol-map nil))
226 (dolist (D defines) 226 (dolist (D defines)
227 (add-to-list 'semantic-lex-c-preprocessor-symbol-map D)) 227 (add-to-list 'semantic-lex-c-preprocessor-symbol-map D))
228 ;; Needed for parsing OS X libc 228 ;; Needed for parsing macOS libc
229 (when (eq system-type 'darwin) 229 (when (eq system-type 'darwin)
230 (add-to-list 'semantic-lex-c-preprocessor-symbol-map '("__i386__" . ""))) 230 (add-to-list 'semantic-lex-c-preprocessor-symbol-map '("__i386__" . "")))
231 (when (featurep 'semantic/bovine/c) 231 (when (featurep 'semantic/bovine/c)
diff --git a/lisp/chistory.el b/lisp/chistory.el
index 6f8a74b2a67..be5393720ac 100644
--- a/lisp/chistory.el
+++ b/lisp/chistory.el
@@ -95,7 +95,7 @@ from the command history."
95 95
96;;;###autoload 96;;;###autoload
97(defun list-command-history () 97(defun list-command-history ()
98 "List history of commands typed to minibuffer. 98 "List history of commands that used the minibuffer.
99The number of commands listed is controlled by `list-command-history-max'. 99The number of commands listed is controlled by `list-command-history-max'.
100Calls value of `list-command-history-filter' (if non-nil) on each history 100Calls value of `list-command-history-filter' (if non-nil) on each history
101element to judge if that element should be excluded from the list. 101element to judge if that element should be excluded from the list.
diff --git a/lisp/dabbrev.el b/lisp/dabbrev.el
index d9f36b15290..438eda3776d 100644
--- a/lisp/dabbrev.el
+++ b/lisp/dabbrev.el
@@ -433,7 +433,10 @@ Expands to the most recent, preceding word for which this is a prefix.
433If no suitable preceding word is found, words following point are 433If no suitable preceding word is found, words following point are
434considered. If still no suitable word is found, then look in the 434considered. If still no suitable word is found, then look in the
435buffers accepted by the function pointed out by variable 435buffers accepted by the function pointed out by variable
436`dabbrev-friend-buffer-function'. 436`dabbrev-friend-buffer-function', if `dabbrev-check-other-buffers'
437says so. Then, if `dabbrev-check-all-buffers' is non-nil, look in
438all the other buffers, subject to constraints specified
439by `dabbrev-ignored-buffer-names' and `dabbrev-ignored-regexps'.
437 440
438A positive prefix argument, N, says to take the Nth backward *distinct* 441A positive prefix argument, N, says to take the Nth backward *distinct*
439possibility. A negative argument says search forward. 442possibility. A negative argument says search forward.
diff --git a/lisp/emacs-lisp/cl-preloaded.el b/lisp/emacs-lisp/cl-preloaded.el
index cd1d700f1b0..2b022c49053 100644
--- a/lisp/emacs-lisp/cl-preloaded.el
+++ b/lisp/emacs-lisp/cl-preloaded.el
@@ -45,7 +45,7 @@
45 45
46(defun cl--assertion-failed (form &optional string sargs args) 46(defun cl--assertion-failed (form &optional string sargs args)
47 (if debug-on-error 47 (if debug-on-error
48 (debug `(cl-assertion-failed ,form ,string ,@sargs)) 48 (funcall debugger `(cl-assertion-failed ,form ,string ,@sargs))
49 (if string 49 (if string
50 (apply #'error string (append sargs args)) 50 (apply #'error string (append sargs args))
51 (signal 'cl-assertion-failed `(,form ,@sargs))))) 51 (signal 'cl-assertion-failed `(,form ,@sargs)))))
diff --git a/lisp/faces.el b/lisp/faces.el
index 6e3b08cb02b..f536015e981 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -108,7 +108,7 @@ a font height that isn't optimal."
108 "Courier 10 Pitch" 108 "Courier 10 Pitch"
109 ;; This looks good on MS-Windows and OS X. 109 ;; This looks good on MS-Windows and OS X.
110 "Consolas" 110 "Consolas"
111 ;; This looks good on OS X. "Courier" looks good too, but is 111 ;; This looks good on macOS. "Courier" looks good too, but is
112 ;; jagged on GNU/Linux and so is listed later as "courier". 112 ;; jagged on GNU/Linux and so is listed later as "courier".
113 "Courier Std" 113 "Courier Std"
114 ;; Although these are anti-aliased, they are a bit faint compared 114 ;; Although these are anti-aliased, they are a bit faint compared
diff --git a/lisp/international/fontset.el b/lisp/international/fontset.el
index 612c0a08ad7..659f03a2a67 100644
--- a/lisp/international/fontset.el
+++ b/lisp/international/fontset.el
@@ -812,10 +812,11 @@
812 (#x1F700 . #x1F77F) ;; Alchemical Symbols 812 (#x1F700 . #x1F77F) ;; Alchemical Symbols
813 (#x1F780 . #x1F7FF) ;; Geometric Shapes Extended 813 (#x1F780 . #x1F7FF) ;; Geometric Shapes Extended
814 (#x1F800 . #x1F8FF))) ;; Supplemental Arrows-C 814 (#x1F800 . #x1F8FF))) ;; Supplemental Arrows-C
815 (set-fontset-font "fontset-default" symbol-subgroup "Symbola" nil 'prepend)) 815 (set-fontset-font "fontset-default" symbol-subgroup
816 '("Symbola" . "iso10646-1") nil 'prepend))
816 ;; Box Drawing and Block Elements 817 ;; Box Drawing and Block Elements
817 (set-fontset-font "fontset-default" '(#x2500 . #x259F) 818 (set-fontset-font "fontset-default" '(#x2500 . #x259F)
818 "FreeMono" nil 'prepend) 819 '("FreeMono" . "iso10646-1") nil 'prepend)
819 820
820 ;; Since standard-fontset-spec on X uses fixed-medium font, which 821 ;; Since standard-fontset-spec on X uses fixed-medium font, which
821 ;; gets mapped to a iso8859-1 variant, we would like to prefer its 822 ;; gets mapped to a iso8859-1 variant, we would like to prefer its
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index 28eec4f0df9..7543d0d734a 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -2723,7 +2723,7 @@ See also `locale-charset-language-names', `locale-language-names',
2723 ;; On Darwin, file names are always encoded in utf-8, no matter 2723 ;; On Darwin, file names are always encoded in utf-8, no matter
2724 ;; the locale. 2724 ;; the locale.
2725 (setq default-file-name-coding-system 'utf-8) 2725 (setq default-file-name-coding-system 'utf-8)
2726 ;; Mac OS X's Terminal.app by default uses utf-8 regardless of 2726 ;; macOS's Terminal.app by default uses utf-8 regardless of
2727 ;; the locale. 2727 ;; the locale.
2728 (when (and (null window-system) 2728 (when (and (null window-system)
2729 (equal (getenv "TERM_PROGRAM" frame) "Apple_Terminal")) 2729 (equal (getenv "TERM_PROGRAM" frame) "Apple_Terminal"))
diff --git a/lisp/international/ucs-normalize.el b/lisp/international/ucs-normalize.el
index cf2e81e20f2..b2bc622858d 100644
--- a/lisp/international/ucs-normalize.el
+++ b/lisp/international/ucs-normalize.el
@@ -621,7 +621,7 @@ COMPOSITION-PREDICATE will be used to compose region."
621 621
622;;; coding-system definition 622;;; coding-system definition
623(define-coding-system 'utf-8-hfs 623(define-coding-system 'utf-8-hfs
624 "UTF-8 based coding system for MacOS HFS file names. 624 "UTF-8 based coding system for macOS HFS file names.
625The singleton characters in HFS normalization exclusion will not 625The singleton characters in HFS normalization exclusion will not
626be decomposed." 626be decomposed."
627 :coding-type 'utf-8 627 :coding-type 'utf-8
diff --git a/lisp/ls-lisp.el b/lisp/ls-lisp.el
index 11cbea0b373..8395622546d 100644
--- a/lisp/ls-lisp.el
+++ b/lisp/ls-lisp.el
@@ -75,7 +75,7 @@
75 ((memq system-type '(hpux usg-unix-v berkeley-unix)) 75 ((memq system-type '(hpux usg-unix-v berkeley-unix))
76 'UNIX)) ; very similar to GNU 76 'UNIX)) ; very similar to GNU
77 ;; Anything else defaults to nil, meaning GNU. 77 ;; Anything else defaults to nil, meaning GNU.
78 "Platform to emulate: GNU (default), MacOS, MS-Windows, UNIX. 78 "Platform to emulate: GNU (default), macOS, MS-Windows, UNIX.
79Corresponding value is one of: nil, `MacOS', `MS-Windows', `UNIX'. 79Corresponding value is one of: nil, `MacOS', `MS-Windows', `UNIX'.
80Set this to your preferred value; it need not match the actual platform 80Set this to your preferred value; it need not match the actual platform
81you are using. 81you are using.
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el
index 18eaa22b34c..650fbfa13d2 100644
--- a/lisp/mail/emacsbug.el
+++ b/lisp/mail/emacsbug.el
@@ -72,7 +72,7 @@
72(defvar message-strip-special-text-properties) 72(defvar message-strip-special-text-properties)
73 73
74(defun report-emacs-bug-can-use-osx-open () 74(defun report-emacs-bug-can-use-osx-open ()
75 "Return non-nil if the OS X \"open\" command is available for mailing." 75 "Return non-nil if the macOS \"open\" command is available for mailing."
76 (and (featurep 'ns) 76 (and (featurep 'ns)
77 (equal (executable-find "open") "/usr/bin/open") 77 (equal (executable-find "open") "/usr/bin/open")
78 (memq system-type '(darwin)))) 78 (memq system-type '(darwin))))
@@ -107,7 +107,7 @@ This requires you to be running either Gnome, KDE, or Xfce4."
107 107
108(defun report-emacs-bug-insert-to-mailer () 108(defun report-emacs-bug-insert-to-mailer ()
109 "Send the message to your preferred mail client. 109 "Send the message to your preferred mail client.
110This requires either the OS X \"open\" command, or the freedesktop 110This requires either the macOS \"open\" command, or the freedesktop
111\"xdg-email\" command to be available." 111\"xdg-email\" command to be available."
112 (interactive) 112 (interactive)
113 (save-excursion 113 (save-excursion
diff --git a/lisp/man.el b/lisp/man.el
index 82691f5e9b7..a140e03d74a 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -881,7 +881,7 @@ test/automated/man-tests.el in the emacs repository."
881 (setq default-directory "/") ;; in case inherited doesn't exist 881 (setq default-directory "/") ;; in case inherited doesn't exist
882 ;; Actually for my `man' the arg is a regexp. 882 ;; Actually for my `man' the arg is a regexp.
883 ;; POSIX says it must be ERE and "man-db" seems to agree, 883 ;; POSIX says it must be ERE and "man-db" seems to agree,
884 ;; whereas under MacOSX it seems to be BRE-style and doesn't 884 ;; whereas under macOS it seems to be BRE-style and doesn't
885 ;; accept backslashes at all. Let's not bother to 885 ;; accept backslashes at all. Let's not bother to
886 ;; quote anything. 886 ;; quote anything.
887 (let ((process-environment (copy-sequence process-environment))) 887 (let ((process-environment (copy-sequence process-environment)))
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 9f3156d62b2..d21fa2cd61c 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -1865,7 +1865,7 @@ key, a click, or a menu-item"))
1865 '(menu-item "Emacs Tutorial" help-with-tutorial 1865 '(menu-item "Emacs Tutorial" help-with-tutorial
1866 :help "Learn how to use Emacs")) 1866 :help "Learn how to use Emacs"))
1867 1867
1868 ;; In OS X it's in the app menu already. 1868 ;; In macOS it's in the app menu already.
1869 ;; FIXME? There already is an "About Emacs" (sans ...) entry in the Help menu. 1869 ;; FIXME? There already is an "About Emacs" (sans ...) entry in the Help menu.
1870 (and (featurep 'ns) 1870 (and (featurep 'ns)
1871 (not (eq system-type 'darwin)) 1871 (not (eq system-type 'darwin))
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el
index 9ff9997e728..07c3daf7d7e 100644
--- a/lisp/net/ange-ftp.el
+++ b/lisp/net/ange-ftp.el
@@ -740,7 +740,7 @@ These mean that the FTP process should be (or already has been) killed."
740 :type 'regexp) 740 :type 'regexp)
741 741
742(defcustom ange-ftp-potential-error-msgs 742(defcustom ange-ftp-potential-error-msgs
743 ;; On Mac OS X we sometimes get things like: 743 ;; On macOS we sometimes get things like:
744 ;; 744 ;;
745 ;; ftp> open ftp.nluug.nl 745 ;; ftp> open ftp.nluug.nl
746 ;; Trying 2001:610:1:80aa:192:87:102:36... 746 ;; Trying 2001:610:1:80aa:192:87:102:36...
diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el
index 15f6df742cc..b2077d784c0 100644
--- a/lisp/net/browse-url.el
+++ b/lisp/net/browse-url.el
@@ -44,7 +44,7 @@
44;; browse-url-text-* Any text browser 0 44;; browse-url-text-* Any text browser 0
45;; browse-url-generic arbitrary 45;; browse-url-generic arbitrary
46;; browse-url-default-windows-browser MS-Windows browser 46;; browse-url-default-windows-browser MS-Windows browser
47;; browse-url-default-macosx-browser Mac OS X browser 47;; browse-url-default-macosx-browser macOS browser
48;; browse-url-xdg-open Free Desktop xdg-open on Gnome, KDE, Xfce4, LXDE 48;; browse-url-xdg-open Free Desktop xdg-open on Gnome, KDE, Xfce4, LXDE
49;; browse-url-kde KDE konqueror (kfm) 49;; browse-url-kde KDE konqueror (kfm)
50;; browse-url-elinks Elinks Don't know (tried with 0.12.GIT) 50;; browse-url-elinks Elinks Don't know (tried with 0.12.GIT)
@@ -162,7 +162,7 @@ regexp should probably be \".\" to specify a default browser."
162 :value browse-url-generic) 162 :value browse-url-generic)
163 (function-item :tag "Default Windows browser" 163 (function-item :tag "Default Windows browser"
164 :value browse-url-default-windows-browser) 164 :value browse-url-default-windows-browser)
165 (function-item :tag "Default Mac OS X browser" 165 (function-item :tag "Default macOS browser"
166 :value browse-url-default-macosx-browser) 166 :value browse-url-default-macosx-browser)
167 (function-item :tag "Default browser" 167 (function-item :tag "Default browser"
168 :value browse-url-default-browser) 168 :value browse-url-default-browser)
@@ -881,7 +881,7 @@ The optional NEW-WINDOW argument is not used."
881 (t (w32-shell-execute "open" url)))) 881 (t (w32-shell-execute "open" url))))
882 882
883(defun browse-url-default-macosx-browser (url &optional _new-window) 883(defun browse-url-default-macosx-browser (url &optional _new-window)
884 "Invoke the MacOS X system's default Web browser. 884 "Invoke the macOS system's default Web browser.
885The optional NEW-WINDOW argument is not used" 885The optional NEW-WINDOW argument is not used"
886 (interactive (browse-url-interactive-arg "URL: ")) 886 (interactive (browse-url-interactive-arg "URL: "))
887 (start-process (concat "open " url) nil "open" url)) 887 (start-process (concat "open " url) nil "open" url))
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 9496ebf7563..f44a4d37e78 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -1293,7 +1293,7 @@ target of the symlink differ."
1293 res-uid res-gid res-size res-symlink-target) 1293 res-uid res-gid res-size res-symlink-target)
1294 (tramp-message vec 5 "file attributes with ls: %s" localname) 1294 (tramp-message vec 5 "file attributes with ls: %s" localname)
1295 ;; We cannot send all three commands combined, it could exceed 1295 ;; We cannot send all three commands combined, it could exceed
1296 ;; NAME_MAX or PATH_MAX. Happened on Mac OS X, for example. 1296 ;; NAME_MAX or PATH_MAX. Happened on macOS, for example.
1297 (when (or (tramp-send-command-and-check 1297 (when (or (tramp-send-command-and-check
1298 vec 1298 vec
1299 (format "%s %s" 1299 (format "%s %s"
@@ -4123,7 +4123,7 @@ process to set up. VEC specifies the connection."
4123 (goto-char (point-min)) 4123 (goto-char (point-min))
4124 (when (search-forward "\r" nil t) 4124 (when (search-forward "\r" nil t)
4125 (setq cs-decode (coding-system-change-eol-conversion cs-decode 'dos))) 4125 (setq cs-decode (coding-system-change-eol-conversion cs-decode 'dos)))
4126 ;; Special setting for Mac OS X. 4126 ;; Special setting for macOS.
4127 (when (and (string-match "^Darwin" uname) 4127 (when (and (string-match "^Darwin" uname)
4128 (memq 'utf-8-hfs (coding-system-list))) 4128 (memq 'utf-8-hfs (coding-system-list)))
4129 (setq cs-decode 'utf-8-hfs 4129 (setq cs-decode 'utf-8-hfs
@@ -4178,7 +4178,7 @@ process to set up. VEC specifies the connection."
4178 (tramp-send-command vec "stty tabs" t) 4178 (tramp-send-command vec "stty tabs" t)
4179 (tramp-send-command vec "stty tab0" t)) 4179 (tramp-send-command vec "stty tab0" t))
4180 4180
4181 ;; Set utf8 encoding. Needed for Mac OS X, for example. This is 4181 ;; Set utf8 encoding. Needed for macOS, for example. This is
4182 ;; non-POSIX, so we must expect errors on some systems. 4182 ;; non-POSIX, so we must expect errors on some systems.
4183 (tramp-send-command vec "stty iutf8 2>/dev/null" t) 4183 (tramp-send-command vec "stty iutf8 2>/dev/null" t)
4184 4184
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index e9697ff2e1e..60199d2047e 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -981,7 +981,7 @@ this variable to be set as well."
981 :require 'tramp) 981 :require 'tramp)
982 982
983;; Logging in to a remote host normally requires obtaining a pty. But 983;; Logging in to a remote host normally requires obtaining a pty. But
984;; Emacs on MacOS X has process-connection-type set to nil by default, 984;; Emacs on macOS has process-connection-type set to nil by default,
985;; so on those systems Tramp doesn't obtain a pty. Here, we allow 985;; so on those systems Tramp doesn't obtain a pty. Here, we allow
986;; for an override of the system default. 986;; for an override of the system default.
987(defcustom tramp-process-connection-type t 987(defcustom tramp-process-connection-type t
diff --git a/lisp/org/org.el b/lisp/org/org.el
index 30ef5e83bdd..15f45822026 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -1940,7 +1940,7 @@ See `org-file-apps'.")
1940 ("eps.gz" . "gv %s") 1940 ("eps.gz" . "gv %s")
1941 ("dvi" . "xdvi %s") 1941 ("dvi" . "xdvi %s")
1942 ("fig" . "xfig %s")) 1942 ("fig" . "xfig %s"))
1943 "Default file applications on a MacOS X system. 1943 "Default file applications on a macOS system.
1944The system \"open\" is known as a default, but we use X11 applications 1944The system \"open\" is known as a default, but we use X11 applications
1945for some files for which the OS does not have a good default. 1945for some files for which the OS does not have a good default.
1946See `org-file-apps'.") 1946See `org-file-apps'.")
@@ -2015,7 +2015,7 @@ file identifier are
2015 (\"html\" . default) to the list as well. 2015 (\"html\" . default) to the list as well.
2016 t Default for files not matched by any of the other options. 2016 t Default for files not matched by any of the other options.
2017 `system' The system command to open files, like `open' on Windows 2017 `system' The system command to open files, like `open' on Windows
2018 and Mac OS X, and mailcap under GNU/Linux. This is the command 2018 and macOS, and mailcap under GNU/Linux. This is the command
2019 that will be selected if you call `C-c C-o' with a double 2019 that will be selected if you call `C-c C-o' with a double
2020 \\[universal-argument] \\[universal-argument] prefix. 2020 \\[universal-argument] \\[universal-argument] prefix.
2021 2021
diff --git a/lisp/outline.el b/lisp/outline.el
index 6345bb59df4..dca5f1a7de8 100644
--- a/lisp/outline.el
+++ b/lisp/outline.el
@@ -788,7 +788,8 @@ Show the heading too, if it is currently invisible."
788 'show-entry 'outline-show-entry "25.1") 788 'show-entry 'outline-show-entry "25.1")
789 789
790(defun outline-hide-body () 790(defun outline-hide-body ()
791 "Hide all body lines in buffer, leaving all headings visible." 791 "Hide all body lines in buffer, leaving all headings visible.
792Note that this does not hide the lines preceding the first heading line."
792 (interactive) 793 (interactive)
793 (outline-hide-region-body (point-min) (point-max))) 794 (outline-hide-region-body (point-min) (point-max)))
794 795
@@ -868,7 +869,12 @@ Show the heading too, if it is currently invisible."
868 nil)) 869 nil))
869 870
870(defun outline-hide-sublevels (levels) 871(defun outline-hide-sublevels (levels)
871 "Hide everything but the top LEVELS levels of headers, in whole buffer." 872 "Hide everything but the top LEVELS levels of headers, in whole buffer.
873This also unhides the top heading-less body, if any.
874
875Interactively, the prefix argument supplies the value of LEVELS.
876When invoked without a prefix argument, LEVELS defaults to the level
877of the current heading, or to 1 if the current line is not a heading."
872 (interactive (list 878 (interactive (list
873 (cond 879 (cond
874 (current-prefix-arg (prefix-numeric-value current-prefix-arg)) 880 (current-prefix-arg (prefix-numeric-value current-prefix-arg))
@@ -909,7 +915,8 @@ Show the heading too, if it is currently invisible."
909 'hide-sublevels 'outline-hide-sublevels "25.1") 915 'hide-sublevels 'outline-hide-sublevels "25.1")
910 916
911(defun outline-hide-other () 917(defun outline-hide-other ()
912 "Hide everything except current body and parent and top-level headings." 918 "Hide everything except current body and parent and top-level headings.
919This also unhides the top heading-less body, if any."
913 (interactive) 920 (interactive)
914 (outline-hide-sublevels 1) 921 (outline-hide-sublevels 1)
915 (let (outline-view-change-hook) 922 (let (outline-view-change-hook)
diff --git a/lisp/printing.el b/lisp/printing.el
index 7cdfb49a90f..7cf0afbf1fd 100644
--- a/lisp/printing.el
+++ b/lisp/printing.el
@@ -2272,7 +2272,7 @@ Useful links:
2272* gv 3.5, June 1997 2272* gv 3.5, June 1997
2273 `http://www.cs.wisc.edu/~ghost/gv/gv_doc/gv.html' 2273 `http://www.cs.wisc.edu/~ghost/gv/gv_doc/gv.html'
2274 2274
2275* MacGSView (MacOS) 2275* MacGSView (Mac OS)
2276 `http://www.cs.wisc.edu/~ghost/macos/index.htm' 2276 `http://www.cs.wisc.edu/~ghost/macos/index.htm'
2277" 2277"
2278 :type '(string :tag "Ghostview Utility") 2278 :type '(string :tag "Ghostview Utility")
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
index a2d4f143509..4f8709a21d7 100644
--- a/lisp/progmodes/gdb-mi.el
+++ b/lisp/progmodes/gdb-mi.el
@@ -69,12 +69,12 @@
69;; 2) Use MinGW GDB instead. 69;; 2) Use MinGW GDB instead.
70;; 3) Use cygwin-mount.el 70;; 3) Use cygwin-mount.el
71 71
72;;; Mac OSX: 72;;; macOS:
73 73
74;; GDB in Emacs on Mac OSX works best with FSF GDB as Apple have made 74;; GDB in Emacs on macOS works best with FSF GDB as Apple have made
75;; some changes to the version that they include as part of Mac OSX. 75;; some changes to the version that they include as part of macOS.
76;; This requires GDB version 7.0 or later (estimated release date Aug 2009) 76;; This requires GDB version 7.0 or later as earlier versions do not
77;; as earlier versions do not compile on Mac OSX. 77;; compile on macOS.
78 78
79;;; Known Bugs: 79;;; Known Bugs:
80 80
diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el
index 9cb2ca74063..bc607ac4019 100644
--- a/lisp/progmodes/idlwave.el
+++ b/lisp/progmodes/idlwave.el
@@ -420,22 +420,22 @@ A value of t means to show all source files."
420 :type 'integer) 420 :type 'integer)
421 421
422(defcustom idlwave-library-path nil 422(defcustom idlwave-library-path nil
423 "Library path for Windows and MacOS (OS9). Not needed under UNIX. 423 "Library path for Windows and Mac OS (OS9). Not needed under UNIX.
424When selecting the directories to scan for IDL user catalog routine 424When selecting the directories to scan for IDL user catalog routine
425info, IDLWAVE can, under UNIX, query the shell for the exact search 425info, IDLWAVE can, under UNIX, query the shell for the exact search
426path \(the value of !PATH). However, under Windows and MacOS 426path (the value of !PATH). However, under MS-Windows, the
427\(pre-OSX), the IDLWAVE shell does not work. In this case, this 427IDLWAVE shell does not work. In this case, this variable can be
428variable can be set to specify the paths where IDLWAVE can find PRO 428set to specify the paths where IDLWAVE can find PRO files. The
429files. The shell will only be asked for a list of paths when this 429shell will only be asked for a list of paths when this variable
430variable is nil. The value is a list of directories. A directory 430is nil. The value is a list of directories. A directory
431preceded by a `+' will be searched recursively. If you set this 431preceded by a `+' will be searched recursively. If you set this
432variable on a UNIX system, the shell will not be queried. See also 432variable on a UNIX system, the shell will not be queried. See
433`idlwave-system-directory'." 433also `idlwave-system-directory'."
434 :group 'idlwave-routine-info 434 :group 'idlwave-routine-info
435 :type '(repeat (directory))) 435 :type '(repeat (directory)))
436 436
437(defcustom idlwave-system-directory "" 437(defcustom idlwave-system-directory ""
438 "The IDL system directory for Windows and MacOS. Not needed under 438 "The IDL system directory for Windows and Mac OS. Not needed under
439UNIX. Set this to the value of the `!DIR' system variable in IDL. 439UNIX. Set this to the value of the `!DIR' system variable in IDL.
440IDLWAVE uses this to find out which of the library routines belong to 440IDLWAVE uses this to find out which of the library routines belong to
441the official system library. All files inside the `lib' subdirectory 441the official system library. All files inside the `lib' subdirectory
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index 5d5d101835a..6fff981c6bd 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -1758,6 +1758,10 @@ This performs fontification according to `js--class-styles'."
1758 (and (js--re-search-backward "[?:{]\\|\\_<case\\_>" nil t) 1758 (and (js--re-search-backward "[?:{]\\|\\_<case\\_>" nil t)
1759 (eq (char-after) ??)))) 1759 (eq (char-after) ??))))
1760 (not (and 1760 (not (and
1761 (eq (char-after) ?/)
1762 (save-excursion
1763 (eq (nth 3 (syntax-ppss)) ?/))))
1764 (not (and
1761 (eq (char-after) ?*) 1765 (eq (char-after) ?*)
1762 ;; Generator method (possibly using computed property). 1766 ;; Generator method (possibly using computed property).
1763 (looking-at (concat "\\* *\\(?:\\[\\|" js--name-re " *(\\)")) 1767 (looking-at (concat "\\* *\\(?:\\[\\|" js--name-re " *(\\)"))
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 9cd9cc8b7c0..be96ac32a01 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2436,7 +2436,7 @@ banner and the initial prompt are received separately."
2436(defun python-shell-comint-end-of-output-p (output) 2436(defun python-shell-comint-end-of-output-p (output)
2437 "Return non-nil if OUTPUT is ends with input prompt." 2437 "Return non-nil if OUTPUT is ends with input prompt."
2438 (string-match 2438 (string-match
2439 ;; XXX: It seems on OSX an extra carriage return is attached 2439 ;; XXX: It seems on macOS an extra carriage return is attached
2440 ;; at the end of output, this handles that too. 2440 ;; at the end of output, this handles that too.
2441 (concat 2441 (concat
2442 "\r?\n?" 2442 "\r?\n?"
@@ -5170,7 +5170,7 @@ returned as is."
5170 (add-to-list 5170 (add-to-list
5171 'hs-special-modes-alist 5171 'hs-special-modes-alist
5172 `(python-mode 5172 `(python-mode
5173 "\\s-*\\(?:def\\|class\\)\\>" 5173 "\\s-*\\_<\\(?:def\\|class\\)\\_>"
5174 ;; Use the empty string as end regexp so it doesn't default to 5174 ;; Use the empty string as end regexp so it doesn't default to
5175 ;; "\\s)". This way parens at end of defun are properly hidden. 5175 ;; "\\s)". This way parens at end of defun are properly hidden.
5176 "" 5176 ""
diff --git a/lisp/simple.el b/lisp/simple.el
index 2506c4a59a8..91dee30b218 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -5517,13 +5517,13 @@ after C-u \\[set-mark-command]."
5517 :group 'editing-basics) 5517 :group 'editing-basics)
5518 5518
5519(defun set-mark-command (arg) 5519(defun set-mark-command (arg)
5520 "Set the mark where point is, or jump to the mark. 5520 "Set the mark where point is, and activate it; or jump to the mark.
5521Setting the mark also alters the region, which is the text 5521Setting the mark also alters the region, which is the text
5522between point and mark; this is the closest equivalent in 5522between point and mark; this is the closest equivalent in
5523Emacs to what some editors call the \"selection\". 5523Emacs to what some editors call the \"selection\".
5524 5524
5525With no prefix argument, set the mark at point, and push the 5525With no prefix argument, set the mark at point, and push the
5526old mark position on local mark ring. Also push the old mark on 5526old mark position on local mark ring. Also push the new mark on
5527global mark ring, if the previous mark was set in another buffer. 5527global mark ring, if the previous mark was set in another buffer.
5528 5528
5529When Transient Mark Mode is off, immediately repeating this 5529When Transient Mark Mode is off, immediately repeating this
diff --git a/lisp/term.el b/lisp/term.el
index c067254f414..a4c652bad7f 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -849,6 +849,7 @@ is buffer-local."
849 (define-key map [S-insert] 'term-paste) 849 (define-key map [S-insert] 'term-paste)
850 (define-key map [prior] 'term-send-prior) 850 (define-key map [prior] 'term-send-prior)
851 (define-key map [next] 'term-send-next) 851 (define-key map [next] 'term-send-next)
852 (define-key map [xterm-paste] #'term--xterm-paste)
852 map) 853 map)
853 "Keyboard map for sending characters directly to the inferior process.") 854 "Keyboard map for sending characters directly to the inferior process.")
854 855
@@ -1204,6 +1205,13 @@ without any interpretation."
1204 (interactive) 1205 (interactive)
1205 (term-send-raw-string (current-kill 0))) 1206 (term-send-raw-string (current-kill 0)))
1206 1207
1208(defun term--xterm-paste ()
1209 "Insert the text pasted in an XTerm bracketed paste operation."
1210 (interactive)
1211 (term-send-raw-string (xterm--pasted-text)))
1212
1213(declare-function xterm--pasted-text "term/xterm" ())
1214
1207;; Which would be better: "\e[A" or "\eOA"? readline accepts either. 1215;; Which would be better: "\e[A" or "\eOA"? readline accepts either.
1208;; For my configuration it's definitely better \eOA but YMMV. -mm 1216;; For my configuration it's definitely better \eOA but YMMV. -mm
1209;; For example: vi works with \eOA while elm wants \e[A ... 1217;; For example: vi works with \eOA while elm wants \e[A ...
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el
index 5080ed0a8f7..41d6d72812b 100644
--- a/lisp/term/ns-win.el
+++ b/lisp/term/ns-win.el
@@ -1,4 +1,4 @@
1;;; ns-win.el --- lisp side of interface with NeXT/Open/GNUstep/MacOS X window system -*- lexical-binding: t -*- 1;;; ns-win.el --- lisp side of interface with NeXT/Open/GNUstep/macOS window system -*- lexical-binding: t -*-
2 2
3;; Copyright (C) 1993-1994, 2005-2016 Free Software Foundation, Inc. 3;; Copyright (C) 1993-1994, 2005-2016 Free Software Foundation, Inc.
4 4
@@ -41,7 +41,7 @@
41;;; Code: 41;;; Code:
42(eval-when-compile (require 'cl-lib)) 42(eval-when-compile (require 'cl-lib))
43(or (featurep 'ns) 43(or (featurep 'ns)
44 (error "%s: Loading ns-win.el but not compiled for GNUstep/MacOS" 44 (error "%s: Loading ns-win.el but not compiled for GNUstep/macOS"
45 (invocation-name))) 45 (invocation-name)))
46 46
47;; Documentation-purposes only: actually loaded in loadup.el. 47;; Documentation-purposes only: actually loaded in loadup.el.
@@ -54,7 +54,7 @@
54(require 'ucs-normalize) 54(require 'ucs-normalize)
55 55
56(defgroup ns nil 56(defgroup ns nil
57 "GNUstep/Mac OS X specific features." 57 "GNUstep/macOS specific features."
58 :group 'environment) 58 :group 'environment)
59 59
60;;;; Command line argument handling. 60;;;; Command line argument handling.
@@ -338,7 +338,7 @@ See `ns-insert-working-text'."
338 (setq ns-working-overlay nil)) 338 (setq ns-working-overlay nil))
339 339
340 340
341;; OS X file system Unicode UTF-8 NFD (decomposed form) support. 341;; macOS file system Unicode UTF-8 NFD (decomposed form) support.
342(when (eq system-type 'darwin) 342(when (eq system-type 'darwin)
343 ;; Used prior to Emacs 25. 343 ;; Used prior to Emacs 25.
344 (define-coding-system-alias 'utf-8-nfd 'utf-8-hfs) 344 (define-coding-system-alias 'utf-8-nfd 'utf-8-hfs)
@@ -641,7 +641,7 @@ This function has been overloaded in Nextstep.")
641 (set-frame-font ns-input-font)) 641 (set-frame-font ns-input-font))
642 642
643 643
644;; Default fontset for Mac OS X. This is mainly here to show how a fontset 644;; Default fontset for macOS. This is mainly here to show how a fontset
645;; can be set up manually. Ordinarily, fontsets are auto-created whenever 645;; can be set up manually. Ordinarily, fontsets are auto-created whenever
646;; a font is chosen by 646;; a font is chosen by
647(defvar ns-standard-fontset-spec 647(defvar ns-standard-fontset-spec
@@ -655,7 +655,7 @@ This function has been overloaded in Nextstep.")
655 ",") 655 ",")
656 "String of fontset spec of the standard fontset. 656 "String of fontset spec of the standard fontset.
657This defines a fontset consisting of the Courier and other fonts that 657This defines a fontset consisting of the Courier and other fonts that
658come with OS X. 658come with macOS.
659See the documentation of `create-fontset-from-fontset-spec' for the format.") 659See the documentation of `create-fontset-from-fontset-spec' for the format.")
660 660
661(defvar ns-reg-to-script) ; nsfont.m 661(defvar ns-reg-to-script) ; nsfont.m
@@ -844,7 +844,7 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.")
844 (setq default-process-coding-system 844 (setq default-process-coding-system
845 '(utf-8-unix . utf-8-unix))))) 845 '(utf-8-unix . utf-8-unix)))))
846 846
847 ;; OS X Lion introduces PressAndHold, which is unsupported by this port. 847 ;; Mac OS X Lion introduces PressAndHold, which is unsupported by this port.
848 ;; See this thread for more details: 848 ;; See this thread for more details:
849 ;; http://lists.gnu.org/archive/html/emacs-devel/2011-06/msg00505.html 849 ;; http://lists.gnu.org/archive/html/emacs-devel/2011-06/msg00505.html
850 (ns-set-resource nil "ApplePressAndHoldEnabled" "NO") 850 (ns-set-resource nil "ApplePressAndHoldEnabled" "NO")
diff --git a/lisp/term/xterm.el b/lisp/term/xterm.el
index 01c01130e7c..5fc6056ca23 100644
--- a/lisp/term/xterm.el
+++ b/lisp/term/xterm.el
@@ -784,7 +784,7 @@ We run the first FUNCTION whose STRING matches the input events."
784 ;; Try to find out the type of terminal by sending a "Secondary 784 ;; Try to find out the type of terminal by sending a "Secondary
785 ;; Device Attributes (DA)" query. 785 ;; Device Attributes (DA)" query.
786 (xterm--query "\e[>0c" 786 (xterm--query "\e[>0c"
787 ;; Some terminals (like OS X's Terminal.app) respond to 787 ;; Some terminals (like macOS's Terminal.app) respond to
788 ;; this query as if it were a "Primary Device Attributes" 788 ;; this query as if it were a "Primary Device Attributes"
789 ;; query instead, so we should handle that too. 789 ;; query instead, so we should handle that too.
790 '(("\e[?" . xterm--version-handler) 790 '(("\e[?" . xterm--version-handler)
diff --git a/lisp/textmodes/rst.el b/lisp/textmodes/rst.el
index 49809fab9e8..7161dd329ac 100644
--- a/lisp/textmodes/rst.el
+++ b/lisp/textmodes/rst.el
@@ -1227,7 +1227,7 @@ as well but give an additional message."
1227 ;; 1227 ;;
1228 ;; The adjustment function that adorns or rotates a section title. 1228 ;; The adjustment function that adorns or rotates a section title.
1229 (rst-define-key map [?\C-c ?\C-=] 'rst-adjust [?\C-c ?\C-a t]) 1229 (rst-define-key map [?\C-c ?\C-=] 'rst-adjust [?\C-c ?\C-a t])
1230 (rst-define-key map [?\C-=] 'rst-adjust) ; Does not work on the Mac OSX and 1230 (rst-define-key map [?\C-=] 'rst-adjust) ; Does not work on macOS and
1231 ; on consoles. 1231 ; on consoles.
1232 1232
1233 ;; \C-c \C-a is the keymap for adornments. 1233 ;; \C-c \C-a is the keymap for adornments.
diff --git a/lisp/vc/pcvs.el b/lisp/vc/pcvs.el
index 573feedd047..b0ad5ea588d 100644
--- a/lisp/vc/pcvs.el
+++ b/lisp/vc/pcvs.el
@@ -551,7 +551,7 @@ If non-nil, NEW means to create a new buffer no matter what."
551 ;; is accessed via SSH, a bad interaction between libc, 551 ;; is accessed via SSH, a bad interaction between libc,
552 ;; CVS and SSH can lead to garbled output. 552 ;; CVS and SSH can lead to garbled output.
553 ;; It might be a glibc-specific problem (but it can also happens 553 ;; It might be a glibc-specific problem (but it can also happens
554 ;; under Mac OS X, it seems). 554 ;; under macOS, it seems).
555 ;; It seems that using a pty can help circumvent the problem, 555 ;; It seems that using a pty can help circumvent the problem,
556 ;; but at the cost of screwing up when the process thinks it 556 ;; but at the cost of screwing up when the process thinks it
557 ;; can ask for user input (such as password or host-key 557 ;; can ask for user input (such as password or host-key
@@ -696,7 +696,7 @@ SUBDIR is the subdirectory (if any) where this command was run.
696OLD-FIS is the list of fileinfos on which the cvs command was applied and 696OLD-FIS is the list of fileinfos on which the cvs command was applied and
697 which should be considered up-to-date if they are missing from the output." 697 which should be considered up-to-date if they are missing from the output."
698 (when (eq system-type 'darwin) 698 (when (eq system-type 'darwin)
699 ;; Fixup the ^D^H^H inserted at beginning of buffer sometimes on MacOSX 699 ;; Fixup the ^D^H^H inserted at beginning of buffer sometimes on macOS
700 ;; because of the call to `process-send-eof'. 700 ;; because of the call to `process-send-eof'.
701 (save-excursion 701 (save-excursion
702 (goto-char (point-min)) 702 (goto-char (point-min))