From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.devel Subject: display bug for empty lines in recent git snapshot Date: Wed, 17 Nov 2010 10:10:17 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1289985072 30876 80.91.229.12 (17 Nov 2010 09:11:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 17 Nov 2010 09:11:12 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 17 10:11:06 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PIe2k-0007xn-J4 for ged-emacs-devel@m.gmane.org; Wed, 17 Nov 2010 10:11:06 +0100 Original-Received: from localhost ([127.0.0.1]:42217 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIe2j-0005oF-4s for ged-emacs-devel@m.gmane.org; Wed, 17 Nov 2010 04:11:05 -0500 Original-Received: from [140.186.70.92] (port=46826 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIe2S-0005ne-Cr for emacs-devel@gnu.org; Wed, 17 Nov 2010 04:10:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIe2N-0001AS-Nb for emacs-devel@gnu.org; Wed, 17 Nov 2010 04:10:45 -0500 Original-Received: from igloo.linux.gr ([62.1.205.36]:48683) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PIe2N-00019w-8T for emacs-devel@gnu.org; Wed, 17 Nov 2010 04:10:43 -0500 X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.5, required 5, autolearn=not spam, ALL_TRUSTED -1.00, BAYES_05 -0.50) X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-ID: oAH9AH87000490 Original-Received: from gkeramidas-glaptop.linux.gr ([74.125.57.36]) (authenticated bits=0) by igloo.linux.gr (8.14.3/8.14.3/Debian-9.4) with ESMTP id oAH9AH87000490 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 17 Nov 2010 11:10:24 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:132772 Archived-At: I've compiled a new snapshot of Emacs after a few weeks from the git mirror at git://repo.or.cz/emacs.git and noticed that there's now a display bug with empty lines. The latest snapshot I compiled was last afternoon, from: commit 30286b8e4b37619c8d6bf5bc01840606f26d9cf7 Author: Adrian Robert Date: Tue Oct 26 16:20:00 2010 +0300 * term/ns-win.el (ns-new-frame, ns-show-prefs): Don't add to global map. * term/common-win.el (x-setup-function-keys): Remove most of the keymappings. Comment on the remaining ones. When a file contains only the following: > cat -vte foo.txt foo$ $ bar$ > Moving the point to the beginning of the second line displays the following in my emacs -nw sessions: ,----------------------------------------------------------- |foo | # |bar | |-UU-:**--F1 foo.txt All (2,0) (Text) ----- | `----------------------------------------------------------- Emacs obviously thinks that point is at (2, 0) but moves the terminal cursor to the _second_ column instead of the first, at the location of the '#' character in the output shown above. This only happens for empty lines, so I'm guessing it's something related to the calculation of line length? I will try to go backwards in the commit history of the last 1-2 months to see when this first started happening, but in the meantime I thought I should report this here too. This is all tested with... In GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2010-11-16 on gkeramidas-glaptop configured using `configure '--prefix=/opt/emacs' '--infodir=/opt/emacs/info'' Important settings: value of $LC_ALL: el_GR.utf8 value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: el_GR.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Text Minor modes in effect: iswitchb-mode: t cua-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC [ > 8 3 ; 4 0 0 0 3 ; 0 c f o o RET RET b a r RET ESC O A ESC O A ESC x r e p o r t - b u TAB RET Recent messages: ("/opt/emacs/bin/emacs" "foo.txt") Ido mode disabled Loading vc...done For information about GNU Emacs and the GNU system, type C-a. (New file) Loading vc-git...done Loading vc-hg...done Auto-saving...done Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr message sendmail rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader warnings emacsbug vc-hg vc-git .emacs jka-compr keramida-slime keramida-defaults vc vc-dispatcher uniquify advice help-fns advice-preload ido paren iswitchb cua-base hl-line keramida-hooks keramida-autoload keramida-lang keramida-keys edmacro kmacro keramida-ui bbdb regexp-opt timezone disp-table tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe 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 loaddefs button minibuffer faces cus-face files text-properties overlay 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)