]> code.delx.au - gnu-emacs/blobdiff - lisp/skeleton.el
(hs-set-up-overlay): New user var.
[gnu-emacs] / lisp / skeleton.el
index 95ac378e442c00a3df7c1cf6ef01ab12c1adc086..e843ef9f02d801d16991d2a9444d0c51415fdcb0 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.
@@ -556,4 +561,5 @@ symmetrical ones, and the same character twice for the others."
 
 (provide 'skeleton)
 
+;;; arch-tag: ccad7bd5-eb5d-40de-9ded-900197215c3e
 ;;; skeleton.el ends here