[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26417: 25.2; Add current-line in simple.el
From: |
Damien Cassou |
Subject: |
bug#26417: 25.2; Add current-line in simple.el |
Date: |
Wed, 03 May 2017 13:11:17 +0200 |
Nicolas Petton <nicolas@petton.fr> writes:
What about something like this:
(defun current-line (&optional ignore-narrowing)
...)
thanks for your suggestion. I applied it in attached patch. I'm
not sure I like it though because the simplest call:
(current-line)
is now exactly the same as (line-number-at-pos). To get a
different behavior, non-nil must be passed as argument:
(current-line t)
Nevertheless, I understand this implementation is probably the one
closest to existing API and usages.
Best,
--
Damien Cassou
http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill
0001-Add-current-line-in-simple.el.patch
Description: Text Data
- bug#26417: 25.2; Add current-line in simple.el,
Damien Cassou <=