help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quickly check for differences in code and locate possible errors.


From: Hongyi Zhao
Subject: Re: Quickly check for differences in code and locate possible errors.
Date: Wed, 29 Mar 2023 10:04:48 +0800

On Tue, Mar 28, 2023 at 11:03 PM Gregory Heytings <gregory@heytings.org> wrote:
>
>
> >
> > I would like to know whether it's possible to quickly check for
> > differences in code and locate possible errors with the help of Emacs.
> > Any tips will be appreciated.
> >
>
> I think the simplest way to do what you want is:
>
> (defun ediff-regions-characterwise ()
>    (interactive)
>    (let ((ediff-forward-word-function #'forward-char))
>      (call-interactively 'ediff-regions-wordwise)))
>
> Open the two files, call M-x ediff-regions-characterwise, select the two
> buffers, and type C-x h C-M-c twice.

Thank you for the tip. Now, let's consider a further problem: if I
only have the wrong version of the code at hand, I want to quickly
locate the possible problematic code characters from it. Is it
possible?

More specifically, the culprit should be picked out, and the
corresponding modifications should be made as follows:

`,' should be `,'

`\[RightArrow]' should be `->'

Regards,
Zhao



reply via email to

[Prev in Thread] Current Thread [Next in Thread]