From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#6100: c-beginning-of-defun doesn't push mark Date: Wed, 05 May 2010 21:28:32 +0300 Organization: JURTA Message-ID: <87k4rimcdr.fsf@mail.jurta.org> References: <87mxwf942y.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1273098597 7541 80.91.229.12 (5 May 2010 22:29:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 May 2010 22:29:57 +0000 (UTC) Cc: 6100@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 06 00:29:55 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O9n6J-0004AP-0M for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 May 2010 00:29:55 +0200 Original-Received: from localhost ([127.0.0.1]:43832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9n6H-0001wy-R1 for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 May 2010 18:29:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O9jlY-0003Pz-O3 for bug-gnu-emacs@gnu.org; Wed, 05 May 2010 14:56:16 -0400 Original-Received: from [140.186.70.92] (port=51495 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9jlW-0003OZ-PL for bug-gnu-emacs@gnu.org; Wed, 05 May 2010 14:56:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O9jlR-0008VW-45 for bug-gnu-emacs@gnu.org; Wed, 05 May 2010 14:56:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34047) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O9jlO-0008Ur-VW; Wed, 05 May 2010 14:56:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O9jLB-00078B-PJ; Wed, 05 May 2010 14:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Wed, 05 May 2010 18:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6100 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: patch Original-Received: via spool by 6100-submit@debbugs.gnu.org id=B6100.127308413527403 (code B ref 6100); Wed, 05 May 2010 18:29:01 +0000 Original-Received: (at 6100) by debbugs.gnu.org; 5 May 2010 18:28:55 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O9jL4-00077u-Ac for submit@debbugs.gnu.org; Wed, 05 May 2010 14:28:55 -0400 Original-Received: from smtp-out1.starman.ee ([85.253.0.3] helo=mx1.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O9jL2-00077n-PF for 6100@debbugs.gnu.org; Wed, 05 May 2010 14:28:53 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.29.84.cable.starman.ee [82.131.29.84]) by mx1.starman.ee (Postfix) with ESMTP id 0CE2C3F4133; Wed, 5 May 2010 21:28:44 +0300 (EEST) In-Reply-To: (Stefan Monnier's message of "Wed, 05 May 2010 09:16:25 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 05 May 2010 14:29:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36710 Archived-At: >> 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'. Do you mean cc-mode should use `beginning-of-defun-function'? -- Juri Linkov http://www.jurta.org/emacs/