From debbugs-submit-bounces@debbugs.gnu.org Sun May 26 10:46:00 2013 Received: (at submit) by debbugs.gnu.org; 26 May 2013 14:46:00 +0000 Received: from localhost ([127.0.0.1]:35624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UgcCt-0006OY-9Z for submit@debbugs.gnu.org; Sun, 26 May 2013 10:45:59 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51257) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UgcCm-0006Nj-6f for submit@debbugs.gnu.org; Sun, 26 May 2013 10:45:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UgcBX-0002hx-Eg for submit@debbugs.gnu.org; Sun, 26 May 2013 10:44:39 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:52956) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgcBX-0002ht-Bm for submit@debbugs.gnu.org; Sun, 26 May 2013 10:44:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgcBS-0000Lb-5X for bug-gnu-emacs@gnu.org; Sun, 26 May 2013 10:44:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UgcBN-0002ge-Vn for bug-gnu-emacs@gnu.org; Sun, 26 May 2013 10:44:30 -0400 Received: from mail-ee0-f54.google.com ([74.125.83.54]:65033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgcBN-0002gL-PX for bug-gnu-emacs@gnu.org; Sun, 26 May 2013 10:44:25 -0400 Received: by mail-ee0-f54.google.com with SMTP id e50so3491373eek.41 for ; Sun, 26 May 2013 07:44:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:user-agent:date:message-id:mime-version :content-type; bh=5WGLHpa90wixtC4iSE++jBppu+z7hW4D3dIaJFs0TUw=; b=PsbwaXFphpAvlNmCXOYmACpZVbdqSAYiV1dkU0Nu3NJPWenfjPG/bHshKtlWSHDwWO txXdv4raLky/Su1Zwz58ELxnlwzaPb3ODjz9M0sb20AcXmH5hPRrCAiiJeqXjNb07B8c HAAA/kOdkRthrHV4MhauQRCNyk0EsKzvBJxr70PYlolKhj1VBUO9vnL1Q/VRMfYTHdaB WMUzzVE3y70zlBxh5AHykgRGgIdxvzZBiOEIGoRULfSfgBG6j+w7HbTz0aSfV5uGsktS ZIei8qvfSPvMWMEyfJ1w2jmVz4uzSb1numEPvPQ+KGIcFzpQP7Ca2G7QyfY7jMdTmdqY y9OQ== X-Received: by 10.15.48.129 with SMTP id h1mr6328925eew.65.1369579464368; Sun, 26 May 2013 07:44:24 -0700 (PDT) Received: from kafka.loc (dslb-178-005-010-240.pools.arcor-ip.net. [178.5.10.240]) by mx.google.com with ESMTPSA id h49sm3644372eew.7.2013.05.26.07.44.21 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 26 May 2013 07:44:22 -0700 (PDT) From: Jonas =?utf-8?Q?H=C3=B6rsch?= To: bug-gnu-emacs@gnu.org Subject: 24.3; mapping newline in buffer-display-table confuses posn-at-point User-Agent: Notmuch/0.15.2 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-unknown-linux-gnu) Date: Sun, 26 May 2013 16:44:17 +0200 Message-ID: <8761y5aji6.fsf@kafka.loc> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) 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 for any questions or comments feel free to ask away, jonas In GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.14) of 2013-05-01 on localhost Windowing system distributor `The X.Org Foundation', version 11.0.11204000 Configured using: `configure '--disable-dependency-tracking' '--prefix=/nix/store/jrw95x1nly7xghf5d7kx1xsvl9116b6c-emacs-24.3' '--with-x-toolkit=gtk' '--with-xft' '--with-crt-dir=/nix/store/zpr8jdx10napidkyz62f3nzl5fm87jyr-glibc-2.17/lib'' Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: (only . t) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... #^[nil nil display-table nil nil nil nil nil nil nil nil nil ...] [36 10] 8 [2 times] Type C-x 1 to delete the help window. Quit Saving file /home/coroa/test-case.el... Wrote /home/coroa/test-case.el Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-fns disp-table help-mode easymenu time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Mon May 27 12:57:55 2013 Received: (at 14476-done) by debbugs.gnu.org; 27 May 2013 16:57:55 +0000 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 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 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) 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) Date: Mon, 27 May 2013 19:56:41 +0300 From: Eli Zaretskii Subject: Re: bug#14476: 24.3; mapping newline in buffer-display-table confuses posn-at-point In-reply-to: <8761y5aji6.fsf@kafka.loc> To: Jonas =?iso-8859-1?Q?H=F6rsch?= Message-id: <83obbwpdiu.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: QUOTED-PRINTABLE X-012-Sender: halo1@inter.net.il References: <8761y5aji6.fsf@kafka.loc> X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 14476-done Cc: 14476-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) > 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. From unknown Mon Aug 18 15:38:38 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 25 Jun 2013 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator