[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: comment-line-break-function is not buffer-local
From: |
Stefan Monnier |
Subject: |
Re: comment-line-break-function is not buffer-local |
Date: |
Mon, 20 Jun 2005 08:45:40 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> Doc for comment-line-break-function says:
> (defvar comment-line-break-function 'comment-indent-new-line
> [...]
> Setting this variable automatically makes it local to the current buffer.")
> which is not true, and it seems it never was. (It was added at
> http://savannah.gnu.org/cgi-bin/viewcvs/emacs/emacs/lisp/simple.el.diff?r1=1.317&r2=1.318),
> with the comment but no `make-variable-buffer-local' or equivalent.
> What's preferable? Fixing the doc, or adding
> `make-variable-buffer-local'? (I'm partial to the first option.)
The doc is necessarily wrong, because nowadays the "automatically becomes
local when set" message is automatically added to the docstring when
applicable, so it should not be in the docstring, whether we add
a make-variable-buffer-local or not.
Stefan