emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 2/3] lisp/progmodes/etags.el don't (forward-char) as it's ove


From: Eli Zaretskii
Subject: Re: [PATCH 2/3] lisp/progmodes/etags.el don't (forward-char) as it's overriden next line
Date: Sun, 17 Mar 2019 22:40:02 +0200

> Date: Sun, 17 Mar 2019 23:27:30 +0300
> From: Konstantin Kharlamov <address@hidden>
> Cc: address@hidden
> 
> >>  Okay, so: ^M appears in selective-display-mode only in the end of a
> >>  line.
> > 
> > No, ^M _replaces_ newline characters, so what was previously several
> > lines is now a single long line.
> 
> Sure, but after the patch we don't match the whole line anymore. We 
> only match the tag. We don't care if it's at the beginning of the line 
> or in the middle of it. We only look for the tag. So we don't care if 
> line has a newline character or ^M.

But that's incorrect: a tag in a tags table always begins at the
beginning of a line, so it must be a search anchored at the beginning
of the line.  And in selective-display mode ^M counts as the beginning
of a line.



reply via email to

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