GNU bug report logs -
#14476
24.3; mapping newline in buffer-display-table confuses posn-at-point
Previous Next
Reported by: Jonas Hörsch <coroa <at> online.de>
Date: Sun, 26 May 2013 14:46:02 UTC
Severity: normal
Found in version 24.3
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #10 received at 14476-done <at> debbugs.gnu.org (full text, mbox):
> From: Jonas Hörsch <coroa <at> online.de>
> Date: Sun, 26 May 2013 16:44:17 +0200
>
> this bug ultimately leads to hard to understand column jumping in
> buffers where whitespace.el is active (and whitespace-style includes
> newline-mark).
>
> a small show case is provided by the following three expressions. the
> first two set it up. the third is to demonstrate the bug. tested in
> emacs 24.3.1 started with emacs -Q.
>
>
> (setq buffer-display-table (make-display-table))
> (aset buffer-display-table ?\n [?$ ?\n])
> (car (posn-x-y (posn-at-point)))
>
>
> ;; C-x C-e with point on the empty line right above this comment will
> ;; return the column 8 instead of the expected column 0. this leads to
> ;; seemingly erratic behaviour in some use-cases:
> ;; entering C-a (beginning-of-line) followed by C-n (next-line) will
> ;; leave point in column 1 instead of column 0
Fixed in revision 112745 on the trunk.
Thanks.
This bug report was last modified 12 years and 75 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.