bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#1013: marked as done (23.0.60; permanent-local not honored for word


From: Emacs bug Tracking System
Subject: bug#1013: marked as done (23.0.60; permanent-local not honored for word-wrap)
Date: Mon, 22 Sep 2008 21:30:09 -0700

Your message dated Mon, 22 Sep 2008 16:37:22 +0200
with message-id <48D7ADA2.4030605@gmail.com>
and subject line Re: bug#1013: 23.0.60; permanent-local not honored for 
word-wrap
has caused the Emacs bug report #1013,
regarding 23.0.60; permanent-local not honored for word-wrap
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact don@donarmstrong.com
immediately.)


-- 
1013: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=1013
Emacs Bug Tracking System
Contact don@donarmstrong.com with problems
--- Begin Message --- Subject: 23.0.60; permanent-local not honored for word-wrap Date: Sun, 21 Sep 2008 22:31:49 +0200 User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666
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'




--- End Message ---
--- Begin Message --- Subject: Re: bug#1013: 23.0.60; permanent-local not honored for word-wrap Date: Mon, 22 Sep 2008 16:37:22 +0200 User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666
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?


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]