On Mon, Apr 15, 2013 at 06:05:56PM +0200, Suvayu Ali wrote: > Hi Bastien, > > On Mon, Apr 15, 2013 at 05:49:28PM +0200, Bastien wrote: > > Suvayu Ali <fatkasuvayu+li...@gmail.com> writes: > > > > > BTW, to others, is it by any chance possible to check how emacs was > > > started (if -q or -Q was present among the command line options)? Then > > > a message could be shown about minimal testing with a setup when users > > > call `org-submit-bug-report'. > > > > Well, there is `command-line-args' but -Q is deleted from this list > > when the args are processed. > > As far as I recall, if you start with emacs -Q, then customize refuses > to save anything. Not sure if this is true for -q too. That would > imply customize source should have some hint on how to do that :).
I took a peek at the source; you can test for custom-file. Take a look at custom-save-variable. Here is the snippet I'm alluding to: ... (if (custom-file t) (custom-save-all) (message "Setting `%s' temporarily since \"emacs -q\" would overwrite customizations" variable) (set variable value)) ... Hope this helps, :) -- Suvayu Open source is the future. It sets us free.