Re: Customize buttons that change user'scustomfileshouldaskforconfirmation

2005-02-13 Thread Luc Teirlinck
Drew Adams wrote: The question was about "getting" values from a custom file without loading that file. You are confirming, I guess, that there is no way to change custom-file for purposes of get-but-do-not-load. Setting custom-file _during an Emacs session_ is usually with the intent to

RE: Customize buttons that change user'scustomfileshouldaskforconfirmation

2005-02-13 Thread Drew Adams
> If it implies reading from the file, this could > be used to load values from a diffent custom-file > (to see what they are) before actually using them. > > No way to do that has yet been proposed. S=>F me

RE: Customize buttons that change user'scustomfileshouldaskforconfirmation

2005-02-13 Thread Drew Adams
> If it implies reading from the file, this could > be used to load values from a diffent custom-file > (to see what they are) before actually using them. > > No way to do that has yet been proposed. S=>F means > to

Re: Customize buttons that change user'scustomfileshouldaskforconfirmation

2005-02-12 Thread Luc Teirlinck
Lennart Borgman wrote: The suggested (load custom-file) looks like it means "this is where we read from". (load "file") _does_ means to load "file", that is to read from the file. (setq custom-file "file") means that Custom should write its saved values into "file". Maybe you do not even

Re: Customize buttons that change user'scustomfileshouldaskforconfirmation

2005-02-12 Thread Lennart Borgman
- Original Message - From: "Luc Teirlinck" <[EMAIL PROTECTED]> >> Absolutely not. `(setq custom-file "Y")' means that you want Custom to >> _write_ to Y. If you want Y to be read you have to load Y. >.. >> (setq custom-file "Y") >> (load custom-file) .. > Where is the

Re: Customize buttons that change user'scustomfileshouldaskforconfirmation

2005-02-12 Thread Luc Teirlinck
Lennart Borgman wrote: > Absolutely not. `(setq custom-file "Y")' means that you want Custom to > _write_ to Y. If you want Y to be read you have to load Y. .. > (setq custom-file "Y") > (load custom-file) Is not this a bit of a contradiction? I would not say that the semantic

Re: Customize buttons that change user'scustomfileshouldaskforconfirmation

2005-02-12 Thread Lennart Borgman
- Original Message - From: "Luc Teirlinck" <[EMAIL PROTECTED]> >M-: (setq custom-file "X") >M-x customize >do some editing >save (into X) >M-: (setq custom-file "Y") >get (from ?) > >Question is "from X" or "from Y"? > >Good poin

RE: Customize buttons that change user'scustomfileshouldaskforconfirmation

2005-02-12 Thread Drew Adams
The key is to satisfy both novices and experts Provide a good default interface for novices and also a way for that novice to become an expert without too much trouble That is why Customize should not only do its job, but make it easy for a person to learn. I don't agre

Re: Customize buttons that change user'scustomfileshouldaskforconfirmation

2005-02-12 Thread Richard Stallman
> The information should be readily available. You can look into .emacs. The information is not encrypted, it is not binary. It is a good idea for every program to help users find the internal data that implements any particular customization. But since all the Customize data is tog

Re: Customize buttons that change user'scustomfileshouldaskforconfirmation

2005-02-10 Thread David Kastrup
"Robert J. Chassell" <[EMAIL PROTECTED]> writes: > That is why I dislike a car with a dashboard that never let's me see > anything; why I dislike car which requires my mechanic to purchase a > special device to find out what is going on. > > The information should be readily available. You can lo

Re: Customize buttons that change user'scustomfileshouldaskforconfirmation

2005-02-10 Thread Robert J. Chassell
IMO, the beauty of Customize is that it hides all the nitty gritty details that no users (novices or experts) need to worry about. Emacs describes itself as extensible, customizable, self-documenting, real-time, display. Nowadays, few environments work just on a lin

Re: Customize buttons that change user'scustomfileshouldaskforconfirmation

2005-02-10 Thread Robert J. Chassell
> (custom-set-variables > ;; ... > '(baud-rate 38400) ... the above is a bad idea: it is not good elisp code ... I am not going to say it is good code. (Your `setq' example is better.) Unfortunately, that is what is currently written automatically in one's .emacs f

Re: Customize buttons that change user'scustomfileshouldaskforconfirmation

2005-02-10 Thread Kim F. Storm
"Robert J. Chassell" <[EMAIL PROTECTED]> writes: > Customize is a can of worms. But the worms can improve the garden if > handled rightly! I don't see how the changes you suggest can be seen as an improvement. Quite the opposite. IMO, the beauty of Customize is that it hides all the nitty gritt

Re: Customize buttons that change user'scustomfileshouldaskforconfirmation

2005-02-10 Thread Stefan Monnier
> should show in the value window the humanly readable version of what > is set, such as > (custom-set-variables > ;; ... > '(baud-rate 38400) > ;; ... ) Whether we want to teach users or not, the above is a bad idea: it is not good elisp code and noone should write such a thin

Re: Customize buttons that change user'scustomfileshouldaskforconfirmation

2005-02-10 Thread David Kastrup
"Robert J. Chassell" <[EMAIL PROTECTED]> writes: > Customize is a can of worms. But the worms can improve the garden > if handled rightly! > > As others feared years ago, I now fear that some will come to depend > on their .emacs file being written automatically by Customize. So what? > They wi

Re: Customize buttons that change user'scustomfileshouldaskforconfirmation

2005-02-10 Thread Robert J. Chassell
Customize is a can of worms. But the worms can improve the garden if handled rightly! As others feared years ago, I now fear that some will come to depend on their .emacs file being written automatically by Customize. They will lose or not gain an understanding of the technology. This applies e

Re: Customize buttons that change user'scustomfileshouldaskforconfirmation

2005-02-10 Thread Kim F. Storm
"Robert J. Chassell" <[EMAIL PROTECTED]> writes: > 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. > > Ju

Re: Customize buttons that change user'scustomfileshouldaskforconfirmation

2005-02-10 Thread Robert J. Chassell
... 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 am refering to `All'. Clearly, individual settings should not involve evaluating your entire .emacs file. How can y

RE: Customize buttons that change user'scustomfileshouldaskforconfirmation

2005-02-09 Thread Drew Adams
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 ev