1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-29 07:58:28 +00:00

(skeleton-proxy-new): Consume the mark-active state.

This commit is contained in:
Stefan Monnier 2003-06-08 00:54:06 +00:00
parent 8a591d5242
commit b532266db6

View File

@ -164,7 +164,12 @@ of `str' whereas the skeleton's interactor is then ignored."
(and skeleton-autowrap
(or (eq last-command 'mouse-drag-region)
(and transient-mark-mode mark-active))
-1))
;; Deactivate the mark, in case one of the
;; elements of the skeleton is sensitive
;; to such situations (e.g. it is itself a
;; skeleton).
(progn (deactivate-mark)
-1)))
(if (stringp str)
str))
;; Return non-nil to tell expand-abbrev that expansion has happened.