all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Chong Yidong'" <cyd@stupidchicken.com>, <emacs-devel@gnu.org>
Subject: RE: Change `customize-save-variable' to work under "emacs -Q"?
Date: Mon, 11 Jul 2011 11:08:25 -0700	[thread overview]
Message-ID: <9F2919F4A0FC45149C4216E5AC0578AF@us.oracle.com> (raw)
In-Reply-To: <877h7ok9cd.fsf@stupidchicken.com>

> > If you run "emacs -Q", and you have a piece of code that calls
> > `customize-save-variable', it will error out, saying that it won't
> > overwrite the conf.
> >
> > Would anybody mind if I changed that function to not error out, but
> > instead just do a `setq' on the variable in question, if 
> > we're running under -Q?
> 
> I think this is fine.

Ouch!  Maybe I'm misunderstanding, but a user in `emacs -Q' who does `M-x
customize-save-variable' and sees no error message will expect that it has been
_saved_, no?  Likewise any code that a user might run that calls
`customize-save-variable'.

How can we _silently_ convert saving to just setq?  The user will think that
something is saved when that is not the case.  Sounds like asking for trouble,
to me.  But maybe I'm missing something.

Why is this better than raising an error and letting the user then use `setq'
etc.?  Why hide the situation from the user?

I would think we would want to take advantage of the opportunity to remind the
user that s?he invoked `emacs -Q', so no init file, so no place to save the
option.

Also, why would we convert to just `setq' and not `customize-set-variable'?  The
latter DTRT wrt :set etc.




  reply	other threads:[~2011-07-11 18:08 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-10 12:22 Change `customize-save-variable' to work under "emacs -Q"? Lars Magne Ingebrigtsen
2011-07-11  2:30 ` Stephen J. Turnbull
2011-07-11  7:49   ` Lars Magne Ingebrigtsen
2011-07-11  9:52     ` Stephen J. Turnbull
2011-07-11  9:53       ` Lars Magne Ingebrigtsen
2011-07-11 13:52         ` Stephen J. Turnbull
2011-07-11 17:36 ` Chong Yidong
2011-07-11 18:08   ` Drew Adams [this message]
2011-07-11 19:32     ` Juanma Barranquero
2011-07-11 18:27   ` PJ Weisberg
2011-07-11 19:04     ` Chong Yidong
2011-07-11 19:28       ` Lars Magne Ingebrigtsen
2011-07-12  0:03         ` Tim Cross
2011-07-12  1:07           ` chad
2011-07-12  1:51           ` Stephen J. Turnbull
2011-07-12  2:57             ` Tim Cross
2011-07-12  4:12               ` Stephen J. Turnbull
2011-07-12 10:30                 ` Tim Cross
2011-07-13  0:31                   ` Stephen J. Turnbull
2011-07-13  5:38                     ` Tim Cross
2011-07-13 11:02                       ` Stephen J. Turnbull
2011-07-13 23:46                         ` Tim Cross
2011-07-14  2:13                           ` Stephen J. Turnbull
2011-07-12  6:46             ` Lars Magne Ingebrigtsen
2011-07-12  3:32 ` Stefan Monnier
2011-07-15 17:01 ` Dave Abrahams
2011-07-17 14:33 ` Christoph Scholtes
2011-07-17 19:13   ` Lars Magne Ingebrigtsen

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9F2919F4A0FC45149C4216E5AC0578AF@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    /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 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.