From: Per Abrahamsen <abraham@dina.kvl.dk>
Subject: Re: convert from setq to customization
Date: Wed, 05 Mar 2003 14:31:17 +0100 [thread overview]
Message-ID: <rjheaidjoa.fsf@zuse.dina.kvl.dk> (raw)
In-Reply-To: <86u1em4wdn.fsf@red.stonehenge.com>
merlyn@stonehenge.com (Randal L. Schwartz) writes:
> Is there any trivial way for me to tell the customization stuff to
> look at the current values of things, and absorb them as customize
> settings? Am I making any sense?
Interesting idea, try this function. It list all user options that
have been changed outside customize.
(defun customize-rogue ()
"Customize all user options modified outside customize."
(interactive)
(let ((found nil))
(mapatoms (lambda (symbol)
(let ((cval (or (get symbol 'customized-value)
(get symbol 'saved-value)
(get symbol 'standard-value))))
(when (and cval ;Declared with defcustom.
(boundp symbol) ;Has a value.
(not (equal (eval (car cval))
;; Which does not match customize.
(default-value symbol))))
(push (list symbol 'custom-variable) found)))))
(if (not found)
(error "No rogue user options")
(custom-buffer-create (custom-sort-items found t nil)
"*Customize Rogue*"))))
Unfortuntely, there is too much rude Lisp code that changes user
setings for this to be really useful.
next prev parent reply other threads:[~2003-03-05 13:31 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-01 21:20 Randal L. Schwartz
2003-03-01 23:59 ` Ted Zlatanov
2003-03-03 13:41 ` Kai Großjohann
2003-03-03 15:56 ` Ted Zlatanov
2003-03-03 16:53 ` Kai Großjohann
2003-03-03 19:42 ` Randal L. Schwartz
2003-03-03 19:51 ` Kai Großjohann
2003-03-03 20:50 ` Randal L. Schwartz
2003-03-05 12:49 ` Per Abrahamsen
2003-03-05 20:38 ` Ted Zlatanov
2003-03-05 13:31 ` Per Abrahamsen [this message]
2003-03-05 17:38 ` David S Goldberg
2003-03-06 8:01 ` Per Abrahamsen
2003-03-05 18:39 ` Reiner Steib
2003-03-06 7:55 ` Per Abrahamsen
[not found] ` <4nadg9fsw2.fsf@lockgroove.bwh.harvard.edu>
[not found] ` <rju1ehc501.fsf@zuse.dina.kvl.dk>
2003-03-06 17:56 ` Ted Zlatanov
2003-03-06 20:13 ` Simon Josefsson
2003-03-07 16:19 ` Ted Zlatanov
2003-03-07 16:36 ` Simon Josefsson
2003-03-07 17:33 ` Ted Zlatanov
2003-03-07 18:38 ` Simon Josefsson
2003-03-07 19:46 ` Ted Zlatanov
2003-03-07 9:02 ` Per Abrahamsen
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=rjheaidjoa.fsf@zuse.dina.kvl.dk \
--to=abraham@dina.kvl.dk \
/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.
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 NNTP newsgroup(s).