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: ruler support in hexl mode Date: 19 Mar 2004 11:06:07 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20040305.142915.63122255.jet@gyve.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1079687467 8638 80.91.224.253 (19 Mar 2004 09:11:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Mar 2004 09:11:07 +0000 (UTC) Cc: jet@gyve.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Mar 19 10:10:59 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B4G1r-0002HG-00 for ; Fri, 19 Mar 2004 10:10:59 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B4G1r-0003BI-01 for ; Fri, 19 Mar 2004 10:10:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B4FyK-0007eC-DT for emacs-devel@quimby.gnus.org; Fri, 19 Mar 2004 04:07:20 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B4Fy5-0007d6-Gb for emacs-devel@gnu.org; Fri, 19 Mar 2004 04:07:05 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B4FxZ-0007Wr-6O for emacs-devel@gnu.org; Fri, 19 Mar 2004 04:07:04 -0500 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.30) id 1B4FxY-0007Wa-K3 for emacs-devel@gnu.org; Fri, 19 Mar 2004 04:06:32 -0500 Original-Received: (qmail 38059 invoked from network); 19 Mar 2004 09:06:26 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 19 Mar 2004 09:06:26 -0000 Original-To: rms@gnu.org In-Reply-To: Original-Lines: 47 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:20600 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20600 Richard Stallman writes: > My suggestion is that (by default) :align-to in header and mode lines > should also be relative to the left edge of the text area, > e.g. :align-to 0 would align exactly to the first column of the text > area. > > certainly simpler. you cd use negative number if youreally want > a pos before the text area. so no loss of function. sounds good. > please do it. Done. To clarify: With my fixes, the default position for header and mode lines (if no :align-to is used) is still the left edge of the window (mode lines certainly expect that). With :align-to N (N is a number, also negative) you offset from the left edge of the text area. With :align-to (+ left-margin N) you offset from the left edge of the left margin. This also works in normal text rows, so you can align normal text relative to the various window "decorations" (I'm not sure when that would be useful, but it works nevertheless). To center something above the left-margin, you can use :align-to (+ left-margin (0.5 . left-margin)) You can also align relative to the right edge of the text area, e.g. 10 character positions from the right margin is specified with: :align-to (- right 10) And it works on text terminals as well! I still need to write the necessary info in NEWS and display.texi. Will do so asap. -- Kim F. Storm http://www.cua.dk