Commit e242b6c4 authored by Juri Linkov's avatar Juri Linkov
Browse files

(locate): Disable undo in *Locate* buffer.

parent 67019e7f
...@@ -229,7 +229,8 @@ With prefix arg, prompt for the locate command to run." ...@@ -229,7 +229,8 @@ With prefix arg, prompt for the locate command to run."
(save-window-excursion (save-window-excursion
(set-buffer (get-buffer-create locate-buffer-name)) (set-buffer (get-buffer-create locate-buffer-name))
(locate-mode) (locate-mode)
(let ((inhibit-read-only t)) (let ((inhibit-read-only t)
(buffer-undo-list t))
(erase-buffer) (erase-buffer)
(setq locate-current-filter filter) (setq locate-current-filter filter)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment