GNU bug report logs - #1013
23.0.60; permanent-local not honored for word-wrap

Previous Next

Package: emacs;

Reported by: "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com>

Date: Sun, 21 Sep 2008 20:40:04 UTC

Severity: normal

Done: "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: martin rudalics <rudalics <at> gmx.at>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 1013 <at> debbugs.gnu.org,
        "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com>
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
>>   (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




This bug report was last modified 16 years and 246 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.