From: David Kastrup <dak@gnu.org>
Cc: emacs-devel@gnu.org, "Kim F. Storm" <storm@cua.dk>
Subject: Re: jit-lock simplification?
Date: Wed, 13 Sep 2006 15:31:21 +0200 [thread overview]
Message-ID: <85u03bj3km.fsf@lola.goethe.zz> (raw)
In-Reply-To: <jwvac539ax9.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed\, 13 Sep 2006 09\:03\:31 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> I was debugging a timer problem, and noticed some very odd lambda
>> forms in the timer-list. It turns out to be the lambda generated by
>> the jit-lock code below.
>
>> Wouldn't it work just as well with the following patch?
>
> I see no reason why it shouldn't work as well.
> I just find it less elegant ;-)
Disagree. If `run-with-timer' has the possibility of passing values,
that should be preferred over `lexical-let'. Whether one wants to use
a named or an anonymous lambda function is, in contrast, more a matter
of taste.
If this were Scheme, using a closure would more or less be natural,
but in Emacs Lisp, this is just ugly.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2006-09-13 13:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-13 12:25 jit-lock simplification? Kim F. Storm
2006-09-13 13:03 ` Stefan Monnier
2006-09-13 13:31 ` David Kastrup [this message]
2006-09-13 14:43 ` Stefan Monnier
2006-09-13 13:49 ` Kim F. Storm
2006-09-13 19:24 ` Richard Stallman
2006-09-14 11:08 ` Kim F. Storm
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=85u03bj3km.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=storm@cua.dk \
/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).