You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I understand the docs and source, there's no such feature yet, I wrote the following work-around:
;; Keep buffer-undo-list as is while iedit is active, that is, as long;; as I am inside iedit I can undo/redo current occurences. However,;; if I leave iedit and issue the undo command, ALL changes made with;; iedit are undone, whereas the default behaviour would be to go;; through every change made iside iedit, which I hate.;; iedit doesn't provide a customizable flag to configure it's undo;; behavior, so, I modify it myself using defadvice.
(setq my-buffer-undo-list nil)
(advice-add'iedit-mode:before '(lambda (&rest args) ;; save current
(setq my-buffer-undo-list buffer-undo-list)))
(advice-add'iedit-mode:after '(lambda (&rest args) ;; restore previously saved
(setq buffer-undo-list my-buffer-undo-list)))
Maybe this is of use for others, therefore I'm posting it here.
Thanks for iedit anyway, I LOVE LOVE LOVE it 👍
The text was updated successfully, but these errors were encountered:
As far as I understand the docs and source, there's no such feature yet, I wrote the following work-around:
Maybe this is of use for others, therefore I'm posting it here.
Thanks for iedit anyway, I LOVE LOVE LOVE it 👍
The text was updated successfully, but these errors were encountered: