unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Robert J. Chassell" <bob@rattlesnake.com>
Subject: Re: Customize buttons that change user'scustomfileshouldaskforconfirmation
Date: Mon, 7 Feb 2005 20:22:52 +0000 (UTC)	[thread overview]
Message-ID: <m1CyFPI-0004QyC@rattlesnake.com> (raw)
In-Reply-To: <00b601c50d34$b8187c00$0200a8c0@sedrcw11488> (lennart.borgman.073@student.lu.se)

    It is worse than that - since .emacs was not run Custom can not
    really know where to save and should just say so.  Or, do you mean
    that Custom did overwrite your .emacs?

No, this user has no .emacs file; this .emacs file was created
automatically.

The `custom-set-*' functions were designed to write automatically into
your initialization file, which is .emacs by default.  (You can change
it by setting `user-init-file' to another value.)

When you do not have an initialization file, the functions create a
.emacs file and write into it.

As of today's GNU Emacs CVS snapshot, Mon, 2005 Feb  7  14:18 UTC
GNU Emacs 21.3.50.51 (i686-pc-linux-gnu, GTK+ Version 2.4.14)
a .emacs file can contain either

    (setq next-line-add-newlines t)
or
    (custom-set-variables
     '(next-line-add-newlines t))

The effect is the the same.  

When the initialization file contains two or more variable setting
expressions, the last one takes precedence.

Mostly, people write `setq' statements in their .emacs file to
customize them, although I get the impression that a couple of people
here are depending more on the `custom-set-*' functions.

People are encouraged to write their own `setq' statements for
customization.  Otherwise, there computer will look very mysterious.
Emacs Lisp, at least its simple expressions, has the virtue of being
understandable by just about any one.

But some people use the `custom-set-*' functions since they do not yet
know how to use `setq' or because they do not understand new features,
like faces.

For example, I do not know how to set faces with `setq'.  So I use
`custom-set-faces' in two places in my .emacs file instead.  In one of
them, where I defined `bobs-w3-font-hook', I edited the expression
normally.  (That looks nice.... :)

In the other, where I set the `bold' face and others, I use the
`custom-set-faces' graphic user interface and let it write my .emacs
file automatically.  (The automatic writing produces ugly looking code
... :(

(Obviously, it would be pleasant and useful to fix ugly code
production; but that fix is not as important as others that need
doing.)

Clearly, the phrase "Erase All" should mean "Erase All
Customizations".  This means converting your `setq' and `custom-set-*'
expressions to their default values, deleting your defuns and anything
else in your initialization file.

Worse, since the Emacs provided by the distribution contains default
values, as it must, "Erase All" cannot actually mean erase everything,
but must mean "Reset All to Default Values".

So I do not think the word "Erase" should be part of the function name
or on any menu at all.  `Reset to Default' is much more accurate.
That phrase works both with the encouraged customization in which you
manually edit an initialization file and with customization in which a
value is written automatically into that initialization file.

-- 
    Robert J. Chassell                         
    bob@rattlesnake.com                         GnuPG Key ID: 004B4AC8
    http://www.rattlesnake.com                  http://www.teak.cc

  reply	other threads:[~2005-02-07 20:22 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 [this message]
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                                         ` Customize buttons that change user'scustomfileshouldaskforconfirmation Drew Adams
2005-02-10 14:42                                           ` 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=m1CyFPI-0004QyC@rattlesnake.com \
    --to=bob@rattlesnake.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).