From: Damien Cassou <damien@cassou.me>
To: Nicolas Petton <nicolas@petton.fr>, 26417@debbugs.gnu.org
Subject: bug#26417: 25.2; Add current-line in simple.el
Date: Wed, 12 Apr 2017 10:52:47 +0200 [thread overview]
Message-ID: <87wpaq57og.fsf@cassou.me> (raw)
In-Reply-To: <87a87m2fk2.fsf@petton.fr>
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?
- line-number-at-pos-absolute
- current-absolute-line
--
Damien Cassou
http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill
next prev parent reply other threads:[~2017-04-12 8:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-09 10:53 bug#26417: 25.2; Add current-line in simple.el Damien Cassou
2017-04-12 8:30 ` Nicolas Petton
2017-04-12 8:52 ` Damien Cassou [this message]
2017-04-20 9:03 ` Nicolas Petton
2017-05-03 11:11 ` Damien Cassou
2017-05-03 14:37 ` Nicolas Petton
2017-05-03 15:38 ` Damien Cassou
2017-05-03 16:07 ` Nicolas Petton
2017-05-23 10:30 ` Damien Cassou
2017-06-16 13:46 ` Damien Cassou
2017-06-16 14:30 ` Nicolas Petton
2017-06-19 9:19 ` Nicolas Petton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wpaq57og.fsf@cassou.me \
--to=damien@cassou.me \
--cc=26417@debbugs.gnu.org \
--cc=nicolas@petton.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.