summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-11-19 14:31:05 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2016-11-19 14:31:05 -0800
commitc61ee94959ba96b2a327df0684593f7e569e30be (patch)
tree33e7b6bdb654b45ebeed805f48b1324b2ab038ec /lisp
parentb19e05b13192f72991b65b4b352e09c807fd581c (diff)
parent4af5981dc75c96e34a27922001106df05ee19e69 (diff)
downloademacs-c61ee94959ba96b2a327df0684593f7e569e30be.tar.gz
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."
;; converts "\" to "/".
;; - For 0 generic: generic_to_unix_filename() downcases if there's
;; no lower case already present, and converts "\" to "/".
- ;; - For 'm' MacOS: macos_to_unix_filename() changes "/" to ":" and
+ ;; - For 'm' macOS: macos_to_unix_filename() changes "/" to ":" and
;; ":" to "/"
(setq fiddle (cond ((= ?M osid) t)
((= 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)."
;; Keychain collection matching any user, host, and protocol
((eq entry 'macos-keychain-generic)
(auth-source-backend-parse '(:source (:macos-keychain-generic default))))
- ;; take macos-keychain-internet:XYZ and recurse to get it as MacOS
+ ;; take macos-keychain-internet:XYZ and recurse to get it as macOS
;; Keychain "XYZ" matching any user, host, and protocol
((and (stringp entry) (string-match "^macos-keychain-internet:\\(.+\\)"
entry))
(auth-source-backend-parse `(:source (:macos-keychain-internet
,(match-string 1 entry)))))
- ;; take macos-keychain-generic:XYZ and recurse to get it as MacOS
+ ;; take macos-keychain-generic:XYZ and recurse to get it as macOS
;; Keychain "XYZ" matching any user, host, and protocol
((and (stringp entry) (string-match "^macos-keychain-generic:\\(.+\\)"
entry))
@@ -452,7 +452,7 @@ with \"[a/b/c] \" if CHOICES is \(?a ?b ?c)."
:search-function #'auth-source-netrc-search
:create-function #'auth-source-netrc-create)))
- ;; the MacOS Keychain
+ ;; the macOS Keychain
((and
(not (null (plist-get entry :source))) ; the source must not be nil
(listp (plist-get entry :source)) ; and it must be a list
@@ -1647,7 +1647,7 @@ authentication tokens:
(cl-defun auth-source-macos-keychain-search (&rest spec
&key backend create delete type max
&allow-other-keys)
- "Search the MacOS Keychain; spec is like `auth-source'.
+ "Search the macOS Keychain; spec is like `auth-source'.
All search keys must match exactly. If you need substring
matching, do a wider search and narrow it down yourself.
@@ -1669,13 +1669,13 @@ Similarly, :host maps to \"-c HOST\" (the \"creator\" keychain
field), :user maps to \"-a USER\", and :port maps to \"-s PORT\".
Here's an example that looks for the first item in the default
-generic MacOS Keychain:
+generic macOS Keychain:
(let ((auth-sources \\='(macos-keychain-generic)))
(auth-source-search :max 1)
Here's another that looks for the first item in the internet
-MacOS Keychain collection whose label is `gnus':
+macOS Keychain collection whose label is `gnus':
(let ((auth-sources \\='(macos-keychain-internet)))
(auth-source-search :max 1 :label \"gnus\")
@@ -1688,11 +1688,11 @@ entries for git.gnus.org:
"
;; TODO
(cl-assert (not create) nil
- "The MacOS Keychain auth-source backend doesn't support creation yet")
+ "The macOS Keychain auth-source backend doesn't support creation yet")
;; TODO
;; (macos-keychain-delete-item coll elt)
(cl-assert (not delete) nil
- "The MacOS Keychain auth-source backend doesn't support deletion yet")
+ "The macOS Keychain auth-source backend doesn't support deletion yet")
(let* ((coll (oref backend source))
(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 @@
;;; Commentary:
-;; There is at present support for GNU/Linux, OS X and Windows. This
+;; There is at present support for GNU/Linux, macOS and Windows. This
;; library supports both the `/proc/apm' file format of Linux version
;; 1.3.58 or newer and the `/proc/acpi/' directory structure of Linux
-;; 2.4.20 and 2.6. Darwin (OS X) is supported by using the `pmset'
+;; 2.4.20 and 2.6. Darwin (macOS) is supported by using the `pmset'
;; program. Windows is supported by the GetSystemPowerStatus API call.
;;; Code:
@@ -604,7 +604,7 @@ The following %-sequences are provided:
(cons ?t (or remaining-time "N/A")))))
-;;; `pmset' interface for Darwin (OS X).
+;;; `pmset' interface for Darwin (macOS).
(defun battery-pmset ()
"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.")
(setq semantic-lex-c-preprocessor-symbol-map nil))
(dolist (D defines)
(add-to-list 'semantic-lex-c-preprocessor-symbol-map D))
- ;; Needed for parsing OS X libc
+ ;; Needed for parsing macOS libc
(when (eq system-type 'darwin)
(add-to-list 'semantic-lex-c-preprocessor-symbol-map '("__i386__" . "")))
(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."
;;;###autoload
(defun list-command-history ()
- "List history of commands typed to minibuffer.
+ "List history of commands that used the minibuffer.
The number of commands listed is controlled by `list-command-history-max'.
Calls value of `list-command-history-filter' (if non-nil) on each history
element 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.
If no suitable preceding word is found, words following point are
considered. If still no suitable word is found, then look in the
buffers accepted by the function pointed out by variable
-`dabbrev-friend-buffer-function'.
+`dabbrev-friend-buffer-function', if `dabbrev-check-other-buffers'
+says so. Then, if `dabbrev-check-all-buffers' is non-nil, look in
+all the other buffers, subject to constraints specified
+by `dabbrev-ignored-buffer-names' and `dabbrev-ignored-regexps'.
A positive prefix argument, N, says to take the Nth backward *distinct*
possibility. 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 @@
(defun cl--assertion-failed (form &optional string sargs args)
(if debug-on-error
- (debug `(cl-assertion-failed ,form ,string ,@sargs))
+ (funcall debugger `(cl-assertion-failed ,form ,string ,@sargs))
(if string
(apply #'error string (append sargs args))
(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."
"Courier 10 Pitch"
;; This looks good on MS-Windows and OS X.
"Consolas"
- ;; This looks good on OS X. "Courier" looks good too, but is
+ ;; This looks good on macOS. "Courier" looks good too, but is
;; jagged on GNU/Linux and so is listed later as "courier".
"Courier Std"
;; 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 @@
(#x1F700 . #x1F77F) ;; Alchemical Symbols
(#x1F780 . #x1F7FF) ;; Geometric Shapes Extended
(#x1F800 . #x1F8FF))) ;; Supplemental Arrows-C
- (set-fontset-font "fontset-default" symbol-subgroup "Symbola" nil 'prepend))
+ (set-fontset-font "fontset-default" symbol-subgroup
+ '("Symbola" . "iso10646-1") nil 'prepend))
;; Box Drawing and Block Elements
(set-fontset-font "fontset-default" '(#x2500 . #x259F)
- "FreeMono" nil 'prepend)
+ '("FreeMono" . "iso10646-1") nil 'prepend)
;; Since standard-fontset-spec on X uses fixed-medium font, which
;; 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',
;; On Darwin, file names are always encoded in utf-8, no matter
;; the locale.
(setq default-file-name-coding-system 'utf-8)
- ;; Mac OS X's Terminal.app by default uses utf-8 regardless of
+ ;; macOS's Terminal.app by default uses utf-8 regardless of
;; the locale.
(when (and (null window-system)
(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."
;;; coding-system definition
(define-coding-system 'utf-8-hfs
- "UTF-8 based coding system for MacOS HFS file names.
+ "UTF-8 based coding system for macOS HFS file names.
The singleton characters in HFS normalization exclusion will not
be decomposed."
: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 @@
((memq system-type '(hpux usg-unix-v berkeley-unix))
'UNIX)) ; very similar to GNU
;; Anything else defaults to nil, meaning GNU.
- "Platform to emulate: GNU (default), MacOS, MS-Windows, UNIX.
+ "Platform to emulate: GNU (default), macOS, MS-Windows, UNIX.
Corresponding value is one of: nil, `MacOS', `MS-Windows', `UNIX'.
Set this to your preferred value; it need not match the actual platform
you 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 @@
(defvar message-strip-special-text-properties)
(defun report-emacs-bug-can-use-osx-open ()
- "Return non-nil if the OS X \"open\" command is available for mailing."
+ "Return non-nil if the macOS \"open\" command is available for mailing."
(and (featurep 'ns)
(equal (executable-find "open") "/usr/bin/open")
(memq system-type '(darwin))))
@@ -107,7 +107,7 @@ This requires you to be running either Gnome, KDE, or Xfce4."
(defun report-emacs-bug-insert-to-mailer ()
"Send the message to your preferred mail client.
-This requires either the OS X \"open\" command, or the freedesktop
+This requires either the macOS \"open\" command, or the freedesktop
\"xdg-email\" command to be available."
(interactive)
(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."
(setq default-directory "/") ;; in case inherited doesn't exist
;; Actually for my `man' the arg is a regexp.
;; POSIX says it must be ERE and "man-db" seems to agree,
- ;; whereas under MacOSX it seems to be BRE-style and doesn't
+ ;; whereas under macOS it seems to be BRE-style and doesn't
;; accept backslashes at all. Let's not bother to
;; quote anything.
(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"))
'(menu-item "Emacs Tutorial" help-with-tutorial
:help "Learn how to use Emacs"))
- ;; In OS X it's in the app menu already.
+ ;; In macOS it's in the app menu already.
;; FIXME? There already is an "About Emacs" (sans ...) entry in the Help menu.
(and (featurep 'ns)
(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."
:type 'regexp)
(defcustom ange-ftp-potential-error-msgs
- ;; On Mac OS X we sometimes get things like:
+ ;; On macOS we sometimes get things like:
;;
;; ftp> open ftp.nluug.nl
;; 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 @@
;; browse-url-text-* Any text browser 0
;; browse-url-generic arbitrary
;; browse-url-default-windows-browser MS-Windows browser
-;; browse-url-default-macosx-browser Mac OS X browser
+;; browse-url-default-macosx-browser macOS browser
;; browse-url-xdg-open Free Desktop xdg-open on Gnome, KDE, Xfce4, LXDE
;; browse-url-kde KDE konqueror (kfm)
;; 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."
:value browse-url-generic)
(function-item :tag "Default Windows browser"
:value browse-url-default-windows-browser)
- (function-item :tag "Default Mac OS X browser"
+ (function-item :tag "Default macOS browser"
:value browse-url-default-macosx-browser)
(function-item :tag "Default browser"
:value browse-url-default-browser)
@@ -881,7 +881,7 @@ The optional NEW-WINDOW argument is not used."
(t (w32-shell-execute "open" url))))
(defun browse-url-default-macosx-browser (url &optional _new-window)
- "Invoke the MacOS X system's default Web browser.
+ "Invoke the macOS system's default Web browser.
The optional NEW-WINDOW argument is not used"
(interactive (browse-url-interactive-arg "URL: "))
(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."
res-uid res-gid res-size res-symlink-target)
(tramp-message vec 5 "file attributes with ls: %s" localname)
;; We cannot send all three commands combined, it could exceed
- ;; NAME_MAX or PATH_MAX. Happened on Mac OS X, for example.
+ ;; NAME_MAX or PATH_MAX. Happened on macOS, for example.
(when (or (tramp-send-command-and-check
vec
(format "%s %s"
@@ -4123,7 +4123,7 @@ process to set up. VEC specifies the connection."
(goto-char (point-min))
(when (search-forward "\r" nil t)
(setq cs-decode (coding-system-change-eol-conversion cs-decode 'dos)))
- ;; Special setting for Mac OS X.
+ ;; Special setting for macOS.
(when (and (string-match "^Darwin" uname)
(memq 'utf-8-hfs (coding-system-list)))
(setq cs-decode 'utf-8-hfs
@@ -4178,7 +4178,7 @@ process to set up. VEC specifies the connection."
(tramp-send-command vec "stty tabs" t)
(tramp-send-command vec "stty tab0" t))
- ;; Set utf8 encoding. Needed for Mac OS X, for example. This is
+ ;; Set utf8 encoding. Needed for macOS, for example. This is
;; non-POSIX, so we must expect errors on some systems.
(tramp-send-command vec "stty iutf8 2>/dev/null" t)
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."
:require 'tramp)
;; Logging in to a remote host normally requires obtaining a pty. But
-;; Emacs on MacOS X has process-connection-type set to nil by default,
+;; Emacs on macOS has process-connection-type set to nil by default,
;; so on those systems Tramp doesn't obtain a pty. Here, we allow
;; for an override of the system default.
(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'.")
("eps.gz" . "gv %s")
("dvi" . "xdvi %s")
("fig" . "xfig %s"))
- "Default file applications on a MacOS X system.
+ "Default file applications on a macOS system.
The system \"open\" is known as a default, but we use X11 applications
for some files for which the OS does not have a good default.
See `org-file-apps'.")
@@ -2015,7 +2015,7 @@ file identifier are
(\"html\" . default) to the list as well.
t Default for files not matched by any of the other options.
`system' The system command to open files, like `open' on Windows
- and Mac OS X, and mailcap under GNU/Linux. This is the command
+ and macOS, and mailcap under GNU/Linux. This is the command
that will be selected if you call `C-c C-o' with a double
\\[universal-argument] \\[universal-argument] prefix.
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."
'show-entry 'outline-show-entry "25.1")
(defun outline-hide-body ()
- "Hide all body lines in buffer, leaving all headings visible."
+ "Hide all body lines in buffer, leaving all headings visible.
+Note that this does not hide the lines preceding the first heading line."
(interactive)
(outline-hide-region-body (point-min) (point-max)))
@@ -868,7 +869,12 @@ Show the heading too, if it is currently invisible."
nil))
(defun outline-hide-sublevels (levels)
- "Hide everything but the top LEVELS levels of headers, in whole buffer."
+ "Hide everything but the top LEVELS levels of headers, in whole buffer.
+This also unhides the top heading-less body, if any.
+
+Interactively, the prefix argument supplies the value of LEVELS.
+When invoked without a prefix argument, LEVELS defaults to the level
+of the current heading, or to 1 if the current line is not a heading."
(interactive (list
(cond
(current-prefix-arg (prefix-numeric-value current-prefix-arg))
@@ -909,7 +915,8 @@ Show the heading too, if it is currently invisible."
'hide-sublevels 'outline-hide-sublevels "25.1")
(defun outline-hide-other ()
- "Hide everything except current body and parent and top-level headings."
+ "Hide everything except current body and parent and top-level headings.
+This also unhides the top heading-less body, if any."
(interactive)
(outline-hide-sublevels 1)
(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:
* gv 3.5, June 1997
`http://www.cs.wisc.edu/~ghost/gv/gv_doc/gv.html'
-* MacGSView (MacOS)
+* MacGSView (Mac OS)
`http://www.cs.wisc.edu/~ghost/macos/index.htm'
"
: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 @@
;; 2) Use MinGW GDB instead.
;; 3) Use cygwin-mount.el
-;;; Mac OSX:
+;;; macOS:
-;; GDB in Emacs on Mac OSX works best with FSF GDB as Apple have made
-;; some changes to the version that they include as part of Mac OSX.
-;; This requires GDB version 7.0 or later (estimated release date Aug 2009)
-;; as earlier versions do not compile on Mac OSX.
+;; GDB in Emacs on macOS works best with FSF GDB as Apple have made
+;; some changes to the version that they include as part of macOS.
+;; This requires GDB version 7.0 or later as earlier versions do not
+;; compile on macOS.
;;; Known Bugs:
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."
:type 'integer)
(defcustom idlwave-library-path nil
- "Library path for Windows and MacOS (OS9). Not needed under UNIX.
+ "Library path for Windows and Mac OS (OS9). Not needed under UNIX.
When selecting the directories to scan for IDL user catalog routine
info, IDLWAVE can, under UNIX, query the shell for the exact search
-path \(the value of !PATH). However, under Windows and MacOS
-\(pre-OSX), the IDLWAVE shell does not work. In this case, this
-variable can be set to specify the paths where IDLWAVE can find PRO
-files. The shell will only be asked for a list of paths when this
-variable is nil. The value is a list of directories. A directory
+path (the value of !PATH). However, under MS-Windows, the
+IDLWAVE shell does not work. In this case, this variable can be
+set to specify the paths where IDLWAVE can find PRO files. The
+shell will only be asked for a list of paths when this variable
+is nil. The value is a list of directories. A directory
preceded by a `+' will be searched recursively. If you set this
-variable on a UNIX system, the shell will not be queried. See also
-`idlwave-system-directory'."
+variable on a UNIX system, the shell will not be queried. See
+also `idlwave-system-directory'."
:group 'idlwave-routine-info
:type '(repeat (directory)))
(defcustom idlwave-system-directory ""
- "The IDL system directory for Windows and MacOS. Not needed under
+ "The IDL system directory for Windows and Mac OS. Not needed under
UNIX. Set this to the value of the `!DIR' system variable in IDL.
IDLWAVE uses this to find out which of the library routines belong to
the 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'."
(and (js--re-search-backward "[?:{]\\|\\_<case\\_>" nil t)
(eq (char-after) ??))))
(not (and
+ (eq (char-after) ?/)
+ (save-excursion
+ (eq (nth 3 (syntax-ppss)) ?/))))
+ (not (and
(eq (char-after) ?*)
;; Generator method (possibly using computed property).
(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."
(defun python-shell-comint-end-of-output-p (output)
"Return non-nil if OUTPUT is ends with input prompt."
(string-match
- ;; XXX: It seems on OSX an extra carriage return is attached
+ ;; XXX: It seems on macOS an extra carriage return is attached
;; at the end of output, this handles that too.
(concat
"\r?\n?"
@@ -5170,7 +5170,7 @@ returned as is."
(add-to-list
'hs-special-modes-alist
`(python-mode
- "\\s-*\\(?:def\\|class\\)\\>"
+ "\\s-*\\_<\\(?:def\\|class\\)\\_>"
;; Use the empty string as end regexp so it doesn't default to
;; "\\s)". This way parens at end of defun are properly hidden.
""
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]."
:group 'editing-basics)
(defun set-mark-command (arg)
- "Set the mark where point is, or jump to the mark.
+ "Set the mark where point is, and activate it; or jump to the mark.
Setting the mark also alters the region, which is the text
between point and mark; this is the closest equivalent in
Emacs to what some editors call the \"selection\".
With no prefix argument, set the mark at point, and push the
-old mark position on local mark ring. Also push the old mark on
+old mark position on local mark ring. Also push the new mark on
global mark ring, if the previous mark was set in another buffer.
When 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."
(define-key map [S-insert] 'term-paste)
(define-key map [prior] 'term-send-prior)
(define-key map [next] 'term-send-next)
+ (define-key map [xterm-paste] #'term--xterm-paste)
map)
"Keyboard map for sending characters directly to the inferior process.")
@@ -1204,6 +1205,13 @@ without any interpretation."
(interactive)
(term-send-raw-string (current-kill 0)))
+(defun term--xterm-paste ()
+ "Insert the text pasted in an XTerm bracketed paste operation."
+ (interactive)
+ (term-send-raw-string (xterm--pasted-text)))
+
+(declare-function xterm--pasted-text "term/xterm" ())
+
;; Which would be better: "\e[A" or "\eOA"? readline accepts either.
;; For my configuration it's definitely better \eOA but YMMV. -mm
;; 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 @@
-;;; ns-win.el --- lisp side of interface with NeXT/Open/GNUstep/MacOS X window system -*- lexical-binding: t -*-
+;;; ns-win.el --- lisp side of interface with NeXT/Open/GNUstep/macOS window system -*- lexical-binding: t -*-
;; Copyright (C) 1993-1994, 2005-2016 Free Software Foundation, Inc.
@@ -41,7 +41,7 @@
;;; Code:
(eval-when-compile (require 'cl-lib))
(or (featurep 'ns)
- (error "%s: Loading ns-win.el but not compiled for GNUstep/MacOS"
+ (error "%s: Loading ns-win.el but not compiled for GNUstep/macOS"
(invocation-name)))
;; Documentation-purposes only: actually loaded in loadup.el.
@@ -54,7 +54,7 @@
(require 'ucs-normalize)
(defgroup ns nil
- "GNUstep/Mac OS X specific features."
+ "GNUstep/macOS specific features."
:group 'environment)
;;;; Command line argument handling.
@@ -338,7 +338,7 @@ See `ns-insert-working-text'."
(setq ns-working-overlay nil))
-;; OS X file system Unicode UTF-8 NFD (decomposed form) support.
+;; macOS file system Unicode UTF-8 NFD (decomposed form) support.
(when (eq system-type 'darwin)
;; Used prior to Emacs 25.
(define-coding-system-alias 'utf-8-nfd 'utf-8-hfs)
@@ -641,7 +641,7 @@ This function has been overloaded in Nextstep.")
(set-frame-font ns-input-font))
-;; Default fontset for Mac OS X. This is mainly here to show how a fontset
+;; Default fontset for macOS. This is mainly here to show how a fontset
;; can be set up manually. Ordinarily, fontsets are auto-created whenever
;; a font is chosen by
(defvar ns-standard-fontset-spec
@@ -655,7 +655,7 @@ This function has been overloaded in Nextstep.")
",")
"String of fontset spec of the standard fontset.
This defines a fontset consisting of the Courier and other fonts that
-come with OS X.
+come with macOS.
See the documentation of `create-fontset-from-fontset-spec' for the format.")
(defvar ns-reg-to-script) ; nsfont.m
@@ -844,7 +844,7 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.")
(setq default-process-coding-system
'(utf-8-unix . utf-8-unix)))))
- ;; OS X Lion introduces PressAndHold, which is unsupported by this port.
+ ;; Mac OS X Lion introduces PressAndHold, which is unsupported by this port.
;; See this thread for more details:
;; http://lists.gnu.org/archive/html/emacs-devel/2011-06/msg00505.html
(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."
;; Try to find out the type of terminal by sending a "Secondary
;; Device Attributes (DA)" query.
(xterm--query "\e[>0c"
- ;; Some terminals (like OS X's Terminal.app) respond to
+ ;; Some terminals (like macOS's Terminal.app) respond to
;; this query as if it were a "Primary Device Attributes"
;; query instead, so we should handle that too.
'(("\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."
;;
;; The adjustment function that adorns or rotates a section title.
(rst-define-key map [?\C-c ?\C-=] 'rst-adjust [?\C-c ?\C-a t])
- (rst-define-key map [?\C-=] 'rst-adjust) ; Does not work on the Mac OSX and
+ (rst-define-key map [?\C-=] 'rst-adjust) ; Does not work on macOS and
; on consoles.
;; \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."
;; is accessed via SSH, a bad interaction between libc,
;; CVS and SSH can lead to garbled output.
;; It might be a glibc-specific problem (but it can also happens
- ;; under Mac OS X, it seems).
+ ;; under macOS, it seems).
;; It seems that using a pty can help circumvent the problem,
;; but at the cost of screwing up when the process thinks it
;; 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.
OLD-FIS is the list of fileinfos on which the cvs command was applied and
which should be considered up-to-date if they are missing from the output."
(when (eq system-type 'darwin)
- ;; Fixup the ^D^H^H inserted at beginning of buffer sometimes on MacOSX
+ ;; Fixup the ^D^H^H inserted at beginning of buffer sometimes on macOS
;; because of the call to `process-send-eof'.
(save-excursion
(goto-char (point-min))