GNU bug report logs -
#44647
27.1.50; `bibtex-contline-indentation' doesn't work as file local variable
Previous Next
Reported by: Teemu Likonen <tlikonen <at> iki.fi>
Date: Sat, 14 Nov 2020 21:19:02 UTC
Severity: minor
Merged with 44618
Found in versions 26.3, 27.1.50
Done: "Roland Winkler" <winkler <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On Mon Nov 16 2020 Teemu Likonen wrote:
> > Your patch implies that the buffer-local value of fill-prefix is not
> > what it should be (say, if any other command wants to use it).
>
> Yes. Bibtex-mode's filling uses fill-prefix and that variable must
> be set to correct value before filling. The correct moment may not
> be when a bibtex-mode buffer is initialized with buffer-local
> values.
Defcustom supports the keyword :set that can handle the case when a
user variable such as bibtex-contline-indentation is changed which
implies updating another variable such as fill-prefix. However, I
assume that this is a rather rare case in the present context.
On the other hand, it is a design principle of emacs that variables
such as fill-prefix can be and are used by different commands. So
they should have their proper value instead of only let-binding them
on the fly. Such let-bindings are used only when it is the intent
to use different values than the proper buffer-local values.
This bug report was last modified 4 years and 174 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.