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#16526: 24.3.50; scroll-conservatively & c-mode regression Date: Mon, 27 Jan 2014 19:16:06 -0500 Message-ID: References: <838uu4cq11.fsf@gnu.org> <52E3D131.2090705@gmx.at> <83r47wausm.fsf@gnu.org> <52E3EAC2.2040100@gmx.at> <83lhy4as2l.fsf@gnu.org> <52E4019C.5080905@gmx.at> <83k3dnc3rl.fsf@gnu.org> <83iot7c3bq.fsf@gnu.org> <52E4EF61.3050404@gmx.at> <831tzubqxw.fsf@gnu.org> <20140126204310.GA3937@acm.acm> <52E61704.6050807@gmx.at> <52E69695.5040703@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1390868244 30684 80.91.229.3 (28 Jan 2014 00:17:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Jan 2014 00:17:24 +0000 (UTC) Cc: Alan Mackenzie , 16526@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 28 01:17:30 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W7wMs-0002dh-4I for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Jan 2014 01:17:30 +0100 Original-Received: from localhost ([::1]:34179 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7wMr-0001Dq-L7 for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Jan 2014 19:17:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7wMg-00013r-H0 for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 19:17:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7wMZ-0001Q9-70 for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 19:17:18 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7wMR-0001PZ-BX; Mon, 27 Jan 2014 19:17:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W7wMQ-0001nb-JA; Mon, 27 Jan 2014 19:17:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Tue, 28 Jan 2014 00:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16526 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 16526-submit@debbugs.gnu.org id=B16526.13908681716850 (code B ref 16526); Tue, 28 Jan 2014 00:17:02 +0000 Original-Received: (at 16526) by debbugs.gnu.org; 28 Jan 2014 00:16:11 +0000 Original-Received: from localhost ([127.0.0.1]:38456 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7wLa-0001mP-UC for submit@debbugs.gnu.org; Mon, 27 Jan 2014 19:16:11 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:17727) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7wLX-0001mG-VW for 16526@debbugs.gnu.org; Mon, 27 Jan 2014 19:16:08 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFHO+IO1/2dsb2JhbABEuzWDWRdzgh4BAQQBViMQCzQSFBgNJIgeBsEtkQoDiGGJeZIggV6DFQ X-IPAS-Result: Av8EABK/CFHO+IO1/2dsb2JhbABEuzWDWRdzgh4BAQQBViMQCzQSFBgNJIgeBsEtkQoDiGGJeZIggV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="46209580" Original-Received: from 206-248-131-181.dsl.teksavvy.com (HELO pastel.home) ([206.248.131.181]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 27 Jan 2014 19:16:07 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id D0EB860EDE; Mon, 27 Jan 2014 19:16:06 -0500 (EST) In-Reply-To: <52E69695.5040703@gmx.at> (martin rudalics's message of "Mon, 27 Jan 2014 18:25:41 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:84143 Archived-At: >> Another option is to put a syntax-table property on those rare >> open-paren-in-column-0-inside-comment-or-string, so that >> open-paren-in-column-0-is-defun-start still works properly. > Wouldn't we then have to parse the entire buffer for strings and > comments in order to detect these parens? More or less this would > duplicate the effort of `syntax-ppss'. IIUC CC-mode does do such scanning to place syntax-table properties on various elements (it should do it from syntax-propertize-function, but for various reasons it does it at various other places instead, in piecemeal fashion). So it would just be adding one more element to find and mark. Stefan