From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Liu Newsgroups: gmane.emacs.bugs Subject: bug#14303: 24.3; Bug in comment-search-backward Date: Fri, 17 May 2013 19:34:17 +0800 Message-ID: References: <5193B43B.8070007@easy-emacs.de> <519486DD.1040505@easy-emacs.de> <51961132.1040703@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1368790496 16864 80.91.229.3 (17 May 2013 11:34:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 May 2013 11:34:56 +0000 (UTC) Cc: 14303@debbugs.gnu.org To: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 17 13:34:52 2013 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 1UdIvz-0001Ho-OC for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 May 2013 13:34:51 +0200 Original-Received: from localhost ([::1]:33340 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdIvz-0005W0-Ax for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 May 2013 07:34:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdIvv-0005Vv-QX for bug-gnu-emacs@gnu.org; Fri, 17 May 2013 07:34:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UdIvv-0000P7-0i for bug-gnu-emacs@gnu.org; Fri, 17 May 2013 07:34:47 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60171) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdIvu-0000P3-Sn for bug-gnu-emacs@gnu.org; Fri, 17 May 2013 07:34:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UdIw9-000261-SX for bug-gnu-emacs@gnu.org; Fri, 17 May 2013 07:35:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Leo Liu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 May 2013 11:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14303 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14303-submit@debbugs.gnu.org id=B14303.13687904908019 (code B ref 14303); Fri, 17 May 2013 11:35:01 +0000 Original-Received: (at 14303) by debbugs.gnu.org; 17 May 2013 11:34:50 +0000 Original-Received: from localhost ([127.0.0.1]:48529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UdIvx-00025G-15 for submit@debbugs.gnu.org; Fri, 17 May 2013 07:34:49 -0400 Original-Received: from mail-pa0-f44.google.com ([209.85.220.44]:50104) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UdIvu-00024w-Sv for 14303@debbugs.gnu.org; Fri, 17 May 2013 07:34:47 -0400 Original-Received: by mail-pa0-f44.google.com with SMTP id jh10so3490855pab.17 for <14303@debbugs.gnu.org>; Fri, 17 May 2013 04:34:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:references:face:date:in-reply-to :message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=JrNDk9SzUem896QmlcOH1xMc+n6Sc5k9bwRT29jY37s=; b=gbmPF3PpVNdEf9AEWFCiGMP7+dQ4YDav4haRpKPiSBYuTeqvGicbb/4P6rbQLCPyPQ GtwcybfRDy2mc/lZYfaSiqj5O8K4apfzWABCmbcWpuRLblsL4dMrveEvsPGXKwG8khp9 0FVeZySmWEShEz6LnQ4qlKx/9QtmGLo8mXT/4jWCX+Vj8YNjyB+AV1hZzAk4nTzByEPr YmMqUedTo8b7pCJ94myepuZVyvvx6tD+dwsIQB4YlGgZWqg5KztSI41P+y5lktZyGpS8 5S8jjtMOE8mqpIsyrmLlVJ9jaYasJTpWwovygBdK//PDkaFRb3J81urEdd2u6LTAJweg YtQQ== X-Received: by 10.66.151.142 with SMTP id uq14mr49203926pab.50.1368790465092; Fri, 17 May 2013 04:34:25 -0700 (PDT) Original-Received: from Zeuss-MacBook.local (li511-224.members.linode.com. [66.175.216.224]) by mx.google.com with ESMTPSA id wp6sm10902927pbc.29.2013.05.17.04.34.22 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 17 May 2013 04:34:24 -0700 (PDT) Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoAgMAAADxkFD+AAAADFBMVEUvT09qWs3/pQD///+J kUVcAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMLOd3veKQA AACuSURBVBjTldE9CgIxEAXgB+lEyFUC2wo5ikdZ8DSypxhMY7H9VuIVwlqkGRgnm59VsHGafIQ3 CZlAtmKIRaHETgYa12lqvEsPYKf8wXHsPGfqPaUM0g9aJPKFXkmNQmSDqwzz4Fpgpz+6WAPY2z5o uPJJpu0uypcl4nyCibMLQ8lCiVjayLoQvw5LsVKQuHPRR958HZbOcVsKeepcLxpByjycGvnKmY+c MBvrtyjfe0vmuLvdq/kAAAAASUVORK5CYII= In-Reply-To: <51961132.1040703@easy-emacs.de> ("Andreas \=\?iso-8859-1\?Q\?R\?\= \=\?iso-8859-1\?Q\?\=F6hler\=22's\?\= message of "Fri, 17 May 2013 13:14:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (OS X 10.8.3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:74361 Archived-At: On 2013-05-17 19:14 +0800, Andreas R=F6hler wrote: > The succession of things doesn't look right yet. > > if (eq comment-use-syntax nil) > > re-search-backward based solution > > which is very seldom. Grep shows 4 cases. > > Otherwise syntax-ppss - , prog1 and nth 4 goto char nth 8 - or so. > Make sure wrong regexp isn't called then/no wrong matches. > > Andreas There is possible optimisation when 'end' is in a string. Other than that do you have a case where my solution will fail? Leo