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: martin rudalics
Subject: bug#1013: marked as done (23.0.60; permanent-local not honored for word-wrap)
Date: Mon, 22 Sep 2008 17:59:22 +0200
User-agent: Thunderbird 2.0.0.16 (Windows/20080708)

>>   (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.

Presumably Lennart wants to preserve the previous value when he changes
the major mode.  IIUC it is reset because buffer_permanent_local_flags
is 0 for word_wrap.  But I'm not sure whether that's TRT and I didn't
find any documentation for this behavior either.

martin






reply via email to

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