From: Henrik Enberg <henrik@enberg.org>
Cc: stl@isogmbh.de, emacs-devel@gnu.org
Subject: Re: backward-up-list
Date: Thu, 18 Jul 2002 20:08:26 +0200 [thread overview]
Message-ID: <87d6tkvrhh.fsf@enberg.org> (raw)
In-Reply-To: <200207181455.g6IEtMD25024@aztec.santafe.edu> (Richard Stallman's message of "Thu, 18 Jul 2002 08:55:22 -0600 (MDT)")
Richard Stallman <rms@gnu.org> 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
next prev parent reply other threads:[~2002-07-18 18:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-17 13:45 backward-up-list Stephan Stahl
2002-07-17 13:48 ` backward-up-list Stefan Monnier
2002-07-18 14:55 ` backward-up-list Richard Stallman
2002-07-18 18:08 ` Henrik Enberg [this message]
2002-07-18 18:56 ` backward-up-list Stefan Monnier
2002-07-19 16:54 ` backward-up-list Richard Stallman
2002-07-19 17:52 ` backward-up-list Stefan Monnier
2002-07-20 0:35 ` backward-up-list Richard Stallman
2002-08-09 8:00 ` backward-up-list Stefan Monnier
2002-08-09 8:38 ` backward-up-list stl
2002-08-10 17:16 ` backward-up-list Richard Stallman
2002-07-20 22:02 ` backward-up-list Henrik Enberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d6tkvrhh.fsf@enberg.org \
--to=henrik@enberg.org \
--cc=emacs-devel@gnu.org \
--cc=stl@isogmbh.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).