diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2019-04-09 19:35:01 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2019-04-09 19:35:01 +0200 |
commit | f3a79c6e42cd28f9734b76184ec4636826d9e024 (patch) | |
tree | 5445aafc5ed5780e33645617fea0b8e14e31d966 /helm-occur.el | |
parent | cf45caaaad0a56eb80eb7c40929f002e8230d697 (diff) |
Disable/reenable undo in helm-occur-mode buffer
Diffstat (limited to 'helm-occur.el')
-rw-r--r-- | helm-occur.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/helm-occur.el b/helm-occur.el index 27e5afd8..d5e4d93e 100644 --- a/helm-occur.el +++ b/helm-occur.el @@ -366,6 +366,7 @@ Same as `helm-occur-goto-line' but go in new frame." (setq buf new-buf)) (with-current-buffer (get-buffer-create buf) (setq buffer-read-only t) + (buffer-disable-undo) (let ((inhibit-read-only t) (map (make-sparse-keymap)) buf-name) @@ -408,6 +409,7 @@ Same as `helm-occur-goto-line' but go in new frame." (define-key map [mouse-2] 'helm-occur-mode-mouse-goto-line) (define-key map [mouse-3] 'ignore)))) (forward-line 1)))) + (buffer-enable-undo) (helm-occur-mode)) (pop-to-buffer buf) (message "Helm occur Results saved in `%s' buffer" buf))) |