diff options
| author | Glenn Morris | 2019-03-09 10:07:46 -0800 |
|---|---|---|
| committer | Glenn Morris | 2019-03-09 10:07:46 -0800 |
| commit | 3b63afd73b541ea559aa58edc1901c8b30e2af40 (patch) | |
| tree | a68afec4142bd100f3b6dfa3eb90aa2c0a71b34f /lisp | |
| parent | e1819a254f28a7dcba3c395c345fe237a512e92e (diff) | |
| parent | 0589de55c465627c16314519568f22daa62ff654 (diff) | |
| download | emacs-3b63afd73b541ea559aa58edc1901c8b30e2af40.tar.gz emacs-3b63afd73b541ea559aa58edc1901c8b30e2af40.zip | |
Merge from origin/emacs-26
0589de5 (origin/emacs-26) Fix markup of fake keys in the ELisp manual
82d4b98 Avoid errors in Auto Revert mode
a3b1935 Mention empty strings in file name expansion, emacs lisp refe...
a38da0d cc-mode.texi: Work around makeinfo alignment bug. Fix proble...
464ee80 Warn against recursive invocations of 'buffer-list-update-hoo...
60b5c10 Provide more details in doc-string of 'delete-windows-on' (Bu...
f0be0f1 Improve documentation of 'delete-windows-on'
f1bddc7 * lisp/frame.el (make-frame-command): Doc fix. (Bug#34715)
2848623 Avoid undefined behavior in gdb-mi.el
dbf1837 * lisp/window.el (fit-frame-to-buffer): Make doc-string more ...
099ef44 Minor spelling and grammar fixes (bug#34756)
52fd400 Minor improvement of documentation of '(when CONDITION . SPEC)'
f872b65 Improve documentation of 'auto-coding-functions'
04cad5e Fix visiting XML files with non-Unix EOL format
a89fabe Update example major mode code in Elisp manual
# Conflicts:
# lisp/autorevert.el
# lisp/window.el
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/autorevert.el | 2 | ||||
| -rw-r--r-- | lisp/frame.el | 4 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 4 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 2 | ||||
| -rw-r--r-- | lisp/international/mule.el | 25 | ||||
| -rw-r--r-- | lisp/progmodes/gdb-mi.el | 2 | ||||
| -rw-r--r-- | lisp/window.el | 24 |
7 files changed, 47 insertions, 16 deletions
diff --git a/lisp/autorevert.el b/lisp/autorevert.el index 150693baf13..bc7c616ecb7 100644 --- a/lisp/autorevert.el +++ b/lisp/autorevert.el | |||
| @@ -816,7 +816,7 @@ the timer when no buffers need to be checked." | |||
| 816 | (when (and (not global-auto-revert-mode) | 816 | (when (and (not global-auto-revert-mode) |
| 817 | (null auto-revert-buffer-list)) | 817 | (null auto-revert-buffer-list)) |
| 818 | (if (timerp auto-revert-timer) | 818 | (if (timerp auto-revert-timer) |
| 819 | (cancel-timer auto-revert-timer)) | 819 | (cancel-timer auto-revert-timer)) |
| 820 | (setq auto-revert-timer nil))))) | 820 | (setq auto-revert-timer nil))))) |
| 821 | 821 | ||
| 822 | 822 | ||
diff --git a/lisp/frame.el b/lisp/frame.el index cdb2ac4af11..dd1d5b030f5 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -736,7 +736,9 @@ If DISPLAY is nil, that stands for the selected frame's display." | |||
| 736 | (defun make-frame-command () | 736 | (defun make-frame-command () |
| 737 | "Make a new frame, on the same terminal as the selected frame. | 737 | "Make a new frame, on the same terminal as the selected frame. |
| 738 | If the terminal is a text-only terminal, this also selects the | 738 | If the terminal is a text-only terminal, this also selects the |
| 739 | new frame." | 739 | new frame. |
| 740 | |||
| 741 | When called from Lisp, returns the new frame." | ||
| 740 | (interactive) | 742 | (interactive) |
| 741 | (if (display-graphic-p) | 743 | (if (display-graphic-p) |
| 742 | (make-frame) | 744 | (make-frame) |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index baf44cb4830..baa8a244c07 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -7473,7 +7473,7 @@ must return `mid', `mail', `invalid' or `ask'." | |||
| 7473 | (2.0 . "^[A-Z][a-z][A-Z][a-z][a-z][^a-z]")) ;; ^[A-Z][a-z]{4,4} | 7473 | (2.0 . "^[A-Z][a-z][A-Z][a-z][a-z][^a-z]")) ;; ^[A-Z][a-z]{4,4} |
| 7474 | "An alist of (RATE . REGEXP) pairs for `gnus-button-mid-or-mail-heuristic'. | 7474 | "An alist of (RATE . REGEXP) pairs for `gnus-button-mid-or-mail-heuristic'. |
| 7475 | 7475 | ||
| 7476 | A negative RATE indicates a message IDs, whereas a positive indicates a mail | 7476 | A negative RATE indicates a message ID, whereas a positive indicates a mail |
| 7477 | address. The REGEXP is processed with `case-fold-search' set to nil." | 7477 | address. The REGEXP is processed with `case-fold-search' set to nil." |
| 7478 | :version "22.1" | 7478 | :version "22.1" |
| 7479 | :group 'gnus-article-buttons | 7479 | :group 'gnus-article-buttons |
| @@ -7482,7 +7482,7 @@ address. The REGEXP is processed with `case-fold-search' set to nil." | |||
| 7482 | 7482 | ||
| 7483 | (defun gnus-button-mid-or-mail-heuristic (mid-or-mail) | 7483 | (defun gnus-button-mid-or-mail-heuristic (mid-or-mail) |
| 7484 | "Guess whether MID-OR-MAIL is a message ID or a mail address. | 7484 | "Guess whether MID-OR-MAIL is a message ID or a mail address. |
| 7485 | Returns `mid' if MID-OR-MAIL is a message IDs, `mail' if it's a mail | 7485 | Returns `mid' if MID-OR-MAIL is a message ID, `mail' if it's a mail |
| 7486 | address, `ask' if unsure and `invalid' if the string is invalid." | 7486 | address, `ask' if unsure and `invalid' if the string is invalid." |
| 7487 | (let ((case-fold-search nil) | 7487 | (let ((case-fold-search nil) |
| 7488 | (list gnus-button-mid-or-mail-heuristic-alist) | 7488 | (list gnus-button-mid-or-mail-heuristic-alist) |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index d490f0ca74c..c491f16dd86 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -1732,7 +1732,7 @@ no, only reply back to the author." | |||
| 1732 | :type 'boolean) | 1732 | :type 'boolean) |
| 1733 | 1733 | ||
| 1734 | (defcustom message-user-fqdn nil | 1734 | (defcustom message-user-fqdn nil |
| 1735 | "Domain part of Message-Ids." | 1735 | "Domain part of Message-IDs." |
| 1736 | :version "22.1" | 1736 | :version "22.1" |
| 1737 | :group 'message-headers | 1737 | :group 'message-headers |
| 1738 | :link '(custom-manual "(message)News Headers") | 1738 | :link '(custom-manual "(message)News Headers") |
diff --git a/lisp/international/mule.el b/lisp/international/mule.el index 5393958013b..281e5297d63 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el | |||
| @@ -1852,9 +1852,12 @@ or nil." | |||
| 1852 | 1852 | ||
| 1853 | Each function in this list should be written to operate on the | 1853 | Each function in this list should be written to operate on the |
| 1854 | current buffer, but should not modify it in any way. The buffer | 1854 | current buffer, but should not modify it in any way. The buffer |
| 1855 | will contain undecoded text of parts of the file. Each function | 1855 | will contain the text of parts of the file. Each function |
| 1856 | should take one argument, SIZE, which says how many characters | 1856 | should take one argument, SIZE, which says how many characters |
| 1857 | \(starting from point) it should look at. | 1857 | \(starting from point) it should look at. The function might be |
| 1858 | called both when the file is visited and Emacs wants to decode | ||
| 1859 | its contents, and when the file's buffer is about to be saved | ||
| 1860 | and Emacs wants to determine how to encode its contents. | ||
| 1858 | 1861 | ||
| 1859 | If one of these functions succeeds in determining a coding | 1862 | If one of these functions succeeds in determining a coding |
| 1860 | system, it should return that coding system. Otherwise, it | 1863 | system, it should return that coding system. Otherwise, it |
| @@ -2501,10 +2504,17 @@ This function is intended to be added to `auto-coding-functions'." | |||
| 2501 | (let ((sym-type (coding-system-type sym)) | 2504 | (let ((sym-type (coding-system-type sym)) |
| 2502 | (bfcs-type | 2505 | (bfcs-type |
| 2503 | (coding-system-type buffer-file-coding-system))) | 2506 | (coding-system-type buffer-file-coding-system))) |
| 2504 | ;; 'charset' will signal an error in | 2507 | ;; If the buffer is unibyte, its encoding is |
| 2505 | ;; coding-system-equal, since it isn't a | 2508 | ;; immaterial (it is just the default value of |
| 2506 | ;; coding-system. So test that up front. | 2509 | ;; buffer-file-coding-system), so we ignore it. |
| 2507 | (if (and (not (equal sym-type 'charset)) | 2510 | ;; This situation happens when this function is |
| 2511 | ;; called as part of visiting a file, as opposed | ||
| 2512 | ;; to when saving a buffer to a file. | ||
| 2513 | (if (and enable-multibyte-characters | ||
| 2514 | ;; 'charset' will signal an error in | ||
| 2515 | ;; coding-system-equal, since it isn't a | ||
| 2516 | ;; coding-system. So test that up front. | ||
| 2517 | (not (equal sym-type 'charset)) | ||
| 2508 | (coding-system-equal 'utf-8 sym-type) | 2518 | (coding-system-equal 'utf-8 sym-type) |
| 2509 | (coding-system-equal 'utf-8 bfcs-type)) | 2519 | (coding-system-equal 'utf-8 bfcs-type)) |
| 2510 | buffer-file-coding-system | 2520 | buffer-file-coding-system |
| @@ -2556,7 +2566,8 @@ This function is intended to be added to `auto-coding-functions'." | |||
| 2556 | (let ((sym-type (coding-system-type sym)) | 2566 | (let ((sym-type (coding-system-type sym)) |
| 2557 | (bfcs-type | 2567 | (bfcs-type |
| 2558 | (coding-system-type buffer-file-coding-system))) | 2568 | (coding-system-type buffer-file-coding-system))) |
| 2559 | (if (and (coding-system-equal 'utf-8 sym-type) | 2569 | (if (and enable-multibyte-characters |
| 2570 | (coding-system-equal 'utf-8 sym-type) | ||
| 2560 | (coding-system-equal 'utf-8 bfcs-type)) | 2571 | (coding-system-equal 'utf-8 bfcs-type)) |
| 2561 | buffer-file-coding-system | 2572 | buffer-file-coding-system |
| 2562 | sym)) | 2573 | sym)) |
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index 75e2deaa4ce..716f40c1f3a 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el | |||
| @@ -1843,7 +1843,7 @@ commands to be prefixed by \"-interpreter-exec console\".") | |||
| 1843 | ;; Python and Guile commands that have an argument don't enter the | 1843 | ;; Python and Guile commands that have an argument don't enter the |
| 1844 | ;; recursive reading loop. | 1844 | ;; recursive reading loop. |
| 1845 | (let* ((control-command-p (string-match gdb-control-commands-regexp string)) | 1845 | (let* ((control-command-p (string-match gdb-control-commands-regexp string)) |
| 1846 | (command-arg (match-string 3 string)) | 1846 | (command-arg (and control-command-p (match-string 3 string))) |
| 1847 | (python-or-guile-p (string-match gdb-python-guile-commands-regexp | 1847 | (python-or-guile-p (string-match gdb-python-guile-commands-regexp |
| 1848 | string))) | 1848 | string))) |
| 1849 | (if (and control-command-p | 1849 | (if (and control-command-p |
diff --git a/lisp/window.el b/lisp/window.el index 39f4fa139bb..a8b65657a49 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -4697,6 +4697,8 @@ displayed there." | |||
| 4697 | BUFFER-OR-NAME may be a buffer or the name of an existing buffer | 4697 | BUFFER-OR-NAME may be a buffer or the name of an existing buffer |
| 4698 | and defaults to the current buffer. | 4698 | and defaults to the current buffer. |
| 4699 | 4699 | ||
| 4700 | Interactively, prompt for the buffer. | ||
| 4701 | |||
| 4700 | The following non-nil values of the optional argument FRAME | 4702 | The following non-nil values of the optional argument FRAME |
| 4701 | have special meanings: | 4703 | have special meanings: |
| 4702 | 4704 | ||
| @@ -4713,9 +4715,25 @@ have special meanings: | |||
| 4713 | Any other value of FRAME means consider all windows on all | 4715 | Any other value of FRAME means consider all windows on all |
| 4714 | frames. | 4716 | frames. |
| 4715 | 4717 | ||
| 4716 | When a window showing BUFFER-OR-NAME is dedicated and the only | 4718 | Interactively, FRAME is the prefix argument, so you can |
| 4717 | window of its frame, that frame is deleted when there are other | 4719 | use \\[universal-argument] 0 to specify all windows only on |
| 4718 | frames left." | 4720 | the current terminal's frames. |
| 4721 | |||
| 4722 | If a frame's root window shows the buffer specified by | ||
| 4723 | BUFFER-OR-NAME and is dedicated to that buffer and that frame | ||
| 4724 | does not host the active minibuffer window and there is at least | ||
| 4725 | one other frame on that frame's terminal, delete that frame. | ||
| 4726 | Otherwise, do not delete a frame's root window if it shows the | ||
| 4727 | buffer specified by BUFFER-OR-NAME and do not delete any frame's | ||
| 4728 | main window showing that buffer either. Rather, in any such | ||
| 4729 | case, call `switch-to-prev-buffer' to show another buffer in that | ||
| 4730 | window and make sure the window is no more dedicated to its | ||
| 4731 | buffer. | ||
| 4732 | |||
| 4733 | If the buffer specified by BUFFER-OR-NAME is shown in a | ||
| 4734 | minibuffer window, do nothing for that window. For any window | ||
| 4735 | that does not show that buffer, remove the buffer from that | ||
| 4736 | window's lists of previous and next buffers." | ||
| 4719 | (interactive "bDelete windows on (buffer):\nP") | 4737 | (interactive "bDelete windows on (buffer):\nP") |
| 4720 | (let ((buffer (window-normalize-buffer buffer-or-name)) | 4738 | (let ((buffer (window-normalize-buffer buffer-or-name)) |
| 4721 | ;; Handle the "inverted" meaning of the FRAME argument wrt other | 4739 | ;; Handle the "inverted" meaning of the FRAME argument wrt other |