From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#16526: 24.3.50; scroll-conservatively & c-mode regression Date: Mon, 27 Jan 2014 18:25:41 +0100 Message-ID: <52E69695.5040703__49941.952530253$1390843596$gmane$org@gmx.at> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1390843583 25703 80.91.229.3 (27 Jan 2014 17:26:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jan 2014 17:26:23 +0000 (UTC) Cc: Alan Mackenzie , 16526@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 27 18:26:29 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 1W7px6-0003Cs-Dz for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Jan 2014 18:26:28 +0100 Original-Received: from localhost ([::1]:60892 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7px6-0003QU-0c for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Jan 2014 12:26:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7pwv-0003Pj-NH for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 12:26:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7pwo-00036Z-DW for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 12:26:17 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7pwg-00033k-CA; Mon, 27 Jan 2014 12:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W7pwf-00071Y-M5; Mon, 27 Jan 2014 12:26:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 27 Jan 2014 17:26:01 +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.139084355526989 (code B ref 16526); Mon, 27 Jan 2014 17:26:01 +0000 Original-Received: (at 16526) by debbugs.gnu.org; 27 Jan 2014 17:25:55 +0000 Original-Received: from localhost ([127.0.0.1]:38336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7pwY-00071E-4N for submit@debbugs.gnu.org; Mon, 27 Jan 2014 12:25:54 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:58933) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7pwU-000713-P9 for 16526@debbugs.gnu.org; Mon, 27 Jan 2014 12:25:51 -0500 Original-Received: from [62.47.49.194] ([62.47.49.194]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0Lg5kl-1VW3Db35Vz-00ph2i for <16526@debbugs.gnu.org>; Mon, 27 Jan 2014 18:25:49 +0100 In-Reply-To: X-Provags-ID: V03:K0:Gcu4zQrdmmJzjGbkfncj7B9J3rzVy7/nIgPHMqU6y0HzoRw3q5G HonBWvtAmu0c8oOugjRaRZY/Olm8X9S4gDTvSkgpP6Kmo+z40F4HsOvD4lta+/lEBJduNqE 3WCDUvaZL1UFdDVJfKryDx6WRRkKPE+VcbynHUKEnjBWnWcTGrKzbLpyorHJIEU0vn+gavX gpPTNuBeNvevwwl3sYvcQ== 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:84128 Archived-At: > In general, that is true, but back_comment tries to be more clever, e.g, > when it scans backward over code like > > /* toto */ > blabla > /* titi */ > > it should not need to scan further than the end of line 1, since the > "*/" there will tell it that the "/*" on line 3 can't be within > another comment and is hence the one-true comment starter that matches > the "*/" on line 3. I recall now. I tend to forget that C comments cannot be nested. > 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'. martin