From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#14476: 24.3; mapping newline in buffer-display-table confuses posn-at-point Date: Mon, 27 May 2013 19:56:41 +0300 Message-ID: <83obbwpdiu.fsf@gnu.org> References: <8761y5aji6.fsf@kafka.loc> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1369673819 11901 80.91.229.3 (27 May 2013 16:56:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 May 2013 16:56:59 +0000 (UTC) Cc: 14476-done@debbugs.gnu.org To: Jonas =?UTF-8?Q?H=C3=B6rsch?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 27 18:56:58 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uh0jB-00080m-VE for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 May 2013 18:56:58 +0200 Original-Received: from localhost ([::1]:36805 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uh0jB-0006mL-Iw for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 May 2013 12:56:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uh0j7-0006mG-7I for bug-gnu-emacs@gnu.org; Mon, 27 May 2013 12:56:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uh0j3-0000dq-U2 for bug-gnu-emacs@gnu.org; Mon, 27 May 2013 12:56:53 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uh0j3-0000di-QT for bug-gnu-emacs@gnu.org; Mon, 27 May 2013 12:56:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Uh0kE-0000aA-Dz for bug-gnu-emacs@gnu.org; Mon, 27 May 2013 12:58:02 -0400 Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 May 2013 16:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 14476 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 14476@debbugs.gnu.org, eliz@gnu.org, coroa@online.de Original-Received: via spool by 14476-done@debbugs.gnu.org id=D14476.13696738752212 (code D ref 14476); Mon, 27 May 2013 16:58:02 +0000 Original-Received: (at 14476-done) by debbugs.gnu.org; 27 May 2013 16:57:55 +0000 Original-Received: from localhost ([127.0.0.1]:36682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Uh0k6-0000Za-Nk for submit@debbugs.gnu.org; Mon, 27 May 2013 12:57:55 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:54539) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Uh0k4-0000ZI-5m for 14476-done@debbugs.gnu.org; Mon, 27 May 2013 12:57:53 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MNG00700V16WD00@a-mtaout20.012.net.il> for 14476-done@debbugs.gnu.org; Mon, 27 May 2013 19:56:32 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MNG006ORV28CZY0@a-mtaout20.012.net.il>; Mon, 27 May 2013 19:56:32 +0300 (IDT) In-reply-to: <8761y5aji6.fsf@kafka.loc> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74601 Archived-At: > From: Jonas H=F6rsch > Date: Sun, 26 May 2013 16:44:17 +0200 >=20 > this bug ultimately leads to hard to understand column jumping in > buffers where whitespace.el is active (and whitespace-style include= s > newline-mark).=20 >=20 > a small show case is provided by the following three expressions. t= he > first two set it up. the third is to demonstrate the bug. tested in > emacs 24.3.1 started with emacs -Q. >=20 >=20 > (setq buffer-display-table (make-display-table)) > (aset buffer-display-table ?\n [?$ ?\n]) > (car (posn-x-y (posn-at-point))) >=20 >=20 > ;; C-x C-e with point on the empty line right above this comment wi= ll > ;; 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) wil= l > ;; leave point in column 1 instead of column 0 Fixed in revision 112745 on the trunk. Thanks.