* More convenient default rollback for users
@ 2016-03-29 15:44 Lars Magne Ingebrigtsen
2016-03-29 16:04 ` Eli Zaretskii
` (3 more replies)
0 siblings, 4 replies; 11+ messages in thread
From: Lars Magne Ingebrigtsen @ 2016-03-29 15:44 UTC (permalink / raw)
To: emacs-devel
When we introduce behavioural changes in Emacs, we often include a way
to get back to the old behaviour, and we document this in NEWS etc.
But wouldn't it be nice if we had this in a more convenient,
cut-and-pastable format?
Imagine you're using Emacs 26 for the first time. Suddenly you notice
that when you hit the `hyper z' key, Emacs doesn't florbnoze as it used
to, but forblizes instead! You're furious! So you hit the `C-h R' (for
rollback) keystroke, and you get a buffer that looks like:
-------------
;; To roll back changes between Emacs 26 and Emacs 25.1:
;; If you want the `hyper z' key still to florbnoze instead of
;; forblizing:
(setq hyper-z-mode 'florbnoze)
... more setqs here...
;; To roll back changes between Emacs 25.1 and Emacs 24.3:
...
-------------
And then the anger dissipates. No need to read documentation or
anything. Just get back the old behaviour you enjoyed.
(And this would also mean that we could introduce new behaviours more
often, because rollback would be so trivial for the users.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: More convenient default rollback for users
2016-03-29 15:44 More convenient default rollback for users Lars Magne Ingebrigtsen
@ 2016-03-29 16:04 ` Eli Zaretskii
2016-03-29 16:31 ` Lars Magne Ingebrigtsen
2016-03-29 16:56 ` Stefan Monnier
` (2 subsequent siblings)
3 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2016-03-29 16:04 UTC (permalink / raw)
To: Lars Magne Ingebrigtsen; +Cc: emacs-devel
> From: Lars Magne Ingebrigtsen <larsi@gnus.org>
> Date: Tue, 29 Mar 2016 17:44:15 +0200
>
> When we introduce behavioural changes in Emacs, we often include a way
> to get back to the old behaviour, and we document this in NEWS etc.
>
> But wouldn't it be nice if we had this in a more convenient,
> cut-and-pastable format?
>
> Imagine you're using Emacs 26 for the first time. Suddenly you notice
> that when you hit the `hyper z' key, Emacs doesn't florbnoze as it used
> to, but forblizes instead! You're furious! So you hit the `C-h R' (for
> rollback) keystroke, and you get a buffer that looks like:
>
> -------------
> ;; To roll back changes between Emacs 26 and Emacs 25.1:
>
> ;; If you want the `hyper z' key still to florbnoze instead of
> ;; forblizing:
> (setq hyper-z-mode 'florbnoze)
>
> ... more setqs here...
>
> ;; To roll back changes between Emacs 25.1 and Emacs 24.3:
>
> ...
> -------------
How do you do that with defcustoms?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: More convenient default rollback for users
2016-03-29 16:04 ` Eli Zaretskii
@ 2016-03-29 16:31 ` Lars Magne Ingebrigtsen
2016-03-29 16:51 ` Eli Zaretskii
0 siblings, 1 reply; 11+ messages in thread
From: Lars Magne Ingebrigtsen @ 2016-03-29 16:31 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
Eli Zaretskii <eliz@gnu.org> writes:
> How do you do that with defcustoms?
I don't know. Does defcustom offer something like that?
In any case, having the user go through the custom interface is way too
much work.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: More convenient default rollback for users
2016-03-29 16:31 ` Lars Magne Ingebrigtsen
@ 2016-03-29 16:51 ` Eli Zaretskii
2016-03-30 15:45 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2016-03-29 16:51 UTC (permalink / raw)
To: Lars Magne Ingebrigtsen; +Cc: emacs-devel
> From: Lars Magne Ingebrigtsen <larsi@gnus.org>
> Cc: emacs-devel@gnu.org
> Date: Tue, 29 Mar 2016 18:31:06 +0200
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > How do you do that with defcustoms?
>
> I don't know. Does defcustom offer something like that?
>
> In any case, having the user go through the custom interface is way too
> much work.
The problem is that some options are supposed to be changed via
defcustoms, because those invoke a special function for the new value
to take effect. In NEWS, we usually say "customize the option
so-and-so to such-and-such value", but how do you do that in
copy/paste-able way? invoke the function by hand?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: More convenient default rollback for users
2016-03-29 15:44 More convenient default rollback for users Lars Magne Ingebrigtsen
2016-03-29 16:04 ` Eli Zaretskii
@ 2016-03-29 16:56 ` Stefan Monnier
2016-03-30 12:09 ` Richard Stallman
2016-03-31 6:09 ` zhanghj
3 siblings, 0 replies; 11+ messages in thread
From: Stefan Monnier @ 2016-03-29 16:56 UTC (permalink / raw)
To: emacs-devel
> But wouldn't it be nice if we had this in a more convenient,
> cut-and-pastable format?
Sounds good.
> (And this would also mean that we could introduce new behaviours more
> often, because rollback would be so trivial for the users.)
Haha!
Stefan
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: More convenient default rollback for users
2016-03-29 15:44 More convenient default rollback for users Lars Magne Ingebrigtsen
2016-03-29 16:04 ` Eli Zaretskii
2016-03-29 16:56 ` Stefan Monnier
@ 2016-03-30 12:09 ` Richard Stallman
2016-04-03 23:18 ` John Wiegley
2016-03-31 6:09 ` zhanghj
3 siblings, 1 reply; 11+ messages in thread
From: Richard Stallman @ 2016-03-30 12:09 UTC (permalink / raw)
To: Lars Magne Ingebrigtsen; +Cc: emacs-devel
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> Imagine you're using Emacs 26 for the first time. Suddenly you notice
> that when you hit the `hyper z' key, Emacs doesn't florbnoze as it used
> to, but forblizes instead! You're furious! So you hit the `C-h R' (for
> rollback) keystroke, and you get a buffer that looks like:
This sounds nice. It goes with the Antinews feature we
have always had in documentation.
--
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: More convenient default rollback for users
2016-03-29 16:51 ` Eli Zaretskii
@ 2016-03-30 15:45 ` Lars Magne Ingebrigtsen
2016-03-30 17:45 ` Clément Pit--Claudel
0 siblings, 1 reply; 11+ messages in thread
From: Lars Magne Ingebrigtsen @ 2016-03-30 15:45 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
Eli Zaretskii <eliz@gnu.org> writes:
> The problem is that some options are supposed to be changed via
> defcustoms, because those invoke a special function for the new value
> to take effect. In NEWS, we usually say "customize the option
> so-and-so to such-and-such value", but how do you do that in
> copy/paste-able way? invoke the function by hand?
Perhaps there should be a `custom-setq' function that the user could
eval? Or perhaps this rollback buffer could be in a mode where just
hitting RET on a form would execute the proper custom incantations...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: More convenient default rollback for users
2016-03-30 15:45 ` Lars Magne Ingebrigtsen
@ 2016-03-30 17:45 ` Clément Pit--Claudel
2016-03-31 12:41 ` Stefan Monnier
0 siblings, 1 reply; 11+ messages in thread
From: Clément Pit--Claudel @ 2016-03-30 17:45 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1.1: Type: text/plain, Size: 906 bytes --]
On 03/30/2016 05:45 PM, Lars Magne Ingebrigtsen wrote:
> Eli Zaretskii <eliz@gnu.org> writes:
>> The problem is that some options are supposed to be changed via
>> defcustoms, because those invoke a special function for the new value
>> to take effect. In NEWS, we usually say "customize the option
>> so-and-so to such-and-such value", but how do you do that in
>> copy/paste-able way? invoke the function by hand?
>
> Perhaps there should be a `custom-setq' function that the user could
> eval? Or perhaps this rollback buffer could be in a mode where just
> hitting RET on a form would execute the proper custom incantations...
Is that what customize-set-variable does? If not, then it would be very very very nice; most Emacs configs that I see online are nicely structured and split into a number of files, but they use setq even for variables that have custom setters.
Clément.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: More convenient default rollback for users
2016-03-29 15:44 More convenient default rollback for users Lars Magne Ingebrigtsen
` (2 preceding siblings ...)
2016-03-30 12:09 ` Richard Stallman
@ 2016-03-31 6:09 ` zhanghj
3 siblings, 0 replies; 11+ messages in thread
From: zhanghj @ 2016-03-31 6:09 UTC (permalink / raw)
To: Lars Magne Ingebrigtsen; +Cc: netjune, emacs-devel
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> When we introduce behavioural changes in Emacs, we often include a way
> to get back to the old behaviour, and we document this in NEWS etc.
>
> But wouldn't it be nice if we had this in a more convenient,
> cut-and-pastable format?
>
> Imagine you're using Emacs 26 for the first time. Suddenly you notice
> that when you hit the `hyper z' key, Emacs doesn't florbnoze as it used
> to, but forblizes instead! You're furious! So you hit the `C-h R' (for
> rollback) keystroke, and you get a buffer that looks like:
>
> -------------
> ;; To roll back changes between Emacs 26 and Emacs 25.1:
>
> ;; If you want the `hyper z' key still to florbnoze instead of
> ;; forblizing:
> (setq hyper-z-mode 'florbnoze)
>
> ... more setqs here...
>
> ;; To roll back changes between Emacs 25.1 and Emacs 24.3:
>
> ...
> -------------
>
> And then the anger dissipates. No need to read documentation or
> anything. Just get back the old behaviour you enjoyed.
>
> (And this would also mean that we could introduce new behaviours more
> often, because rollback would be so trivial for the users.)
I think a UI page like "chrome://flags/" in google chrome is better for
this function. In this page, we can show all compitable options for user
to choose.
For expert user, we can provide a file like emacs-24-compitable.el (with
emacs 25 distribution). After loading the file, all behaviors are the
same as emacs 24. This can also be used by packages.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: More convenient default rollback for users
2016-03-30 17:45 ` Clément Pit--Claudel
@ 2016-03-31 12:41 ` Stefan Monnier
0 siblings, 0 replies; 11+ messages in thread
From: Stefan Monnier @ 2016-03-31 12:41 UTC (permalink / raw)
To: emacs-devel
> Is that what customize-set-variable does?
I think so.
Stefan
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: More convenient default rollback for users
2016-03-30 12:09 ` Richard Stallman
@ 2016-04-03 23:18 ` John Wiegley
0 siblings, 0 replies; 11+ messages in thread
From: John Wiegley @ 2016-04-03 23:18 UTC (permalink / raw)
To: Richard Stallman; +Cc: Lars Magne Ingebrigtsen, emacs-devel
>>>>> Richard Stallman <rms@gnu.org> writes:
>> Imagine you're using Emacs 26 for the first time. Suddenly you notice that
>> when you hit the `hyper z' key, Emacs doesn't florbnoze as it used to, but
>> forblizes instead! You're furious! So you hit the `C-h R' (for rollback)
>> keystroke, and you get a buffer that looks like:
> This sounds nice. It goes with the Antinews feature we have always had in
> documentation.
Agreed, it would be cool if it worked. Having it work correctly in all cases
might become a maintenance burden, unless it were very easy to automate.
--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2016-04-03 23:18 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-29 15:44 More convenient default rollback for users Lars Magne Ingebrigtsen
2016-03-29 16:04 ` Eli Zaretskii
2016-03-29 16:31 ` Lars Magne Ingebrigtsen
2016-03-29 16:51 ` Eli Zaretskii
2016-03-30 15:45 ` Lars Magne Ingebrigtsen
2016-03-30 17:45 ` Clément Pit--Claudel
2016-03-31 12:41 ` Stefan Monnier
2016-03-29 16:56 ` Stefan Monnier
2016-03-30 12:09 ` Richard Stallman
2016-04-03 23:18 ` John Wiegley
2016-03-31 6:09 ` zhanghj
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.