Allow Fline_number_at_pos being called with a marker
* src/fns.c (Fline_number_at_pos): Also allow being called with a marker (since the Lisp function allowed that).
This commit is contained in:
parent
56e76f0eb0
commit
5461808c40
1 changed files with 3 additions and 1 deletions
|
@ -5771,7 +5771,9 @@ from the absolute start of the buffer. */)
|
|||
{
|
||||
ptrdiff_t pos, start = BEGV;
|
||||
|
||||
if (NILP (position))
|
||||
if (MARKERP (position))
|
||||
pos = marker_position (position);
|
||||
else if (NILP (position))
|
||||
pos = PT;
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue