From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Henrik Enberg Newsgroups: gmane.emacs.devel Subject: Re: backward-up-list Date: Thu, 18 Jul 2002 20:08:26 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <87d6tkvrhh.fsf@enberg.org> References: <3D3574F6.7030405@isogmbh.de> <200207181455.g6IEtMD25024@aztec.santafe.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1027016140 21625 127.0.0.1 (18 Jul 2002 18:15:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 18 Jul 2002 18:15:40 +0000 (UTC) Cc: stl@isogmbh.de, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17VFoR-0005cg-00 for ; Thu, 18 Jul 2002 20:15:39 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17VG0R-00048X-00 for ; Thu, 18 Jul 2002 20:28:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17VFoB-0001BL-00; Thu, 18 Jul 2002 14:15:23 -0400 Original-Received: from mailf.telia.com ([194.22.194.25]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17VFnW-00018N-00; Thu, 18 Jul 2002 14:14:42 -0400 Original-Received: from d1o1112.telia.com (d1o1112.telia.com [213.67.192.241]) by mailf.telia.com (8.12.5/8.12.5) with ESMTP id g6IIEeY3001809; Thu, 18 Jul 2002 20:14:40 +0200 (CEST) X-Original-Recipient: rms@gnu.org Original-Received: from rocksteady (h205n2fls32o1112.telia.com [213.65.65.205]) by d1o1112.telia.com (8.10.2/8.10.1) with ESMTP id g6IIEeg17035; Thu, 18 Jul 2002 20:14:40 +0200 (CEST) Original-Received: from henrik by rocksteady with local (Exim 3.35 #1 (Debian)) id 17VFnS-0008Uc-00; Thu, 18 Jul 2002 20:14:38 +0200 Original-To: rms@gnu.org In-Reply-To: <200207181455.g6IEtMD25024@aztec.santafe.edu> (Richard Stallman's message of "Thu, 18 Jul 2002 08:55:22 -0600 (MDT)") User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.3.50 (i686-pc-linux-gnu) Original-Lines: 20 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:5868 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5868 Richard Stallman writes: > Nowadays it may be possible to do better; there may be an efficient > way to tell whether point is in a list. If so, it would be a good > thing to implement something better. > > Stefan, can we determine this efficiently using your newer syntax > parsing features? I have been using this little function built atop Stefans syntax package for turning on flyspell mode in comment and strings. It doesn't seem to cause any noticable slowdown. (defun inside-comment-or-string-p () "Return non-nil if `point' is inside a comment or string." (let ((state (syntax-ppss (point)))) (or (nth 3 state) (nth 4 state)))) -- Booting... /vmemacs.el