mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
* doc-view.el (doc-view-toggle-display): Perform rassq-delete-all
on a copy of auto-mode-alist, because that deletes with side effects.
This commit is contained in:
parent
ad727c819a
commit
f9e68477a2
2 changed files with 8 additions and 1 deletions
|
|
@ -1061,7 +1061,8 @@ For now these keys are useful:
|
|||
;; normal mode.
|
||||
(if doc-view-previous-major-mode
|
||||
(funcall doc-view-previous-major-mode)
|
||||
(let ((auto-mode-alist (rassq-delete-all 'doc-view-mode auto-mode-alist)))
|
||||
(let ((auto-mode-alist (rassq-delete-all 'doc-view-mode
|
||||
(copy-alist auto-mode-alist))))
|
||||
(normal-mode)))
|
||||
(doc-view-minor-mode 1))
|
||||
;; Switch to doc-view-mode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue