Wrap skeleton logic in atomic-change-group
* lisp/skeleton.el (define-skeleton): Use an atomic change group so that if the user `C-g's in the middle of it, we're not left with half a skeleton in the buffer (bug#42311).
This commit is contained in:
parent
7389a9ef09
commit
b22b1f935d
1 changed files with 2 additions and 1 deletions
|
@ -135,7 +135,8 @@ A prefix argument of -1 says to wrap around region, even if not highlighted.
|
|||
A prefix argument of zero says to wrap around zero words---that is, nothing.
|
||||
This is a way of overriding the use of a highlighted region.")
|
||||
(interactive "*P\nP")
|
||||
(skeleton-proxy-new ',skeleton str arg))))
|
||||
(atomic-change-group
|
||||
(skeleton-proxy-new ',skeleton str arg)))))
|
||||
|
||||
;;;###autoload
|
||||
(defun skeleton-proxy-new (skeleton &optional str arg)
|
||||
|
|
Loading…
Add table
Reference in a new issue