From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: parse-partial-sexp confused by temp? Date: Wed, 29 Apr 2015 17:39:24 +0200 Message-ID: <5540FB2C.2070505@easy-emacs.de> References: <554090E2.9020208@easy-emacs.de> 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 1430322062 19181 80.91.229.3 (29 Apr 2015 15:41:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Apr 2015 15:41:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 29 17:40:54 2015 Return-path: Envelope-to: geh-help-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 1YnU6W-0002og-Tc for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Apr 2015 17:40:53 +0200 Original-Received: from localhost ([::1]:39716 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnU6W-0006Tu-CY for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Apr 2015 11:40:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnU5M-0005kz-SC for help-gnu-emacs@gnu.org; Wed, 29 Apr 2015 11:39:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnU5J-0002jg-96 for help-gnu-emacs@gnu.org; Wed, 29 Apr 2015 11:39:40 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.187]:52129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnU5I-0002jU-V8 for help-gnu-emacs@gnu.org; Wed, 29 Apr 2015 11:39:37 -0400 Original-Received: from [192.168.178.31] ([77.12.15.232]) by mrelayeu.kundenserver.de (mreue003) with ESMTPSA (Nemesis) id 0LeQDB-1ZdGIM3873-00qEFu for ; Wed, 29 Apr 2015 17:39:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: X-Provags-ID: V03:K0:Aw/DZDY7MHmWE0KyJWT/lCbExFAdf0+c0GARKHZ0RPWQsJwaEal +rihq+/uhT5rDdqJqGPWSUZmkZz32XyAKrvVDZZFk7j1AEQEw5XrQ68CpylQ/1wuyCDFdhP 0vjSFYpkprG4LWUO6hkj8jezkvQop4zYTp7TYg0XMQHTL80EiSqvOV9lBPga/UUlm78nwGa fZk2Z/CUHkeETDGDXNZ6g== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.126.187 X-Mailman-Approved-At: Wed, 29 Apr 2015 11:40:17 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104074 Archived-At: Am 29.04.2015 um 15:38 schrieb Stefan Monnier: >> Any ideas? > First things first: replace (parse-partial-sexp (point-min) (point)) > with (syntax-ppss) which will do the same but more efficiently (caches > the intermediate results and shares this cache with other users such as > font-lock), and will know to run `syntax-propertize' if the major mode > said so. > > > Stefan > > Thanks responding. However, this would not explain the wrong result saying inside a string. Came across an error in other context, where it turned out syntax-ppss did read only from beginning of line, which was wrong. So abondoned it, using (parse-partial-sexp since. Andreas