diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-02-07 16:42:25 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-02-07 16:42:25 +0100 |
commit | 5461808c40ea5baeade203c0a4cc8200855eb00c (patch) | |
tree | c887c1f9208df20d15fba00ae196ef774ce483d7 | |
parent | 56e76f0eb00d92b49ddd5757d0a68d09dc522d39 (diff) | |
download | emacs-5461808c40ea5baeade203c0a4cc8200855eb00c.tar.gz |
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).
-rw-r--r-- | src/fns.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fns.c b/src/fns.c index d27f63222c4..02743c62a57 100644 --- a/src/fns.c +++ b/src/fns.c @@ -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 { |