diff options
| author | Glenn Morris | 2020-01-28 07:50:22 -0800 |
|---|---|---|
| committer | Glenn Morris | 2020-01-28 07:50:22 -0800 |
| commit | 60a3c5d56c5684913e1ae77464d7c9e71bc04560 (patch) | |
| tree | eff936192f906634481b5035a93cb138a2a4f005 /lisp | |
| parent | 5ee3c37634f7f8651b2da1f4b611334a2b146928 (diff) | |
| parent | 1bcac29b2f9980bf47f64217a3b6be5979051fe6 (diff) | |
| download | emacs-60a3c5d56c5684913e1ae77464d7c9e71bc04560.tar.gz emacs-60a3c5d56c5684913e1ae77464d7c9e71bc04560.zip | |
Merge from origin/emacs-27
1bcac29b2f (origin/emacs-27) dns-mode-soa-auto-increment-serial: safe...
abf0f8666d * lisp/wdired.el: Clean out isearch-filter-predicate (bug#...
c31c31e57f ; Spelling and URL fixes
066aad7b9d Finish the documentation for c-noise-macro-{,with-parens-}...
c8fcabf245 Correct regexp for flags in `format' doc string
2e9a153b26 Moderate recommendation to escape '(' in doc strings
d7cd4ab7d9 Objective C Mode: Make c-forward-type work with "unsigned ...
1705e32ebc Fix help text about configure module support
baca81e641 * doc/lispref/streams.texi (Output Functions): Improve ind...
568a560fce Improve doc string of 'newline'
7f50698505 Improve doc of eq on bignums etc.
e5327a569c Do not refer to obsolete alias
fd09196781 ; Clarify what time-stamp-active enables
# Conflicts:
# etc/NEWS
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/cedet/mode-local.el | 2 | ||||
| -rw-r--r-- | lisp/erc/erc-pcomplete.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/cc-langs.el | 5 | ||||
| -rw-r--r-- | lisp/progmodes/cc-vars.el | 15 | ||||
| -rw-r--r-- | lisp/simple.el | 7 | ||||
| -rw-r--r-- | lisp/textmodes/dns-mode.el | 1 | ||||
| -rw-r--r-- | lisp/time-stamp.el | 23 | ||||
| -rw-r--r-- | lisp/wdired.el | 2 |
8 files changed, 37 insertions, 20 deletions
diff --git a/lisp/cedet/mode-local.el b/lisp/cedet/mode-local.el index bd02a4f631a..a6e143cfcd6 100644 --- a/lisp/cedet/mode-local.el +++ b/lisp/cedet/mode-local.el | |||
| @@ -588,7 +588,7 @@ OVERARGS is a list of arguments passed to the override and | |||
| 588 | (defmacro define-mode-local-override | 588 | (defmacro define-mode-local-override |
| 589 | (name mode args docstring &rest body) | 589 | (name mode args docstring &rest body) |
| 590 | "Define a mode specific override of the function overload NAME. | 590 | "Define a mode specific override of the function overload NAME. |
| 591 | Has meaning only if NAME has been created with `define-overload'. | 591 | Has meaning only if NAME has been created with `define-overloadable-function'. |
| 592 | MODE is the major mode this override is being defined for. | 592 | MODE is the major mode this override is being defined for. |
| 593 | ARGS are the function arguments, which should match those of the same | 593 | ARGS are the function arguments, which should match those of the same |
| 594 | named function created with `define-overload'. | 594 | named function created with `define-overload'. |
diff --git a/lisp/erc/erc-pcomplete.el b/lisp/erc/erc-pcomplete.el index 457fd07ecc8..65b0f660275 100644 --- a/lisp/erc/erc-pcomplete.el +++ b/lisp/erc/erc-pcomplete.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: Sacha Chua <sacha@free.net.ph> | 5 | ;; Author: Sacha Chua <sacha@free.net.ph> |
| 6 | ;; Maintainer: Amin Bandali <mab@gnu.org> | 6 | ;; Maintainer: Amin Bandali <mab@gnu.org> |
| 7 | ;; Keywords: comm, convenience | 7 | ;; Keywords: comm, convenience |
| 8 | ;; URL: http://wwws.emacswiki.org/emacs/ErcCompletion | 8 | ;; URL: https://www.emacswiki.org/emacs/ErcCompletion |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el index b50e7e7f098..715af32d7ea 100644 --- a/lisp/progmodes/cc-langs.el +++ b/lisp/progmodes/cc-langs.el | |||
| @@ -2055,11 +2055,10 @@ the appropriate place for that." | |||
| 2055 | "Keywords that might act as prefixes for primitive types. Assumed to | 2055 | "Keywords that might act as prefixes for primitive types. Assumed to |
| 2056 | be a subset of `c-primitive-type-kwds'." | 2056 | be a subset of `c-primitive-type-kwds'." |
| 2057 | t nil | 2057 | t nil |
| 2058 | (c c++) '("long" "short" "signed" "unsigned") | 2058 | (c c++ objc) '("long" "short" "signed" "unsigned") |
| 2059 | idl '("long" "unsigned" | 2059 | idl '("long" "unsigned" |
| 2060 | ;; In CORBA PSDL: | 2060 | ;; In CORBA PSDL: |
| 2061 | "strong")) | 2061 | "strong")) |
| 2062 | |||
| 2063 | (c-lang-defconst c-typedef-kwds | 2062 | (c-lang-defconst c-typedef-kwds |
| 2064 | "Prefix keyword(s) like \"typedef\" which make a type declaration out | 2063 | "Prefix keyword(s) like \"typedef\" which make a type declaration out |
| 2065 | of a variable declaration." | 2064 | of a variable declaration." |
diff --git a/lisp/progmodes/cc-vars.el b/lisp/progmodes/cc-vars.el index 861872486c7..556ff6059f1 100644 --- a/lisp/progmodes/cc-vars.el +++ b/lisp/progmodes/cc-vars.el | |||
| @@ -1657,9 +1657,10 @@ white space either before or after the operator, but not both." | |||
| 1657 | 1657 | ||
| 1658 | (defcustom c-noise-macro-names nil | 1658 | (defcustom c-noise-macro-names nil |
| 1659 | "A list of names of macros which expand to nothing, or compiler extensions | 1659 | "A list of names of macros which expand to nothing, or compiler extensions |
| 1660 | like \"????\" which are syntactic noise. Such a macro/extension is complete in | 1660 | like \"INLINE\" which are syntactic noise. Such a macro/extension is complete |
| 1661 | itself, never having parentheses. All these names must be syntactically valid | 1661 | in itself, never having parentheses. All these names must be syntactically |
| 1662 | identifiers. | 1662 | valid identifiers. Alternatively, this variable may be a regular expression |
| 1663 | which matches the names of such macros. | ||
| 1663 | 1664 | ||
| 1664 | If you change this variable's value, call the function | 1665 | If you change this variable's value, call the function |
| 1665 | `c-make-noise-macro-regexps' to set the necessary internal variables (or do | 1666 | `c-make-noise-macro-regexps' to set the necessary internal variables (or do |
| @@ -1673,7 +1674,13 @@ this implicitly by reinitializing C/C++/Objc Mode on any buffer)." | |||
| 1673 | (defcustom c-noise-macro-with-parens-names nil | 1674 | (defcustom c-noise-macro-with-parens-names nil |
| 1674 | "A list of names of macros (or compiler extensions like \"__attribute__\") | 1675 | "A list of names of macros (or compiler extensions like \"__attribute__\") |
| 1675 | which optionally have arguments in parentheses, and which expand to nothing. | 1676 | which optionally have arguments in parentheses, and which expand to nothing. |
| 1676 | These are recognized by CC Mode only in declarations." | 1677 | All these names must be syntactically valid identifiers. These are recognized |
| 1678 | by CC Mode only in declarations. Alternatively, this variable may be a | ||
| 1679 | regular expression which matches the names of such macros. | ||
| 1680 | |||
| 1681 | If you change this variable's value, call the function | ||
| 1682 | `c-make-noise-macro-regexps' to set the necessary internal variables (or do | ||
| 1683 | this implicitly by reinitializing C/C++/Objc Mode on any buffer)." | ||
| 1677 | :version "26.1" | 1684 | :version "26.1" |
| 1678 | :type '(repeat :tag "List of names (possibly empty)" string) | 1685 | :type '(repeat :tag "List of names (possibly empty)" string) |
| 1679 | :group 'c) | 1686 | :group 'c) |
diff --git a/lisp/simple.el b/lisp/simple.el index 8be27745b1c..2ec3da680f8 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -503,9 +503,7 @@ This hook is run by `delete-selection-uses-region-p', which see.") | |||
| 503 | 503 | ||
| 504 | (defun newline (&optional arg interactive) | 504 | (defun newline (&optional arg interactive) |
| 505 | "Insert a newline, and move to left margin of the new line if it's blank. | 505 | "Insert a newline, and move to left margin of the new line if it's blank. |
| 506 | If option `use-hard-newlines' is non-nil, the newline is marked with the | 506 | With prefix argument ARG, insert that many newlines. |
| 507 | text-property `hard'. | ||
| 508 | With ARG, insert that many newlines. | ||
| 509 | 507 | ||
| 510 | If `electric-indent-mode' is enabled, this indents the final new line | 508 | If `electric-indent-mode' is enabled, this indents the final new line |
| 511 | that it adds, and reindents the preceding line. To just insert | 509 | that it adds, and reindents the preceding line. To just insert |
| @@ -514,6 +512,9 @@ a newline, use \\[electric-indent-just-newline]. | |||
| 514 | If `auto-fill-mode' is enabled, this may cause automatic line | 512 | If `auto-fill-mode' is enabled, this may cause automatic line |
| 515 | breaking of the preceding line. A non-nil ARG inhibits this. | 513 | breaking of the preceding line. A non-nil ARG inhibits this. |
| 516 | 514 | ||
| 515 | If `use-hard-newlines' is enabled, the newline is marked with the | ||
| 516 | text-property `hard'. | ||
| 517 | |||
| 517 | A non-nil INTERACTIVE argument means to run the `post-self-insert-hook'." | 518 | A non-nil INTERACTIVE argument means to run the `post-self-insert-hook'." |
| 518 | (interactive "*P\np") | 519 | (interactive "*P\np") |
| 519 | (barf-if-buffer-read-only) | 520 | (barf-if-buffer-read-only) |
diff --git a/lisp/textmodes/dns-mode.el b/lisp/textmodes/dns-mode.el index 3bdea946105..6dfea8f1887 100644 --- a/lisp/textmodes/dns-mode.el +++ b/lisp/textmodes/dns-mode.el | |||
| @@ -134,6 +134,7 @@ manually with \\[dns-mode-soa-increment-serial]." | |||
| 134 | :type '(choice (const :tag "Always" t) | 134 | :type '(choice (const :tag "Always" t) |
| 135 | (const :tag "Ask" ask) | 135 | (const :tag "Ask" ask) |
| 136 | (const :tag "Never" nil)) | 136 | (const :tag "Never" nil)) |
| 137 | :safe 'symbolp | ||
| 137 | :group 'dns-mode) | 138 | :group 'dns-mode) |
| 138 | 139 | ||
| 139 | ;; Syntax table. | 140 | ;; Syntax table. |
diff --git a/lisp/time-stamp.el b/lisp/time-stamp.el index a09294d9cf6..7c64f2903be 100644 --- a/lisp/time-stamp.el +++ b/lisp/time-stamp.el | |||
| @@ -94,6 +94,13 @@ edited by older versions of Emacs also, do not use this format yet." | |||
| 94 | (defcustom time-stamp-active t | 94 | (defcustom time-stamp-active t |
| 95 | "Non-nil to enable time-stamping of buffers by \\[time-stamp]. | 95 | "Non-nil to enable time-stamping of buffers by \\[time-stamp]. |
| 96 | Can be toggled by \\[time-stamp-toggle-active]. | 96 | Can be toggled by \\[time-stamp-toggle-active]. |
| 97 | |||
| 98 | This option does not affect when `time-stamp' is run, only what it | ||
| 99 | does when it runs. To activate automatic time-stamping of buffers | ||
| 100 | when they are saved, either add this line to your init file: | ||
| 101 | (add-hook \\='before-save-hook \\='time-stamp) | ||
| 102 | or customize option `before-save-hook'. | ||
| 103 | |||
| 97 | See also the variable `time-stamp-warn-inactive'." | 104 | See also the variable `time-stamp-warn-inactive'." |
| 98 | :type 'boolean | 105 | :type 'boolean |
| 99 | :group 'time-stamp) | 106 | :group 'time-stamp) |
| @@ -269,7 +276,7 @@ time-stamped file itself.") | |||
| 269 | A template in a file can be automatically updated with a new time stamp | 276 | A template in a file can be automatically updated with a new time stamp |
| 270 | every time you save the file. Add this line to your init file: | 277 | every time you save the file. Add this line to your init file: |
| 271 | (add-hook \\='before-save-hook \\='time-stamp) | 278 | (add-hook \\='before-save-hook \\='time-stamp) |
| 272 | or customize `before-save-hook' through Custom. | 279 | or customize option `before-save-hook'. |
| 273 | Normally the template must appear in the first 8 lines of a file and | 280 | Normally the template must appear in the first 8 lines of a file and |
| 274 | look like one of the following: | 281 | look like one of the following: |
| 275 | Time-stamp: <> | 282 | Time-stamp: <> |
| @@ -606,24 +613,24 @@ and all `time-stamp-format' compatibility." | |||
| 606 | ((eq cur-char ?F) ;buffer-file-name, full path | 613 | ((eq cur-char ?F) ;buffer-file-name, full path |
| 607 | (or buffer-file-name | 614 | (or buffer-file-name |
| 608 | time-stamp-no-file)) | 615 | time-stamp-no-file)) |
| 609 | ((eq cur-char ?s) ;system name | 616 | ((eq cur-char ?s) ;system name, legacy |
| 610 | (system-name)) | 617 | (system-name)) |
| 611 | ((eq cur-char ?u) ;user name | 618 | ((eq cur-char ?u) ;user name, legacy |
| 612 | (user-login-name)) | 619 | (user-login-name)) |
| 613 | ((eq cur-char ?U) ;user full name | 620 | ((eq cur-char ?U) ;user full name, legacy |
| 614 | (user-full-name)) | 621 | (user-full-name)) |
| 615 | ((eq cur-char ?l) ;logname (undocumented user name alt) | 622 | ((eq cur-char ?l) ;login name |
| 616 | (user-login-name)) | 623 | (user-login-name)) |
| 617 | ((eq cur-char ?L) ;(undocumented alt user full name) | 624 | ((eq cur-char ?L) ;full name of logged-in user |
| 618 | (user-full-name)) | 625 | (user-full-name)) |
| 619 | ((eq cur-char ?h) ;mail host name | 626 | ((eq cur-char ?h) ;mail host name |
| 620 | (or mail-host-address (system-name))) | 627 | (or mail-host-address (system-name))) |
| 621 | ((eq cur-char ?q) ;(undocumented unqual hostname) | 628 | ((eq cur-char ?q) ;unqualified host name |
| 622 | (let ((qualname (system-name))) | 629 | (let ((qualname (system-name))) |
| 623 | (if (string-match "\\." qualname) | 630 | (if (string-match "\\." qualname) |
| 624 | (substring qualname 0 (match-beginning 0)) | 631 | (substring qualname 0 (match-beginning 0)) |
| 625 | qualname))) | 632 | qualname))) |
| 626 | ((eq cur-char ?Q) ;(undocumented fully-qualified host) | 633 | ((eq cur-char ?Q) ;fully-qualified host name |
| 627 | (system-name)) | 634 | (system-name)) |
| 628 | )) | 635 | )) |
| 629 | (and (numberp field-result) | 636 | (and (numberp field-result) |
diff --git a/lisp/wdired.el b/lisp/wdired.el index d470e0a21b0..d91853e64dd 100644 --- a/lisp/wdired.el +++ b/lisp/wdired.el | |||
| @@ -357,6 +357,8 @@ non-nil means return old filename." | |||
| 357 | (remove-text-properties | 357 | (remove-text-properties |
| 358 | (point-min) (point-max) | 358 | (point-min) (point-max) |
| 359 | '(front-sticky nil rear-nonsticky nil read-only nil keymap nil))) | 359 | '(front-sticky nil rear-nonsticky nil read-only nil keymap nil))) |
| 360 | (remove-function (local 'isearch-filter-predicate) | ||
| 361 | #'wdired-isearch-filter-read-only) | ||
| 360 | (use-local-map dired-mode-map) | 362 | (use-local-map dired-mode-map) |
| 361 | (force-mode-line-update) | 363 | (force-mode-line-update) |
| 362 | (setq buffer-read-only t) | 364 | (setq buffer-read-only t) |