diff options
| author | Glenn Morris | 2020-04-18 07:50:22 -0700 |
|---|---|---|
| committer | Glenn Morris | 2020-04-18 07:50:22 -0700 |
| commit | 4819bea6900348f923e0de58995ec41760993b6c (patch) | |
| tree | df5ba765ab0270a215671959a099a65e9f2a2f58 /lisp | |
| parent | 9dac60b1bf449cc42fe77bc4f3a85bad55afa00f (diff) | |
| parent | f3b62b6c62c41d2e5d15418ea940bce6b11bdf7d (diff) | |
| download | emacs-4819bea6900348f923e0de58995ec41760993b6c.tar.gz emacs-4819bea6900348f923e0de58995ec41760993b6c.zip | |
Merge from origin/emacs-27
f3b62b6c62 (origin/emacs-27) Avoid crashes in regex-emacs.c due to GC
175c61c18b Fix "C-u M-!" when 'shell-command-dont-erase-buffer' is no...
6b297519b5 Fix cl-most-positive-float doc typo
c36c5a3ded ; lisp/ldefs-boot.el: Update.
3876a60569 Fix a typo in calculator.el
9e832ba91b * lisp/erc/erc.el: Add URL to the new ERC page on the Emac...
# Conflicts:
# etc/NEWS
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/calculator.el | 2 | ||||
| -rw-r--r-- | lisp/erc/erc.el | 17 | ||||
| -rw-r--r-- | lisp/ldefs-boot.el | 2 | ||||
| -rw-r--r-- | lisp/simple.el | 35 |
4 files changed, 28 insertions, 28 deletions
diff --git a/lisp/calculator.el b/lisp/calculator.el index c1af26ffcc0..6996990814d 100644 --- a/lisp/calculator.el +++ b/lisp/calculator.el | |||
| @@ -1622,7 +1622,7 @@ To use this, apply a binary operator (evaluate it), then call this." | |||
| 1622 | (overflow-error | 1622 | (overflow-error |
| 1623 | ;; X and Y must be integers, as expt silently returns floating-point | 1623 | ;; X and Y must be integers, as expt silently returns floating-point |
| 1624 | ;; infinity on floating-point overflow. | 1624 | ;; infinity on floating-point overflow. |
| 1625 | (if (or (natnump x) (zerop (logand x 1))) | 1625 | (if (or (natnump x) (zerop (logand y 1))) |
| 1626 | 1.0e+INF | 1626 | 1.0e+INF |
| 1627 | -1.0e+INF)))) | 1627 | -1.0e+INF)))) |
| 1628 | 1628 | ||
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el index cc5226bf6ed..cfde84e19aa 100644 --- a/lisp/erc/erc.el +++ b/lisp/erc/erc.el | |||
| @@ -33,17 +33,8 @@ | |||
| 33 | ;;; Commentary: | 33 | ;;; Commentary: |
| 34 | 34 | ||
| 35 | ;; ERC is a powerful, modular, and extensible IRC client for Emacs. | 35 | ;; ERC is a powerful, modular, and extensible IRC client for Emacs. |
| 36 | 36 | ;; For more information, visit the ERC page at | |
| 37 | ;; For more information, see the following URLs: | 37 | ;; <https://www.gnu.org/software/emacs/erc.html>. |
| 38 | ;; * https://sv.gnu.org/projects/erc/ | ||
| 39 | ;; * https://www.emacswiki.org/emacs/ERC | ||
| 40 | |||
| 41 | |||
| 42 | |||
| 43 | ;; As of 2006-06-13, ERC development is now hosted on Savannah | ||
| 44 | ;; (https://sv.gnu.org/projects/erc). I invite everyone who wants to | ||
| 45 | ;; hack on it to contact me <mwolson@gnu.org> in order to get write | ||
| 46 | ;; access to the shared Arch archive. | ||
| 47 | 38 | ||
| 48 | ;; Configuration: | 39 | ;; Configuration: |
| 49 | 40 | ||
| @@ -75,12 +66,12 @@ | |||
| 75 | (eval-when-compile (require 'subr-x)) | 66 | (eval-when-compile (require 'subr-x)) |
| 76 | 67 | ||
| 77 | (defvar erc-official-location | 68 | (defvar erc-official-location |
| 78 | "https://www.emacswiki.org/emacs/ERC (mailing list: emacs-erc@gnu.org)" | 69 | "https://www.gnu.org/software/emacs/erc.html (mailing list: emacs-erc@gnu.org)" |
| 79 | "Location of the ERC client on the Internet.") | 70 | "Location of the ERC client on the Internet.") |
| 80 | 71 | ||
| 81 | (defgroup erc nil | 72 | (defgroup erc nil |
| 82 | "Emacs Internet Relay Chat client." | 73 | "Emacs Internet Relay Chat client." |
| 83 | :link '(url-link "https://www.emacswiki.org/emacs/ERC") | 74 | :link '(url-link "https://www.gnu.org/software/emacs/erc.html") |
| 84 | :link '(custom-manual "(erc) Top") | 75 | :link '(custom-manual "(erc) Top") |
| 85 | :prefix "erc-" | 76 | :prefix "erc-" |
| 86 | :group 'applications) | 77 | :group 'applications) |
diff --git a/lisp/ldefs-boot.el b/lisp/ldefs-boot.el index 10dc78d6288..e1f238c7d89 100644 --- a/lisp/ldefs-boot.el +++ b/lisp/ldefs-boot.el | |||
| @@ -27873,7 +27873,7 @@ Directory for additional secondary Rmail files.") | |||
| 27873 | 27873 | ||
| 27874 | (custom-autoload 'rmail-secondary-file-directory "rmail" t) | 27874 | (custom-autoload 'rmail-secondary-file-directory "rmail" t) |
| 27875 | 27875 | ||
| 27876 | (defvar rmail-secondary-file-regexp (purecopy "\\.xmail$") "\ | 27876 | (defvar rmail-secondary-file-regexp (purecopy "\\.xmail\\'") "\ |
| 27877 | Regexp for which files are secondary Rmail files.") | 27877 | Regexp for which files are secondary Rmail files.") |
| 27878 | 27878 | ||
| 27879 | (custom-autoload 'rmail-secondary-file-regexp "rmail" t) | 27879 | (custom-autoload 'rmail-secondary-file-regexp "rmail" t) |
diff --git a/lisp/simple.el b/lisp/simple.el index abf5ee26251..8bc84a9dfa0 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -3474,20 +3474,22 @@ This affects `shell-command' and `async-shell-command'." | |||
| 3474 | :version "27.1") | 3474 | :version "27.1") |
| 3475 | 3475 | ||
| 3476 | (defcustom shell-command-dont-erase-buffer nil | 3476 | (defcustom shell-command-dont-erase-buffer nil |
| 3477 | "Control if the output buffer is erased before the command. | 3477 | "Whether to erase the output buffer before executing shell command. |
| 3478 | 3478 | ||
| 3479 | A nil value erases the output buffer before execution of the | 3479 | A nil value erases the output buffer before execution of the |
| 3480 | shell command, except when the output buffer is the current one. | 3480 | shell command, except when the output buffer is the current one. |
| 3481 | 3481 | ||
| 3482 | The value `erase' ensures the output buffer is erased before | 3482 | The value `erase' ensures the output buffer is erased before |
| 3483 | execution of the shell command. | 3483 | execution of the shell command even if it is the current buffer. |
| 3484 | 3484 | ||
| 3485 | Other non-nil values prevent the output buffer from being erased and | 3485 | Other non-nil values prevent the output buffer from being erased; they |
| 3486 | set the point after execution of the shell command. | 3486 | also reposition point in the shell output buffer after execution of the |
| 3487 | shell command, except when the output buffer is the current buffer. | ||
| 3487 | 3488 | ||
| 3488 | The value `beg-last-out' sets point at the beginning of the output, | 3489 | The value `beg-last-out' sets point at the beginning of the last |
| 3489 | `end-last-out' sets point at the end of the buffer, `save-point' | 3490 | output, `end-last-out' sets point at the end of the last output, |
| 3490 | restores the buffer position before the command." | 3491 | and `save-point' restores the buffer position as it was before the |
| 3492 | shell command." | ||
| 3491 | :type '(choice | 3493 | :type '(choice |
| 3492 | (const :tag "Erase output buffer if not the current one" nil) | 3494 | (const :tag "Erase output buffer if not the current one" nil) |
| 3493 | (const :tag "Always erase output buffer" erase) | 3495 | (const :tag "Always erase output buffer" erase) |
| @@ -3517,9 +3519,12 @@ See `shell-command-dont-erase-buffer'." | |||
| 3517 | ;; if some text has a non-nil read-only property, | 3519 | ;; if some text has a non-nil read-only property, |
| 3518 | ;; which comint sometimes adds for prompts. | 3520 | ;; which comint sometimes adds for prompts. |
| 3519 | (setq pos | 3521 | (setq pos |
| 3520 | (cond ((eq sym 'save-point) (point)) | 3522 | (cond ((eq sym 'save-point) |
| 3521 | ((eq sym 'beg-last-out) (point-max)) | 3523 | (if (not output-to-current-buffer) |
| 3522 | ;;((not sym) | 3524 | (point))) |
| 3525 | ((eq sym 'beg-last-out) | ||
| 3526 | (if (not output-to-current-buffer) | ||
| 3527 | (point-max))) | ||
| 3523 | ((or (eq sym 'erase) | 3528 | ((or (eq sym 'erase) |
| 3524 | (and (null sym) (not output-to-current-buffer))) | 3529 | (and (null sym) (not output-to-current-buffer))) |
| 3525 | (let ((inhibit-read-only t)) | 3530 | (let ((inhibit-read-only t)) |
| @@ -3634,10 +3639,15 @@ says to put the output in some other buffer. | |||
| 3634 | If OUTPUT-BUFFER is a buffer or buffer name, erase that buffer | 3639 | If OUTPUT-BUFFER is a buffer or buffer name, erase that buffer |
| 3635 | and insert the output there; a non-nil value of | 3640 | and insert the output there; a non-nil value of |
| 3636 | `shell-command-dont-erase-buffer' prevents the buffer from being | 3641 | `shell-command-dont-erase-buffer' prevents the buffer from being |
| 3637 | erased. If OUTPUT-BUFFER is not a buffer and not nil, insert the | 3642 | erased. If OUTPUT-BUFFER is not a buffer and not nil (which happens |
| 3643 | interactively when the prefix argument is given), insert the | ||
| 3638 | output in current buffer after point leaving mark after it. This | 3644 | output in current buffer after point leaving mark after it. This |
| 3639 | cannot be done asynchronously. | 3645 | cannot be done asynchronously. |
| 3640 | 3646 | ||
| 3647 | The user option `shell-command-dont-erase-buffer', which see, controls | ||
| 3648 | whether the output buffer is erased and where to put point after | ||
| 3649 | the shell command. | ||
| 3650 | |||
| 3641 | If the command terminates without error, but generates output, | 3651 | If the command terminates without error, but generates output, |
| 3642 | and you did not specify \"insert it in the current buffer\", | 3652 | and you did not specify \"insert it in the current buffer\", |
| 3643 | the output can be displayed in the echo area or in its buffer. | 3653 | the output can be displayed in the echo area or in its buffer. |
| @@ -3725,8 +3735,7 @@ impose the use of a shell (with its need to quote arguments)." | |||
| 3725 | ;; because we inserted text. | 3735 | ;; because we inserted text. |
| 3726 | (goto-char (prog1 (mark t) | 3736 | (goto-char (prog1 (mark t) |
| 3727 | (set-marker (mark-marker) (point) | 3737 | (set-marker (mark-marker) (point) |
| 3728 | (current-buffer)))) | 3738 | (current-buffer))))) |
| 3729 | (shell-command-set-point-after-cmd)) | ||
| 3730 | ;; Output goes in a separate buffer. | 3739 | ;; Output goes in a separate buffer. |
| 3731 | ;; Preserve the match data in case called from a program. | 3740 | ;; Preserve the match data in case called from a program. |
| 3732 | ;; FIXME: It'd be ridiculous for an Elisp function to call | 3741 | ;; FIXME: It'd be ridiculous for an Elisp function to call |