unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: comment-line-break-function is not buffer-local
Date: Mon, 20 Jun 2005 08:45:40 -0400	[thread overview]
Message-ID: <871x6xtczw.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <f7ccd24b05062003119bc8146@mail.gmail.com> (Juanma Barranquero's message of "Mon, 20 Jun 2005 12:11:40 +0200")

> 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

  reply	other threads:[~2005-06-20 12:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-20 10:11 comment-line-break-function is not buffer-local Juanma Barranquero
2005-06-20 12:45 ` Stefan Monnier [this message]
2005-06-20 12:56   ` Juanma Barranquero
2005-06-20 13:38     ` Stefan Monnier
2005-06-20 13:42       ` Juanma Barranquero

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871x6xtczw.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).