diff options
| -rw-r--r-- | lisp/simple.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 88165967892..4b00ad6f8fc 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -1305,8 +1305,10 @@ a mistake; see the documentation of `set-mark'." | |||
| 1305 | "Deactivate the mark by setting `mark-active' to nil. | 1305 | "Deactivate the mark by setting `mark-active' to nil. |
| 1306 | \(That makes a difference only in Transient Mark mode.) | 1306 | \(That makes a difference only in Transient Mark mode.) |
| 1307 | Also runs the hook `deactivate-mark-hook'." | 1307 | Also runs the hook `deactivate-mark-hook'." |
| 1308 | (setq mark-active nil) | 1308 | (if transient-mark-mode |
| 1309 | (run-hooks 'deactivate-mark-hook)) | 1309 | (progn |
| 1310 | (setq mark-active nil) | ||
| 1311 | (run-hooks 'deactivate-mark-hook)))) | ||
| 1310 | 1312 | ||
| 1311 | (defun set-mark (pos) | 1313 | (defun set-mark (pos) |
| 1312 | "Set this buffer's mark to POS. Don't use this function! | 1314 | "Set this buffer's mark to POS. Don't use this function! |