aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2011-02-23 19:59:04 -0800
committerGlenn Morris2011-02-23 19:59:04 -0800
commitb36f2f1cb8fc121bf6fe44e5260d114a9f46d950 (patch)
tree091054fc562c72092dd1aaf43af3f37332664ed1
parent3cbbfdc34f9ef2c32f485b8d3ce444689115fa3c (diff)
downloademacs-b36f2f1cb8fc121bf6fe44e5260d114a9f46d950.tar.gz
emacs-b36f2f1cb8fc121bf6fe44e5260d114a9f46d950.zip
Dired-X fix for bug#5216.
* lisp/dired-x.el (dired-hack-local-variables): Handle interrupts during hacking local variables.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/dired-x.el11
2 files changed, 9 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 28d09e7b2c8..6ce81a9214a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12011-02-24 Glenn Morris <rgm@gnu.org> 12011-02-24 Glenn Morris <rgm@gnu.org>
2 2
3 * dired-x.el (dired-hack-local-variables):
4 Handle interrupts during hacking local variables. (Bug#5216)
5
3 * emacs-lisp/autoload.el (autoload-save-buffers) 6 * emacs-lisp/autoload.el (autoload-save-buffers)
4 (autoload-find-destination, update-directory-autoloads): 7 (autoload-find-destination, update-directory-autoloads):
5 Avoid prompts when updating autoloads. 8 Avoid prompts when updating autoloads.
diff --git a/lisp/dired-x.el b/lisp/dired-x.el
index dcf8906976b..ce07676fc99 100644
--- a/lisp/dired-x.el
+++ b/lisp/dired-x.el
@@ -774,12 +774,13 @@ See also `dired-enable-local-variables'."
774 (insert "\^L\n") 774 (insert "\^L\n")
775 (insert-file-contents dired-local-variables-file)) 775 (insert-file-contents dired-local-variables-file))
776 ;; Hack 'em. 776 ;; Hack 'em.
777 (let ((buffer-file-name dired-local-variables-file)) 777 (unwind-protect
778 (hack-local-variables)) 778 (let ((buffer-file-name dired-local-variables-file))
779 (hack-local-variables))
780 ;; Delete this stuff: `eobp' is used to find last subdir by dired.el.
781 (delete-region opoint (point-max)))
779 ;; Make sure that the modeline shows the proper information. 782 ;; Make sure that the modeline shows the proper information.
780 (dired-sort-set-modeline) 783 (dired-sort-set-modeline))))
781 ;; Delete this stuff: `eobp' is used to find last subdir by dired.el.
782 (delete-region opoint (point-max)))))
783 784
784(make-obsolete 'dired-hack-local-variables 785(make-obsolete 'dired-hack-local-variables
785 'hack-dir-local-variables-non-file-buffer "24.1") 786 'hack-dir-local-variables-non-file-buffer "24.1")