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: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Sébastien Chapuis <sebastien <at> chapu.is>
Subject: bug#30834: closed (Re: bug#30834: 27.0.50; posn-at-point and
 display-line-numbers-mode)
Date: Sat, 17 Mar 2018 13:44:01 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#30834: 27.0.50; posn-at-point and display-line-numbers-mode

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 30834 <at> debbugs.gnu.org.

-- 
30834: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=30834
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Sebastien Chapuis <sebastien <at> chapu.is>
Cc: 30834-done <at> debbugs.gnu.org
Subject: Re: bug#30834: 27.0.50; posn-at-point and display-line-numbers-mode
Date: Sat, 17 Mar 2018 15:42:55 +0200
> From: Sebastien Chapuis <sebastien <at> chapu.is>
> Cc: 30834 <at> debbugs.gnu.org
> Date: Sat, 17 Mar 2018 13:59:10 +0100
> 
> 
> Eli Zaretskii writes:
> 
> >> From: Sébastien Chapuis <sebastien <at> chapu.is>
> >> Date: Fri, 16 Mar 2018 11:45:43 +0100
> >>
> >> When display-line-numbers-mode is on and the (point) is on the
> >> beginning of line, posn-at-point returns a wrong value.
> >
> > Thanks, should be fixed now on the master branch.
> 
> Thanks, it works now.

OK, thanks for testing.  I'm therefore closing the bug report.

[Message part 3 (message/rfc822, inline)]
From: Sébastien Chapuis <sebastien <at> chapu.is>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; posn-at-point and display-line-numbers-mode
Date: Fri, 16 Mar 2018 11:45:43 +0100
Hi,

When display-line-numbers-mode is on and the (point) is on the
beginning of line, posn-at-point returns a wrong value.

Reproducible in emacs -Q:

```
(save-excursion
  (message "Without display-line-numbers:")
  (display-line-numbers-mode -1)
  (goto-char (line-beginning-position))
  (message "column 0: %s" (car (nth 2 (posn-at-point))))
  (forward-char)
  (message "column 1: %s" (car (nth 2 (posn-at-point))))
  (message "With display-line-numbers:")
  (display-line-numbers-mode)
  (goto-char (line-beginning-position))
  (message "column 0: %s" (car (nth 2 (posn-at-point))))
  (forward-char)
  (message "column 1: %s" (car (nth 2 (posn-at-point))))
  )
```

Output:
```
Without display-line-numbers:
column 0: 0
column 1: 19
With display-line-numbers:
column 0: 0
column 1: 114
```

On the bol, it returns zero but it should return (- 114 19)


In GNU Emacs 27.0.50 (build 6, x86_64-pc-linux-gnu, GTK+ Version 3.22.26)
 of 2018-03-13 built on XPS13
Repository revision: ae80854e9a9f8f6733870b5b5a88467867dceb6c
Windowing system distributor 'Fedora Project', version 11.0.11906000
System Description: Fedora 27 (Twenty Seven)

Configured using:
 'configure --prefix=/opt/emacs-git --with-modules --with-xwidgets
 --with-imagemagick CC=clang'

--
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.