all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: emacs-devel@gnu.org
Subject: Re: Suggestion for autorevert.el
Date: Wed, 24 Mar 2004 22:06:52 -0600 (CST)	[thread overview]
Message-ID: <200403250406.i2P46q711946@raven.dms.auburn.edu> (raw)
In-Reply-To: <87zna6l1kn.fsf@offby1.atm01.sea.blarg.net> (message from Eric Hanchrow on Wed, 24 Mar 2004 07:14:16 -0800)

Eric Hanchrow wrote:

   You'll note I have a question: the new variable auto-revert-tail
   seems like it ought to be buffer-local, but it's not clear to me
   how to make it so if I use `defcustom'.  I was tempted to use
   `defvar' instead, since a few other variables in autorevert.el are
   themselves defined with `defvar' ... but I'm not sure why.

Your variable auto-revert-tail, in one form or another, seems to make
sense.  (`t' would definitely be the wrong default for certain
non-file buffers, such as dired or the Buffer Menu.)  If you use
defcustom then setting the value with Custom will set the global
default value.  Since the behavior can be quite disruptive if it is
non-intentional, also for file buffers, I do not believe that using
this as a global default would be useful to many users.

I personally would use defvar and make-variable-buffer-local.  As
such, I believe that it can be useful.  But maybe there are better
solutions than that.  Variations are possible.  

Maybe if point _already_ is at the end of the buffer, then it stays
there.  That would seem to be more suitable for a global default and
hence a defcustom.  That one would not seem to get too disruptive too
often.

Sincerely,

Luc.

  reply	other threads:[~2004-03-25  4:06 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-24 15:14 Suggestion for autorevert.el Eric Hanchrow
2004-03-25  4:06 ` Luc Teirlinck [this message]
2004-03-25  7:49 ` Richard Stallman
2004-04-01  3:30   ` Luc Teirlinck
2004-04-01  8:00     ` Juanma Barranquero
2004-04-01 17:34     ` Richard Stallman
2004-04-02  4:09       ` Luc Teirlinck
2004-04-02  4:28         ` Luc Teirlinck
2004-04-02  5:02         ` Stefan Monnier
2004-04-02 16:02           ` Luc Teirlinck
2004-04-02 23:46             ` Luc Teirlinck
     [not found]   ` <87vfktj86f.fsf@offby1.atm01.sea.blarg.net>
2004-04-02  0:11     ` Luc Teirlinck
2004-04-03  1:30       ` Richard Stallman

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

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

  git send-email \
    --in-reply-to=200403250406.i2P46q711946@raven.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    --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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.