diff options
| author | Glenn Morris | 2020-02-06 07:50:29 -0800 |
|---|---|---|
| committer | Glenn Morris | 2020-02-06 07:50:29 -0800 |
| commit | 68d43392a65186a944c839dc576b2b01deafbb0d (patch) | |
| tree | 2392fb385569e10ad9d4d0ab2a48a1771131bf4e /lisp/vc | |
| parent | cf14fa0427d6f490972521f7a55134e7139117c6 (diff) | |
| parent | 09eed01afb4968a93247fb8eb7b5301a5bfb6342 (diff) | |
| download | emacs-68d43392a65186a944c839dc576b2b01deafbb0d.tar.gz emacs-68d43392a65186a944c839dc576b2b01deafbb0d.zip | |
Merge from origin/emacs-27
09eed01afb Wrap some set-auto-mode calls with delay-mode-hooks (bug#3...
4a0a114505 Support ido-vertical-mode better
ef5fba9f40 Fix faces tab-bar and tab-line.
831508422e Cater for 3-argument version of pthread_setname_np
f27187f963 Clarify lexvar restrictions for add-to-ordered-list, add-t...
32763dac46 Replace add-to-list to lexical variable with push (bug#39373)
d07f177382 Clarify add-to-list documentation (bug#39373)
d3d2ea927c MH-E: alter content in mh-display-msg, not mh-show-mode
db7fa2546f Update documentation for mh-show-mode-hook
d10be6bf28 Example goto-addr hook: MH-E already uses goto-address
# Conflicts:
# etc/NEWS
Diffstat (limited to 'lisp/vc')
| -rw-r--r-- | lisp/vc/diff-mode.el | 4 | ||||
| -rw-r--r-- | lisp/vc/vc.el | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el index 2dbab802086..d61c363c821 100644 --- a/lisp/vc/diff-mode.el +++ b/lisp/vc/diff-mode.el | |||
| @@ -2719,7 +2719,9 @@ hunk text is not found in the source file." | |||
| 2719 | (cl-assert (null buffer-file-name)) | 2719 | (cl-assert (null buffer-file-name)) |
| 2720 | (let ((enable-local-variables :safe) ;; to find `mode:' | 2720 | (let ((enable-local-variables :safe) ;; to find `mode:' |
| 2721 | (buffer-file-name file)) | 2721 | (buffer-file-name file)) |
| 2722 | (set-auto-mode) | 2722 | ;; Don't run hooks that might assume buffer-file-name |
| 2723 | ;; really associates buffer with a file (bug#39190). | ||
| 2724 | (delay-mode-hooks (set-auto-mode)) | ||
| 2723 | ;; FIXME: Is this really worth the trouble? | 2725 | ;; FIXME: Is this really worth the trouble? |
| 2724 | (when (and (fboundp 'generic-mode-find-file-hook) | 2726 | (when (and (fboundp 'generic-mode-find-file-hook) |
| 2725 | (memq #'generic-mode-find-file-hook | 2727 | (memq #'generic-mode-find-file-hook |
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index f64b6c06310..ec252b74d47 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el | |||
| @@ -2098,7 +2098,9 @@ Unlike `vc-find-revision-save', doesn't save the buffer to the file." | |||
| 2098 | ;; For non-interactive, skip any questions | 2098 | ;; For non-interactive, skip any questions |
| 2099 | (let ((enable-local-variables :safe) ;; to find `mode:' | 2099 | (let ((enable-local-variables :safe) ;; to find `mode:' |
| 2100 | (buffer-file-name file)) | 2100 | (buffer-file-name file)) |
| 2101 | (ignore-errors (set-auto-mode))) | 2101 | ;; Don't run hooks that might assume buffer-file-name |
| 2102 | ;; really associates buffer with a file (bug#39190). | ||
| 2103 | (ignore-errors (delay-mode-hooks (set-auto-mode)))) | ||
| 2102 | (normal-mode)) | 2104 | (normal-mode)) |
| 2103 | (set-buffer-modified-p nil) | 2105 | (set-buffer-modified-p nil) |
| 2104 | (setq buffer-read-only t)) | 2106 | (setq buffer-read-only t)) |