Mercurial > emacs
changeset 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 | db0f95a55fd4 |
children | e2576d47dd53 |
files | lisp/emacs-lisp/lisp.el |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
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)