From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#6100: c-beginning-of-defun doesn't push mark Date: Tue, 11 May 2010 15:22:10 -0400 Message-ID: References: <87mxwf942y.fsf@mail.jurta.org> <87k4rimcdr.fsf@mail.jurta.org> <20100506105433.GA1366@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1273606495 17507 80.91.229.12 (11 May 2010 19:34:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 11 May 2010 19:34:55 +0000 (UTC) Cc: 6100@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 11 21:34:53 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 1OBvED-0005k6-Ae for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 May 2010 21:34:53 +0200 Original-Received: from localhost ([127.0.0.1]:60029 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBv6H-0005cu-5L for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 May 2010 15:26:41 -0400 Original-Received: from [140.186.70.92] (port=52934 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBv6B-0005cc-ML for bug-gnu-emacs@gnu.org; Tue, 11 May 2010 15:26:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OBv6A-0008Fh-Cr for bug-gnu-emacs@gnu.org; Tue, 11 May 2010 15:26:35 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40237) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBv64-0008FG-82; Tue, 11 May 2010 15:26:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OBv2k-0005BL-Hw; Tue, 11 May 2010 15:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier 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: Tue, 11 May 2010 19:23:02 +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.127360575719912 (code B ref 6100); Tue, 11 May 2010 19:23:02 +0000 Original-Received: (at 6100) by debbugs.gnu.org; 11 May 2010 19:22:37 +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 1OBv2L-0005B7-D5 for submit@debbugs.gnu.org; Tue, 11 May 2010 15:22:37 -0400 Original-Received: from tomts40.bellnexxia.net ([209.226.175.97] helo=tomts40-srv.bellnexxia.net) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBv2J-0005B0-3l for 6100@debbugs.gnu.org; Tue, 11 May 2010 15:22:36 -0400 Original-Received: from toip5.srvr.bell.ca ([209.226.175.88]) by tomts40-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20100511192217.MCTD1888.tomts40-srv.bellnexxia.net@toip5.srvr.bell.ca> for <6100@debbugs.gnu.org>; Tue, 11 May 2010 15:22:17 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAB5F6UtKDMwD/2dsb2JhbACeJnK9BIUQBA Original-Received: from bas1-montreal42-1242352643.dsl.bell.ca (HELO ceviche.home) ([74.12.204.3]) by toip5.srvr.bell.ca with ESMTP; 11 May 2010 15:37:15 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id B3F6966773; Tue, 11 May 2010 15:22:10 -0400 (EDT) In-Reply-To: <20100506105433.GA1366@muc.de> (Alan Mackenzie's message of "Thu, 6 May 2010 10:54:33 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 11 May 2010 15:23:02 -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:36881 Archived-At: > The speed of c-{beginning,end}-of-defun have presented problems from time > to time. Quadrupling CC Mode's end-of-defun's runtime doesn't seem a > good idea. I want to keep the handling of c-{beginning,end}-of-defun > symmetrical for ease of maintenance. IIUC the speed of those operations has been a problem when called many times within a single command (i.e. the cumulative time became a problem), so it shouldn't be a problem for interactive use where doing it 4 times rather than 1 shouldn't be noticeable. IOW, the problem was algorithmic, but running the same code 4 times makes no difference algorithmically. > I would favour your patch to these defuns which pushes the marks. It's your code, so it's your choice. Stefan