GNU bug report logs -
#36970
26.2; invalid-read-syntax could print the location of the error
Previous Next
Reported by: ndame <emacsuser <at> freemail.hu>
Date: Thu, 8 Aug 2019 08:29:01 UTC
Severity: wishlist
Tags: fixed
Found in version 26.2
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: emacsuser <at> freemail.hu, 36970 <at> debbugs.gnu.org
> Date: Mon, 01 Feb 2021 09:40:07 +0100
>
> nlines = display_count_lines (startpos_byte,
> PT_BYTE, PT, &junk);
>
> So I guess I should just put the prototype in lisp.h and use it?
Yes (and make it non-static). Alternatively, define a wrapper for it
that doesn't accept that last arg, and make _that_ wrapper extern and
more suitably named.
> (It's kinda surprising that no other part of Emacs has felt the need
> to compute a line number before...)
Emacs almost never counts lines, except for 2 display features: the
line-number display in the mode line and display-line-numbers-mode.
The buffer-with-gap paradigm makes a point of not knowing where each
line ends and how many lines are there.
This bug report was last modified 4 years and 107 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.