all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Change `customize-save-variable' to work under "emacs -Q"?
@ 2011-07-10 12:22 Lars Magne Ingebrigtsen
  2011-07-11  2:30 ` Stephen J. Turnbull
                   ` (4 more replies)
  0 siblings, 5 replies; 28+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-07-10 12:22 UTC (permalink / raw
  To: emacs-devel

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?

Otherwise all the callers end up doing this very awkward thing:

	(if (ignore-errors (custom-file))
	    (progn
	      (customize-save-variable 'smtpmail-smtp-server server)
	      (customize-save-variable 'smtpmail-smtp-service port))
	  (setq smtpmail-smtp-server server
		smtpmail-smtp-service port))


-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2011-07-17 19:13 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.