Mercurial > emacs
diff lisp/emacs-lisp/lisp.el @ 56876:3dcc647295da
(beginning-of-defun, end-of-defun):
Do not push mark if inhibit-mark-movement is non-nil.
author | Juri Linkov <juri@jurta.org> |
---|---|
date | Thu, 02 Sep 2004 09:43:38 +0000 |
parents | eb9d99ced391 |
children | bca93997a4d7 3219f94257bc |
line wrap: on
line diff
--- a/lisp/emacs-lisp/lisp.el Thu Sep 02 09:42:13 2004 +0000 +++ b/lisp/emacs-lisp/lisp.el Thu Sep 02 09:43:38 2004 +0000 @@ -176,7 +176,8 @@ is called as a function to find the defun's beginning." (interactive "p") (and (eq this-command 'beginning-of-defun) - (or (eq last-command 'beginning-of-defun) (push-mark))) + (or inhibit-mark-movement (eq last-command 'beginning-of-defun) + (push-mark))) (and (beginning-of-defun-raw arg) (progn (beginning-of-line) t))) @@ -226,7 +227,8 @@ is called as a function to find the defun's end." (interactive "p") (and (eq this-command 'end-of-defun) - (or (eq last-command 'end-of-defun) (push-mark))) + (or inhibit-mark-movement (eq last-command 'end-of-defun) + (push-mark))) (if (or (null arg) (= arg 0)) (setq arg 1)) (if end-of-defun-function (if (> arg 0)