diff options
| author | Stefan Monnier | 2003-06-08 00:54:06 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2003-06-08 00:54:06 +0000 |
| commit | b532266db674fb9840a139386b1e2cdc410438be (patch) | |
| tree | d993293f967664f852b35e580c9f127130b3b44b | |
| parent | 8a591d52426ccedd66e333b1c3de3ec65925c23e (diff) | |
| download | emacs-b532266db674fb9840a139386b1e2cdc410438be.tar.gz emacs-b532266db674fb9840a139386b1e2cdc410438be.zip | |
(skeleton-proxy-new): Consume the mark-active state.
| -rw-r--r-- | lisp/skeleton.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/skeleton.el b/lisp/skeleton.el index 95ac378e442..3cb37b44aee 100644 --- a/lisp/skeleton.el +++ b/lisp/skeleton.el | |||
| @@ -164,7 +164,12 @@ of `str' whereas the skeleton's interactor is then ignored." | |||
| 164 | (and skeleton-autowrap | 164 | (and skeleton-autowrap |
| 165 | (or (eq last-command 'mouse-drag-region) | 165 | (or (eq last-command 'mouse-drag-region) |
| 166 | (and transient-mark-mode mark-active)) | 166 | (and transient-mark-mode mark-active)) |
| 167 | -1)) | 167 | ;; Deactivate the mark, in case one of the |
| 168 | ;; elements of the skeleton is sensitive | ||
| 169 | ;; to such situations (e.g. it is itself a | ||
| 170 | ;; skeleton). | ||
| 171 | (progn (deactivate-mark) | ||
| 172 | -1))) | ||
| 168 | (if (stringp str) | 173 | (if (stringp str) |
| 169 | str)) | 174 | str)) |
| 170 | ;; Return non-nil to tell expand-abbrev that expansion has happened. | 175 | ;; Return non-nil to tell expand-abbrev that expansion has happened. |