From: Juri Linkov Date: Fri, 9 Dec 2005 09:56:39 +0000 (+0000) Subject: (locate): Disable undo in *Locate* buffer. X-Git-Tag: emacs-pretest-22.0.90~5406 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e242b6c447c58d1aeaa58bb621c36407fee08fea;p=emacs.git (locate): Disable undo in *Locate* buffer. --- diff --git a/lisp/locate.el b/lisp/locate.el index 5b61ed522e9..5934a572d4d 100644 --- a/lisp/locate.el +++ b/lisp/locate.el @@ -229,7 +229,8 @@ With prefix arg, prompt for the locate command to run." (save-window-excursion (set-buffer (get-buffer-create locate-buffer-name)) (locate-mode) - (let ((inhibit-read-only t)) + (let ((inhibit-read-only t) + (buffer-undo-list t)) (erase-buffer) (setq locate-current-filter filter)