all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Undocumented change in binding of buffer-local variables?
@ 2002-07-12  1:38 Luc Teirlinck
  2002-07-12 14:58 ` Kim F. Storm
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Luc Teirlinck @ 2002-07-12  1:38 UTC (permalink / raw)


There used to be (in Emacs20.7 and earlier) a problem with binding a
buffer-local variable with let and then exiting the let form with a
different current buffer.

From experimentation, it would seem that this problem is now totally
solved.  Is this correct?  If so, would it not be worth mentioning
this in the GNU Emacs NEWS?  (Maybe I overlooked something, but
conducting a search for "let" failed to find anything related.)

I found a bug in ielm which I can easily fix and for which I will send
a report and patch soon.  However, the best solution depends on
whether or not it is now safe to exit a let-form, binding buffer-local
variables, with a changed current buffer.

Sincerely,

Luc.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Undocumented change in binding of buffer-local variables?
  2002-07-12  1:38 Undocumented change in binding of buffer-local variables? Luc Teirlinck
@ 2002-07-12 14:58 ` Kim F. Storm
  2002-07-12 15:27 ` Stefan Monnier
  2002-07-12 17:37 ` Richard Stallman
  2 siblings, 0 replies; 4+ messages in thread
From: Kim F. Storm @ 2002-07-12 14:58 UTC (permalink / raw)
  Cc: emacs-devel

Luc Teirlinck <teirllm@dms.auburn.edu> writes:

> There used to be (in Emacs20.7 and earlier) a problem with binding a
> buffer-local variable with let and then exiting the let form with a
> different current buffer.
> 
> >From experimentation, it would seem that this problem is now totally
> solved.  Is this correct?  If so, would it not be worth mentioning
> this in the GNU Emacs NEWS?  (Maybe I overlooked something, but
> conducting a search for "let" failed to find anything related.)
> 
> I found a bug in ielm which I can easily fix and for which I will send
> a report and patch soon.  However, the best solution depends on
> whether or not it is now safe to exit a let-form, binding buffer-local
> variables, with a changed current buffer.
> 

Please read the updated information in the elisp manual
section "Introduction to Buffer-Local Variables".

The Warning and the example related to buffer-local variables
have been updated.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Undocumented change in binding of buffer-local variables?
  2002-07-12  1:38 Undocumented change in binding of buffer-local variables? Luc Teirlinck
  2002-07-12 14:58 ` Kim F. Storm
@ 2002-07-12 15:27 ` Stefan Monnier
  2002-07-12 17:37 ` Richard Stallman
  2 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2002-07-12 15:27 UTC (permalink / raw)
  Cc: emacs-devel

> I found a bug in ielm which I can easily fix and for which I will send
> a report and patch soon.  However, the best solution depends on
> whether or not it is now safe to exit a let-form, binding buffer-local
> variables, with a changed current buffer.

Yes, Gerd fixed this long-standing bug.  It's not in NEWS because
it's rather obscure and is considered as a bug-fix, I think.


	Stefan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Undocumented change in binding of buffer-local variables?
  2002-07-12  1:38 Undocumented change in binding of buffer-local variables? Luc Teirlinck
  2002-07-12 14:58 ` Kim F. Storm
  2002-07-12 15:27 ` Stefan Monnier
@ 2002-07-12 17:37 ` Richard Stallman
  2 siblings, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2002-07-12 17:37 UTC (permalink / raw)
  Cc: emacs-devel

    I found a bug in ielm which I can easily fix and for which I will send
    a report and patch soon.  However, the best solution depends on
    whether or not it is now safe to exit a let-form, binding buffer-local
    variables, with a changed current buffer.

I suggest you play it safe anyway.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-07-12 17:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-12  1:38 Undocumented change in binding of buffer-local variables? Luc Teirlinck
2002-07-12 14:58 ` Kim F. Storm
2002-07-12 15:27 ` Stefan Monnier
2002-07-12 17:37 ` Richard Stallman

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.