diff options
| author | Kim F. Storm | 2002-04-18 22:16:50 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2002-04-18 22:16:50 +0000 |
| commit | 1841f9e393cb29a72ee9d9582d356b58ef9e1ea5 (patch) | |
| tree | 6f2fe0a2dfc632c57f63b2341dfa49627ed00539 | |
| parent | ccb6090a078693e971578e3c419df9140badaa80 (diff) | |
| download | emacs-1841f9e393cb29a72ee9d9582d356b58ef9e1ea5.tar.gz emacs-1841f9e393cb29a72ee9d9582d356b58ef9e1ea5.zip | |
(pop-to-mark-command): Do not set this-command.
(set-mark-command): Always jump to mark when called with arg.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/simple.el | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f58dc9f6173..0f2530c5cea 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2002-04-19 Kim F. Storm <storm@cua.dk> | ||
| 2 | |||
| 3 | * simple.el (pop-to-mark-command): Do not set this-command. | ||
| 4 | (set-mark-command): Always jump to mark when called with arg. | ||
| 5 | |||
| 1 | 2002-04-18 Francesco Potorti` <pot@gnu.org> | 6 | 2002-04-18 Francesco Potorti` <pot@gnu.org> |
| 2 | 7 | ||
| 3 | * comint.el (comint-watch-for-password-prompt): Remove whitespace | 8 | * comint.el (comint-watch-for-password-prompt): Remove whitespace |
diff --git a/lisp/simple.el b/lisp/simple.el index df7955098e0..71f33054dd1 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -2294,7 +2294,6 @@ Start discarding off end if gets this big." | |||
| 2294 | (interactive) | 2294 | (interactive) |
| 2295 | (if (null (mark t)) | 2295 | (if (null (mark t)) |
| 2296 | (error "No mark set in this buffer") | 2296 | (error "No mark set in this buffer") |
| 2297 | (setq this-command 'pop-to-mark-command) | ||
| 2298 | (goto-char (mark t)) | 2297 | (goto-char (mark t)) |
| 2299 | (pop-mark))) | 2298 | (pop-mark))) |
| 2300 | 2299 | ||
| @@ -2325,12 +2324,16 @@ purposes. See the documentation of `set-mark' for more information." | |||
| 2325 | (setq transient-mark-mode nil)) | 2324 | (setq transient-mark-mode nil)) |
| 2326 | (cond | 2325 | (cond |
| 2327 | ((not (eq this-command 'set-mark-command)) | 2326 | ((not (eq this-command 'set-mark-command)) |
| 2328 | (push-mark-command t)) | 2327 | (if arg |
| 2328 | (pop-to-mark-command) | ||
| 2329 | (push-mark-command t))) | ||
| 2329 | ((eq last-command 'pop-to-mark-command) | 2330 | ((eq last-command 'pop-to-mark-command) |
| 2330 | (if (and (consp arg) (> (prefix-numeric-value arg) 4)) | 2331 | (if (and (consp arg) (> (prefix-numeric-value arg) 4)) |
| 2331 | (push-mark-command nil) | 2332 | (push-mark-command nil) |
| 2333 | (setq this-command 'pop-to-mark-command) | ||
| 2332 | (pop-to-mark-command))) | 2334 | (pop-to-mark-command))) |
| 2333 | (arg | 2335 | (arg |
| 2336 | (setq this-command 'pop-to-mark-command) | ||
| 2334 | (pop-to-mark-command)) | 2337 | (pop-to-mark-command)) |
| 2335 | ((and (eq last-command 'set-mark-command) | 2338 | ((and (eq last-command 'set-mark-command) |
| 2336 | mark-active (null transient-mark-mode)) | 2339 | mark-active (null transient-mark-mode)) |