From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Suggestions for mode-line-format changes Date: 21 Aug 2002 02:25:57 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <5xbs7xhxbe.fsf@kfs2.cua.dk> References: <5xk7mlfsvf.fsf@kfs2.cua.dk> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1029885984 11666 127.0.0.1 (20 Aug 2002 23:26:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 20 Aug 2002 23:26:24 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17hIOF-000322-00 for ; Wed, 21 Aug 2002 01:26:23 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17hIqN-00019F-00 for ; Wed, 21 Aug 2002 01:55:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17hIPK-0006mA-00; Tue, 20 Aug 2002 19:27:30 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17hINZ-0006fW-00 for emacs-devel@gnu.org; Tue, 20 Aug 2002 19:25:41 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17hINU-0006f6-00 for emacs-devel@gnu.org; Tue, 20 Aug 2002 19:25:40 -0400 Original-Received: from mail.filanet.dk ([195.215.206.179]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17hINU-0006ev-00 for emacs-devel@gnu.org; Tue, 20 Aug 2002 19:25:36 -0400 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id DBDDE7C016 for ; Tue, 20 Aug 2002 23:25:29 +0000 (GMT) Original-To: emacs-devel@gnu.org In-Reply-To: <5xk7mlfsvf.fsf@kfs2.cua.dk> Original-Lines: 63 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6692 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6692 I wrote: > Now that the mode-line-position information has been moved > from the end of the mode line, and vc-mode is moved there too, > the space between the buffer name and the mode-line-modes > has become pretty crowded. > Actually, I think the new position of "mode-line-position" in the mode line is a drawback compared to the former position at the end of the mode line! Try turning on column-number-mode, goto to the first line of a non-empty buffer and hold down the right arrow key to advance through the characters and lines of the buffer. Notice how the mode line information to the right of the mode-line-position starts jumping forth and back when the column goes from 9 to 10 and from the end of line column back to 0. Likewise, if you just start writing in the buffer, the same jumpyness is seen in the mode line as you enter the 10th character of a line and you press RET. IMO, this is really, really annoying. I never saw any such jumpyness with the old position. I liked the old position better, but if we want to keep it in the new position, I think padding of the whole mode-line-position [specified inside mode-line-position itself, of course] should be added. Using my suggested format, I tried to add padding like this: (setq-default mode-line-position '((15 (-3 . "%p") " (%l,%c)"))) but this doesn't work as the entire padding is done to the end of the %p part. I then tried (setq-default mode-line-position '((15 "" (-3 . "%p") " (%l,%c)"))) but then the "" is padded to 15 spaces which doesn't help either. The following works by padding at the end of the combined string, but then the "Bottom" string isn't truncated to "Bot": (setq-default mode-line-position '((15 "%p (%l,%c)"))) It seems that it doesn't work to combine padding and trunction like (15 (-3 ...) ...) That's a bug IMO. -- Kim F. Storm http://www.cua.dk