all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Drew Adams <drew.adams@oracle.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Reverting but keeping undo
Date: Wed, 29 May 2013 19:21:37 +0400	[thread overview]
Message-ID: <51A61D01.8070904@yandex.ru> (raw)
In-Reply-To: <93506dfd-1e77-4dec-acad-82872f9bc428@default>

On 29.05.2013 17:55, Drew Adams wrote:
>>>> I think it's a great change.
>>>>
>>> Yes, why?  Any good reason?
>
> You misquoted.  My "why" there was about the lack of discussion prior to this change - why no discussion?

Who were you agreeing with, there?

> DG> > I think it's a great change.
> da> > > And why no discussion beforehand?
> da> Yes, why?  Any good reason?

Because discussing every single thing takes more time and effort, and 
most people have a limited amount of them. It's not like you're 
sponsoring the development, right?

And, like it often happens, people with a lot of opinions are often the 
least qualified to make a decision. See "bikeshedding".

> And it is not a discusson on emacs-devel by Emacs developers.

Again, are you an Emacs developer? You aren't. What do you care?

Emacs committers are subscribed to emacs-diff or emacs-bugs, and if some 
aren't, they should. Anyone disagreeing can voice their opinion. 
Preferably without speaking for other people.

> Instead of willy nilly changing the basic function `revert-buffer', this feature of extra protection against user mistakes (including mistakenly confirming reversion!) should be implemented by creating a separate command or user variable (perhaps option) - giving users the choice to use it or not.  If `auto-revert-mode' is also implicated then it can be made sensitive to the same (or an additional) user choice.

The "extra protection" feature means that the new behavior makes sense 
as default.

So, a hypothetical new variable would revert the behavior to how it were 
before, but setting a new variable isn't too different from advising 
`revert-buffer', from a user's perspective.

>> Obviously not. The opened bug is a couple of years old now.
>
> There are thousands of bugs that have been open for a couple of years or more.  That means nothing.

That means someone has spent some time thinking, and then made a decision.

>> We're having this discussion now, and instead of giving actual reasons
>> you're speaking of hypothetical users.
>
> I gave reasons.  1. This is what reverting means, what reverting does (should do, always has done).

"foo has always done that" is not a reason. Here's an example of a 
plausible reason "Mary has a little lamb, she wants to shave it, but 
cannot do it unless `revert-buffer' clears the buffer undo list." Here's 
another: "foo has always done that, and the new behavior breaks packages 
X, Y and Z that depend on it".

"reverting means" whatever the user manual at any given point says it means.

> 2. `revert-buffer' is not used only interactively; it is a basic function used in lots of code.

Another reason to make the change. Basic functions shouldn't do too many 
things at once. If a consumer wants to clear the undo list, they can do 
that separately.

>> But the way you often assume the you know the userbase better than
>> everyone else is tiresome, to be honest.
>
> I'm not the one assuming anything about the user base.  I'm not the one claiming competence deciding what is good for everyone.   I'm not imposing any change on the existing behavior.  My only assumption about the user base is that users deserve control, choice.

You're assuming that the old behavior is important enough for a decent 
amount of users to justify the expense of discussing it, adding a 
separate command, new variable, whatever, documenting it, and then 
maintaining these additions over the years. That's not a safe assumption.

And the one user with special needs who does care about it can change 
the behavior with `defadvice'.



  reply	other threads:[~2013-05-29 15:21 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-15 10:38 Reverting but keeping undo Óscar Fuentes
2013-05-16  5:29 ` W. Greenhouse
2013-05-16 15:10   ` Óscar Fuentes
2013-05-29  1:52 ` Stefan Monnier
2013-05-29  3:09   ` Drew Adams
2013-05-29  3:27     ` Dmitry Gutov
2013-05-29  5:13       ` Drew Adams
2013-05-29 12:26         ` Dmitry Gutov
2013-05-29 13:55           ` Drew Adams
2013-05-29 15:21             ` Dmitry Gutov [this message]
2013-05-29 16:33               ` Drew Adams
2013-05-29 17:51                 ` Dmitry Gutov
     [not found]               ` <mailman.605.1369845207.22516.help-gnu-emacs@gnu.org>
2013-05-29 18:42                 ` Dan Espen
2013-05-29 13:48         ` Stefan Monnier
     [not found]       ` <mailman.562.1369804408.22516.help-gnu-emacs@gnu.org>
2013-05-29 13:25         ` Dan Espen
2013-05-29 16:26           ` Drew Adams
2013-05-30 18:48           ` Michael Heerdegen
2013-05-30 18:41   ` Michael Heerdegen
2013-05-30 19:19     ` Óscar Fuentes
2013-05-30 21:26     ` Stefan Monnier
2013-05-30 22:05       ` Michael Heerdegen
     [not found]       ` <mailman.728.1369951538.22516.help-gnu-emacs@gnu.org>
2013-05-30 23:59         ` Dan Espen
2013-05-31  0:58           ` Stefan Monnier
     [not found]           ` <mailman.738.1369961954.22516.help-gnu-emacs@gnu.org>
2013-05-31  1:21             ` Dan Espen
2013-05-31  2:28               ` Drew Adams
2013-05-31 16:05           ` Michael Heerdegen
2013-05-31 18:29             ` Óscar Fuentes
     [not found]           ` <mailman.767.1370016367.22516.help-gnu-emacs@gnu.org>
2013-05-31 17:22             ` Dan Espen
2013-05-31 18:08               ` Barry Margolin
     [not found]   ` <mailman.699.1369939338.22516.help-gnu-emacs@gnu.org>
2013-05-30 18:45     ` Barry Margolin
  -- strict thread matches above, loose matches on Subject: below --
2013-05-31 16:49 Barry OReilly

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=51A61D01.8070904@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=drew.adams@oracle.com \
    --cc=help-gnu-emacs@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.