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: Thu, 20 Apr 2017 11:03:56 +0200

Damien Cassou <damien@cassou.me> writes:

> Nicolas Petton <nicolas@petton.fr> writes:
>> 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). 
>
> The existing function `line-number-at-pos` returns the line number 
> relative to current narrowing. I need a function that returns the 
> absolute line number (as I need to save the line number in a 
> separate file so that I can later open at the appropriate 
> line). Do you think the function name is misleading? What about 
> one of these?

What about something like this:

    (defun current-line (&optional ignore-narrowing)
      ...)

Cheers,
Nico

Attachment: signature.asc
Description: PGP signature


reply via email to

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