From: Lennart Borgman <lennart.borgman@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: Backtrace and message buffer tell me different things
Date: Sat, 18 Dec 2010 23:00:47 +0100 [thread overview]
Message-ID: <AANLkTinMid-Gy1Oji9La1zx33Sv-6Y1KP9RhhU6yuBEF@mail.gmail.com> (raw)
In-Reply-To: <AANLkTimLgRDnBqgq5=648i+8VVA=CjynbcVzjSjh99KE@mail.gmail.com>
On Sat, Dec 18, 2010 at 8:58 PM, Lennart Borgman
<lennart.borgman@gmail.com> wrote:
> On Sat, Dec 18, 2010 at 5:04 PM, Stefan Monnier
> <monnier@iro.umontreal.ca> wrote:
>>> Making parse-sexp-lookup-properties local to *scratch* while let-bound!
>>
>> BTW, this is usually a source of problems, so you'll want to try and
>> avoid doing that.
>
> Yes, thanks, I am cleaning up such things when I have time.
Though looking at this particular case I do not know what to do. The
situation is this:
- Fontification variables are let-bound by mumamo in the function it
creates to do the fontification. It is done this way to override the
buffer local variables as fast as possible.
- This particular variable is not buffer local by default so it is set
with make-local-variable somewhere.
(Maybe you want to avoid make-variable-buffer-local to catch conflicts
like this?)
There are some (possible) troubles here:
1) I do not know where make-local-variable happens. A minor problem
perhaps but a bit irritating.
2) I am not sure if there is any real problem here. I hope (set
(make-local-variable 'parse-sexp-lookup-properties) WHATEVERITISSETTO)
is setting the let-bound variable and that the real buffer local
variable is left as it was. Is that what is happening?
My excuses for having forgotten the details here. Maybe the warning
message could give more information? Perhaps point to some part of the
manual that explains more? And maybe it could give a hint where the
problematic call to make-local-variable happens? (If that is
interesting.)
next prev parent reply other threads:[~2010-12-18 22:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-18 0:48 Backtrace and message buffer tell me different things Lennart Borgman
2010-12-18 8:38 ` Andreas Schwab
2010-12-18 9:25 ` Lennart Borgman
2010-12-18 9:32 ` Andreas Schwab
2010-12-18 10:51 ` Lennart Borgman
2010-12-18 16:04 ` Stefan Monnier
2010-12-18 19:58 ` Lennart Borgman
2010-12-18 22:00 ` Lennart Borgman [this message]
2010-12-19 13:51 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTinMid-Gy1Oji9La1zx33Sv-6Y1KP9RhhU6yuBEF@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.