* Diff between customized value
@ 2023-05-20 12:34 Daniel Fleischer
2023-05-20 12:55 ` Ruijie Yu via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Fleischer @ 2023-05-20 12:34 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Diff between customized value
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
2023-05-23 17:12 ` Marcin Borkowski
0 siblings, 1 reply; 3+ messages in thread
From: Ruijie Yu via Users list for the GNU Emacs text editor @ 2023-05-20 12:55 UTC (permalink / raw)
To: Daniel Fleischer; +Cc: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Diff between customized value
2023-05-20 12:55 ` Ruijie Yu via Users list for the GNU Emacs text editor
@ 2023-05-23 17:12 ` Marcin Borkowski
0 siblings, 0 replies; 3+ messages in thread
From: Marcin Borkowski @ 2023-05-23 17:12 UTC (permalink / raw)
To: Ruijie Yu; +Cc: Daniel Fleischer, help-gnu-emacs
On 2023-05-20, at 14:55, Ruijie Yu via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> wrote:
> 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.
Difftastic (https://difftastic.wilfred.me.uk/) might be useful.
Hth,
--
Marcin Borkowski
http://mbork.pl
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-05-23 17:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2023-05-23 17:12 ` Marcin Borkowski
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).