Subject: bug#1013 closed by "Lennart Borgman (gmail)" <[email-masked]> (Re: bug#1013: 23.0.60; permanent-local not honored for word-wrap)

From: [email-masked] (Emacs bug Tracking System)

This is an automatic notification regarding your bug report
which was filed against the emacs package:

#1013: 23.0.60; permanent-local not honored for word-wrap

It has been closed by "Lennart Borgman (gmail)" <[email-masked]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact "Lennart Borgman (gmail)" <[email-masked]> by
replying to this email.

-- 
1013: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1013
Emacs Bug Tracking System
Contact [email-masked] with problems
>From [email-masked] Mon Sep 22 21:23:38 2008
Date: Mon, 22 Sep 2008 16:37:22 +0200
From: "Lennart Borgman (gmail)" <[email-masked]>
To: Stefan Monnier <[email-masked]>
CC: [email-masked]
Subject: Re: bug#1013: 23.0.60; permanent-local not honored for word-wrap

Stefan Monnier wrote:
>>   (put 'word-wrap 'permanent-local t)
>>   (setq word-wrap t)
>>   (kill-all-local-variables)
> 
>> and then look at word-wrap. It is nil, but it should be t.
> 
> Why should it?  word-wrap is automatically made local, so the `setq' is
> really like (set (make-local-variable 'word-wrap) t), thus not changing
> the global value at which is you'll be looking in the end.

I just tested with truncate-lines. Same bug as with word-wrap.

Both `word-wrap' and `truncate-lines' are defined using
DEFVAR_PER_BUFFER. My guess is that there is a bug in DEFVAR_PER_BUFFER
or something related to that.

Stefan, could it be that you forgot about `permanent-local' when you
implemented this?

>From [email-masked] Sun Sep 21 13:32:03 2008
Date: Sun, 21 Sep 2008 22:31:49 +0200
From: "Lennart Borgman (gmail)" <[email-masked]>
To: [email-masked]
Subject: 23.0.60; permanent-local not honored for word-wrap

In a new buffer evaluate this:

  (put 'word-wrap 'permanent-local t)
  (setq word-wrap t)
  (kill-all-local-variables)

and then look at word-wrap. It is nil, but it should be t.

In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
 of 2008-09-18
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags
-Ic:/g/include -fno-crossjumping'