on a copy of auto-mode-alist, because that deletes with side
effects.
+2010-12-30 Tassilo Horn <tassilo@member.fsf.org>
+
+ * doc-view.el (doc-view-toggle-display): Perform rassq-delete-all
+ on a copy of auto-mode-alist, because that deletes with side
+ effects.
+
2010-12-30 Tassilo Horn <tassilo@member.fsf.org>
* doc-view.el (doc-view-mode, doc-view-toggle-display): Use
;; 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