diff options
author | Tassilo Horn <tassilo@member.fsf.org> | 2010-12-30 15:58:32 +0100 |
---|---|---|
committer | Tassilo Horn <tassilo@member.fsf.org> | 2010-12-30 15:58:32 +0100 |
commit | f9e68477a2d70c3d371bffb7c9f9f080468ca8ce (patch) | |
tree | 1755d2c7065a77ab1974de43644d3734e9c50b1c /lisp/doc-view.el | |
parent | ad727c819a625c4f9cf482dda17cf339fa88610c (diff) | |
download | emacs-f9e68477a2d70c3d371bffb7c9f9f080468ca8ce.tar.gz |
* doc-view.el (doc-view-toggle-display): Perform rassq-delete-all
on a copy of auto-mode-alist, because that deletes with side
effects.
Diffstat (limited to 'lisp/doc-view.el')
-rw-r--r-- | lisp/doc-view.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/doc-view.el b/lisp/doc-view.el index 526bf7694fb..a5dbff10564 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el @@ -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 |