From: Eli Zaretskii <eliz@gnu.org>
To: "Jonas Hörsch" <coroa@online.de>
Cc: 14476-done@debbugs.gnu.org
Subject: bug#14476: 24.3; mapping newline in buffer-display-table confuses posn-at-point
Date: Mon, 27 May 2013 19:56:41 +0300 [thread overview]
Message-ID: <83obbwpdiu.fsf@gnu.org> (raw)
In-Reply-To: <8761y5aji6.fsf@kafka.loc>
> From: Jonas Hörsch <coroa@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.
prev parent reply other threads:[~2013-05-27 16:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-26 14:44 bug#14476: 24.3; mapping newline in buffer-display-table confuses posn-at-point Jonas Hörsch
2013-05-27 16:56 ` Eli Zaretskii [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83obbwpdiu.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=14476-done@debbugs.gnu.org \
--cc=coroa@online.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.