GNU bug report logs - #6100
c-beginning-of-defun doesn't push mark

Previous Next

Packages: cc-mode, emacs;

Reported by: Juri Linkov <juri <at> jurta.org>

Date: Tue, 4 May 2010 16:24:01 UTC

Severity: minor

Tags: patch

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Juri Linkov <juri <at> jurta.org>
Cc: 6100 <at> debbugs.gnu.org
Subject: bug#6100: c-beginning-of-defun doesn't push mark
Date: Wed, 05 May 2010 09:16:25 -0400
> There is one annoying difference between `beginning-of-defun'
> and `c-beginning-of-defun':

> `beginning-of-defun' and `end-of-defun' pushes the mark for the
> old point location to the mark ring with this code:

>   (or (not (eq this-command 'beginning-of-defun))
>       (eq last-command 'beginning-of-defun)
>       (and transient-mark-mode mark-active)
>       (push-mark))

> but `c-beginning-of-defun' doesn't do that.

> This patch add the same code to `c-beginning-of-defun' and `c-end-of-defun':

Of course, I'd argue that the right fix is to use `beginning-of-defun'.


        Stefan




This bug report was last modified 15 years and 63 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.