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

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

bug#26417: 25.2; Add current-line in simple.el


From: Nicolas Petton
Subject: bug#26417: 25.2; Add current-line in simple.el
Date: Wed, 12 Apr 2017 10:30:53 +0200

Damien Cassou <damien@cassou.me> writes:

> Hi,

Hi Damien,

> attached patch adds `current-line' and its tests. This new 
> function returns the line number at given position ignoring 
> narrowing.

I know narrowing have no effect on `current-column', but does it make
sense to widen the buffer for `current-line'? (I don't have a strong
opinion, but I think it's worth asking the question).

Other than that, I think this is useful, thanks for the patch.

> I guess that `what-line' could be refactored using 
> `current-line'. I can do that if you want.

Yes, that'd be good.

Cheers,
Nico

Attachment: signature.asc
Description: PGP signature


reply via email to

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