]> git.eshelyaron.com Git - emacs.git/commitdiff
(skeleton-proxy-new): Consume the mark-active state.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 8 Jun 2003 00:54:06 +0000 (00:54 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 8 Jun 2003 00:54:06 +0000 (00:54 +0000)
lisp/skeleton.el

index 95ac378e442c00a3df7c1cf6ef01ab12c1adc086..3cb37b44aee70b2e5a3cc7357d4c0add6fbbbc60 100644 (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.