GNU bug report logs - #30834
27.0.50; posn-at-point and display-line-numbers-mode

Previous Next

Package: emacs;

Reported by: Sébastien Chapuis <sebastien <at> chapu.is>

Date: Fri, 16 Mar 2018 10:46:02 UTC

Severity: normal

Found in version 27.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Sebastien Chapuis <sebastien <at> chapu.is>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 30834 <at> debbugs.gnu.org
Subject: bug#30834: 27.0.50; posn-at-point and display-line-numbers-mode
Date: Fri, 16 Mar 2018 17:19:26 +0100
> In use here:
>
> (defun ar-count-lines (&optional beg end)
>   "Count lines in accessible part of buffer.
>
> See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7115"
>   (interactive)
>   (let ((beg (or beg (point-min)))
> 	(end (or end (point)))
> 	erg)
>     (if (bolp)
> 	(setq erg (1+ (count-lines beg end)))
>       (setq erg (count-lines beg end)))
>     (when (called-interactively-p 'any) (message "%s" erg))
>     erg))

Sorry, I forgot to mention that the interesting value is the X position.
Is it still related to count-lines ?

--
Sebastien Chapuis




This bug report was last modified 7 years and 146 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.