From: Ruijie Yu via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: Daniel Fleischer <danflscr@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Diff between customized value
Date: Sat, 20 May 2023 20:55:16 +0800 [thread overview]
Message-ID: <EB081681-563D-4F1A-890B-C7069BF03998@netyu.xyz> (raw)
In-Reply-To: <m2ttw7mbaf.fsf@gmail.com>
On May 20, 2023, at 20:36, Daniel Fleischer <danflscr@gmail.com> wrote:
>
> Hi,
>
> How do I compare a customized variable value with its original value?
> When I `describe-variable' I get "value" and "original value", sometimes
> it's hard to see the difference. Is there a quick way to diff them?
>
>
> --
> Daniel Fleischer
>
>
I think you are looking for “sexp diff”. I recall seeing one on [search engine], but it wasn’t feature complete. Maybe you will have better luck this time.
For completeness, here’s how you access the standard value programmatically:
(customize--standard-value 'var-name)
Or take a look at the implementation of this function: it’s just `eval'’ing the sexp of one of the symbol’s properties.
--
Best,
RY
next prev parent reply other threads:[~2023-05-20 12:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-20 12:34 Diff between customized value Daniel Fleischer
2023-05-20 12:55 ` Ruijie Yu via Users list for the GNU Emacs text editor [this message]
2023-05-23 17:12 ` Marcin Borkowski
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=EB081681-563D-4F1A-890B-C7069BF03998@netyu.xyz \
--to=help-gnu-emacs@gnu.org \
--cc=danflscr@gmail.com \
--cc=ruijie@netyu.xyz \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).