# HG changeset patch # User Juri Linkov # Date 1094118218 0 # Node ID 3dcc647295dab15d4abcdaedabba4ce8d4f2cc30 # Parent db0f95a55fd4e46cece8b712966bce64eb3f0790 (beginning-of-defun, end-of-defun): Do not push mark if inhibit-mark-movement is non-nil. diff -r db0f95a55fd4 -r 3dcc647295da lisp/emacs-lisp/lisp.el --- 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)