unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: Customize buttons that change user'scustomfileshouldaskforconfirmation
Date: Wed, 9 Feb 2005 13:27:06 -0800	[thread overview]
Message-ID: <FDELKNEBLPKKDCEBEJCBMEOICLAA.drew.adams@oracle.com> (raw)
In-Reply-To: <m1CyyV9-0004QkC@rattlesnake.com>

       I don't understand this. Set All (F=>C) means set all current
       values (C) to the values shown in the edit fields (F). What does
       this have to do with the init file?

    Everything is written to the init file (or files loaded from it); that
    is where customization forms are evaluated.  So `Set All (F=>C)' means
    to set in the init file those values changed by customize.

I don't think so. I don't think that's what happens now, at least, for Set.
"Setting" something in the init file is really (automatically editing and)
_saving_ it. The term "set" refers today to setting the _current value_.

    Or are you suggesting that the form be evaluated in some place a user
    cannot see?  I can understand doing that; but it makes it less likely
    that the person will learn to write simple forms.  Customization is,
    after all, an automatic expression writing and evaluating function.
    Not only do people like to see what the Lisp expression looks like, we
    want to encourage them to do so!  After all, that leads to hacking.

See above. AFAIK, Set is not involved with custom-set* in any way; it simply
does F=>C.

    The customize automatic expression writing action is rather like the
    (not very good) function that came with Calc mode more than a decade
    ago and since been removed.  The difference is that the Calc mode
    automatic expression writing function wrote `defun' expressions and
    could handle anything you could put in a keyboard macro of the time;
    the Customization functions write `custom-set-*' expressions instead.

           Presumably, `Save All' means simply `automatically write
           custom-set-* values into your initialization file, write that
           file, and then evaluate it'.

       I was with you up until the last clause, "and then evaluate it".

    Well, when you `Save for Future Sessions' the new value takes effect
    right away.  The expression is evaluated.  At least, that is what
    happens now.  (I just checked.)

    So save `all' must mean that _all_ customizations are saved and also
    evaluated.  That means saving and evaluating your .emacs file.

    Perhaps the button should be reworded to `Set and Save All'.  That is
    clearer to me; I prefer this wording.  But it takes more room.  The
    help (or `tip') on the button or function should explain that saving
    the init file also involves evaluating it, so the new valued become
    effective, that is, they become set as well as saved.

Save does mean set and save, so, yes, the current value is updated to the
same value that is written to your custom file. That is not the same thing
as evaluating your entire .emacs file, however.

I personally think that "Save" is clear enough, but you are correct that the
semantics behind the button are set and save. The tooltip and doc string
could make that explicit, as you suggest.

    Actually, the more I think about it, the more I like the rewording to
    `Set and Save All' even if it is longer.  After all, you can set
    values in your initialization file without saving it; and you can save
    it without evaluating it.  You have led to a good point.

How can you save Customize settings without also setting their current
values (today)? And, again, changing a value in your init file is not what
is meant currently by "set"; "set" refers to setting the current values.

  reply	other threads:[~2005-02-09 21:27 UTC|newest]

Thread overview: 157+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <DNEMKBNJBGPAOPIJOOICKENMCAAA.drew.adams@oracle.com>
2005-01-31  0:20 ` Customize buttons that change user's custom file should ask forconfirmation Richard Stallman
2005-01-31  1:07   ` Stefan Monnier
2005-01-31  2:02     ` Miles Bader
2005-01-31  1:16   ` Customize buttons that change user's custom file should askforconfirmation Lennart Borgman
2005-01-31  1:55     ` Miles Bader
2005-01-31  2:06     ` Drew Adams
2005-01-31 15:21     ` Per Abrahamsen
2005-01-31 17:22       ` Drew Adams
2005-01-31 21:39         ` Robert J. Chassell
2005-01-31 22:37           ` Customize buttons that change user's custom file shouldaskforconfirmation Drew Adams
2005-01-31 22:59           ` Customize buttons that change user's custom file should askforconfirmation Kim F. Storm
2005-01-31 23:50             ` Stefan Monnier
2005-02-01  0:44               ` Simon Josefsson
2005-01-31 23:56             ` Lennart Borgman
2005-02-01  8:56               ` Per Abrahamsen
2005-02-01 14:11                 ` Robert J. Chassell
2005-02-01 16:21                   ` Drew Adams
2005-02-02  7:27         ` Richard Stallman
2005-02-02 18:01           ` Customize buttons that change user's custom file shouldaskforconfirmation Drew Adams
2005-02-02 18:46             ` Stefan Monnier
2005-02-02 19:02               ` Drew Adams
2005-02-03  2:43                 ` Miles Bader
2005-02-03  6:58                   ` Customize buttons that change user's custom fileshouldaskforconfirmation Lennart Borgman
2005-02-03  7:39                     ` Miles Bader
2005-02-03  9:36                       ` Kim F. Storm
2005-02-03 14:46                         ` Lennart Borgman
2005-02-03 15:18                           ` David Kastrup
2005-02-03 15:30                             ` Lennart Borgman
2005-02-03 19:30                         ` Drew Adams
2005-02-03 19:54                           ` Lennart Borgman
2005-02-03 20:05                             ` Drew Adams
2005-02-03 20:13                               ` Lennart Borgman
2005-02-03 20:18                                 ` Customize buttons that change user's customfileshouldaskforconfirmation Drew Adams
2005-02-03 20:23                                   ` Lennart Borgman
2005-02-04 10:22                             ` Customize buttons that change user's custom fileshouldaskforconfirmation Kim F. Storm
2005-02-07  5:32                               ` Drew Adams
2005-02-07  7:25                                 ` Customize buttons that change user's customfileshouldaskforconfirmation Lennart Borgman
2005-02-07  7:34                                   ` Drew Adams
2005-02-07 17:28                                     ` Customize buttons that change user'scustomfileshouldaskforconfirmation Drew Adams
2005-02-07 20:23                                       ` Robert J. Chassell
2005-02-07 20:26                                       ` Lennart Borgman
2005-02-08 11:46                                         ` Richard Stallman
2005-02-07 13:45                                   ` Customize buttons that change user's customfileshouldaskforconfirmation Robert J. Chassell
2005-02-07 16:46                                     ` Customize buttons that change user'scustomfileshouldaskforconfirmation Lennart Borgman
2005-02-07 14:15                                   ` Customize buttons that change user's customfileshouldaskforconfirmation Robert J. Chassell
2005-02-07 16:23                                     ` Customize buttons that change user'scustomfileshouldaskforconfirmation Lennart Borgman
2005-02-07 20:22                                       ` Robert J. Chassell
2005-02-07 20:29                                         ` Customize buttons that changeuser'scustomfileshouldaskforconfirmation Lennart Borgman
2005-02-08 11:46                                           ` Richard Stallman
2005-02-09  8:11                                     ` Customize buttons that change user's customfileshouldaskforconfirmation Richard Stallman
2005-02-09 13:29                                       ` Robert J. Chassell
2005-02-07 15:07                                   ` Customize buttons that change user's customfiles Robert J. Chassell
2005-02-07 15:53                                     ` Robert J. Chassell
2005-02-09  8:11                                 ` Customize buttons that change user's custom fileshouldaskforconfirmation Richard Stallman
2005-02-09 13:31                                   ` Robert J. Chassell
2005-02-09 17:27                                     ` Customize buttons that change user's customfileshouldaskforconfirmation Drew Adams
2005-02-09 20:31                                       ` Robert J. Chassell
2005-02-09 21:27                                         ` Drew Adams [this message]
2005-02-10 14:42                                           ` Customize buttons that change user'scustomfileshouldaskforconfirmation Robert J. Chassell
2005-02-10 15:20                                             ` Kim F. Storm
2005-02-11 21:12                                             ` Customize buttons that changeuser'scustomfileshouldaskforconfirmation Drew Adams
2005-02-09 14:12                                   ` Customize buttons that change user's customfileshouldaskforconfirmation Lennart Borgman
2005-02-09 17:17                                     ` Drew Adams
2005-02-10 18:39                                     ` Richard Stallman
2005-02-10 21:56                                       ` Kim F. Storm
2005-02-11 21:13                                         ` Drew Adams
2005-02-12 14:27                                           ` Kim F. Storm
2005-02-12 18:04                                             ` Drew Adams
2005-02-12 18:45                                               ` Luc Teirlinck
2005-02-12 21:01                                                 ` Customize buttons that change user'scustomfileshouldaskforconfirmation Lennart Borgman
2005-02-12 21:21                                                   ` Luc Teirlinck
2005-02-12 21:28                                                     ` Lennart Borgman
2005-02-12 21:42                                                       ` Luc Teirlinck
2005-02-13  0:17                                                         ` Customize buttons that changeuser'scustomfileshouldaskforconfirmation Lennart Borgman
2005-02-13  0:54                                                           ` Luc Teirlinck
2005-02-13  4:13                                                           ` Luc Teirlinck
2005-02-14  2:25                                                             ` Customize buttons thatchangeuser'scustomfileshouldaskforconfirmation Drew Adams
2005-02-13  4:32                                                           ` Customize buttons that changeuser'scustomfileshouldaskforconfirmation Luc Teirlinck
2005-02-14  2:07                                                 ` Customize buttons that change user'scustomfileshouldaskforconfirmation Drew Adams
2005-02-14  2:21                                                   ` Drew Adams
2005-02-14  3:32                                                   ` Luc Teirlinck
2005-02-12 19:03                                               ` Customize buttons that change user's customfileshouldaskforconfirmation Luc Teirlinck
2005-02-12 19:21                                               ` Luc Teirlinck
2005-02-12 20:09                                               ` Luc Teirlinck
2005-02-12  8:37                                         ` Richard Stallman
2005-02-12  9:14                                           ` Lennart Borgman
2005-02-12 11:48                                           ` Robert J. Chassell
2005-02-12 14:58                                             ` Kim F. Storm
2005-02-07 20:51                           ` Customize buttons that change user's custom fileshouldaskforconfirmation Richard Stallman
2005-02-08 20:37                             ` Customize buttons that change user's customfileshouldaskforconfirmation Drew Adams
2005-02-15  6:18                         ` Customize buttons that change user's custom fileshouldaskforconfirmation Richard Stallman
2005-02-15  7:05                           ` Lennart Borgman
2005-02-16  9:32                             ` Richard Stallman
2005-02-16 13:07                               ` Lennart Borgman
2005-02-16 14:44                                 ` Luc Teirlinck
2005-02-16 17:14                                   ` Customize buttons that change user's customfileshouldaskforconfirmation Lennart Borgman
2005-02-16 23:07                                     ` Luc Teirlinck
2005-02-15 17:51                           ` Customize buttons that change user's custom fileshouldaskforconfirmation Drew Adams
2005-02-15 18:33                             ` Drew Adams
2005-02-15 19:14                               ` Customize buttons that change user's customfileshouldaskforconfirmation Lennart Borgman
2005-02-15 19:51                                 ` Drew Adams
2005-02-16  7:25                                   ` Lennart Borgman
2005-02-17 10:34                             ` Customize buttons that change user's custom fileshouldaskforconfirmation Richard Stallman
2005-02-15 23:20                           ` Luc Teirlinck
2005-02-16  0:03                             ` Kim F. Storm
2005-02-16  0:56                               ` Luc Teirlinck
2005-02-17 10:35                             ` Richard Stallman
2005-02-17 12:44                               ` Kim F. Storm
     [not found]                                 ` <003e01c51506$35ecb6e0$0200a8c0@sedrcw11488>
     [not found]                                   ` <m3oeejyxd6.fsf@kfs-l.imdomain.dk>
2005-02-17 17:27                                     ` David Kastrup
2005-02-17 18:32                                     ` Drew Adams
2005-02-17 20:33                                       ` Kim F. Storm
2005-02-17 23:06                                         ` Lennart Borgman
2005-02-17 22:57                                 ` Luc Teirlinck
2005-02-18  8:23                                   ` Kim F. Storm
2005-02-18 13:54                                     ` Lennart Borgman
2005-02-18 14:12                                     ` Luc Teirlinck
2005-02-18 14:56                                       ` Kim F. Storm
2005-02-18 22:59                                         ` Luc Teirlinck
2005-02-18 23:29                                           ` Luc Teirlinck
2005-02-18 23:45                                             ` Lennart Borgman
2005-02-19  1:16                                               ` Luc Teirlinck
2005-02-19  1:28                                               ` Luc Teirlinck
2005-02-19  3:10                                               ` Luc Teirlinck
2005-02-19 21:32                                                 ` Kim F. Storm
2005-02-19 20:55                                           ` Richard Stallman
2005-02-19 21:24                                           ` Kim F. Storm
2005-02-20  2:31                                             ` Luc Teirlinck
2005-02-19 20:54                                         ` Richard Stallman
2005-02-20  8:52                                           ` Lennart Borgman
2005-02-20 17:09                                             ` Luc Teirlinck
2005-02-20 19:24                                               ` Kim F. Storm
2005-02-20 20:18                                                 ` David Kastrup
2005-02-20 20:46                                                   ` Luc Teirlinck
2005-02-21  1:00                                                 ` Drew Adams
2005-02-20 17:17                                             ` Luc Teirlinck
2005-02-19  9:44                                       ` Richard Stallman
2005-02-19 15:42                                         ` Luc Teirlinck
2005-02-19  9:44                                     ` Richard Stallman
2005-02-17 18:34                               ` Drew Adams
2005-02-18 14:13                                 ` Richard Stallman
2005-02-18 15:17                                   ` Customize buttons that change user's customfileshouldaskforconfirmation Drew Adams
2005-02-19  3:51                                     ` Luc Teirlinck
2005-02-16  0:37                           ` Customize buttons that change user's custom fileshouldaskforconfirmation Luc Teirlinck
2005-02-17 10:35                             ` Richard Stallman
2005-02-03 19:13                 ` Customize buttons that change user's custom file shouldaskforconfirmation Richard Stallman
2005-02-01 13:30     ` Customize buttons that change user's custom file should askforconfirmation Richard Stallman
2005-01-31  1:22   ` Customize buttons that change user's custom file should ask forconfirmation Miles Bader
2005-02-01 13:30     ` Richard Stallman
2005-02-10 17:25 Customize buttons that change user'scustomfileshouldaskforconfirmation Robert J. Chassell
2005-02-10 18:25 ` David Kastrup
2005-02-10 19:01 ` Stefan Monnier
2005-02-10 22:49   ` Robert J. Chassell
2005-02-10 21:39 ` Kim F. Storm
2005-02-10 23:45   ` Robert J. Chassell
2005-02-11  0:54     ` David Kastrup
2005-02-12  8:38       ` Richard Stallman
2005-02-12 18:20     ` Drew Adams

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=FDELKNEBLPKKDCEBEJCBMEOICLAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    /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).