From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: display.texi: (,) isn't documented. Date: Wed, 6 Jun 2007 00:19:47 +0100 Message-ID: <20070605231947.GA2058@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1181080506 29159 80.91.229.12 (5 Jun 2007 21:55:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Jun 2007 21:55:06 +0000 (UTC) Cc: "Kim F. Storm" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 05 23:55:05 2007 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.50) id 1HvgzY-0002Hb-K7 for ged-emacs-devel@m.gmane.org; Tue, 05 Jun 2007 23:55:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvgzX-0007Om-Rn for ged-emacs-devel@m.gmane.org; Tue, 05 Jun 2007 17:55:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvgzU-0007OX-8R for emacs-devel@gnu.org; Tue, 05 Jun 2007 17:55:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvgzR-0007Nt-9u for emacs-devel@gnu.org; Tue, 05 Jun 2007 17:54:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvgzR-0007Nq-56 for emacs-devel@gnu.org; Tue, 05 Jun 2007 17:54:57 -0400 Original-Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvgzQ-0004QO-Hr for emacs-devel@gnu.org; Tue, 05 Jun 2007 17:54:56 -0400 Original-Received: (qmail 41039 invoked by uid 3782); 5 Jun 2007 21:54:51 -0000 Original-Received: from acm.muc.de (p54A3D8C3.dip.t-dialin.net [84.163.216.195]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Tue, 05 Jun 2007 23:54:49 +0200 Original-Received: (qmail 2295 invoked by uid 1000); 5 Jun 2007 23:19:47 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-kernel: FreeBSD 4.6-4.9 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:72297 Archived-At: Hi, Emacs! When one of line-number-mode and column-number-mode is enabled, you see either "L561" or "C2" in the mode line. When both are enabled, you see instead "(561,2)". This isn't documented in the Emacs manual page "Optional Mode Line". I'm not sure what's so good about this, since "(561,2)" needs just as much space as "L561 C2" and seems less consistent. However, I'm assuming this was knocked about on emacs-devel all these years ago, and there was a good reason for "(561,2)". So here's a patch (intended for Emacs 22.2 as well as the trunk) to fix this: 2007-06-06 Alan Mackenzie * display.texi (Optional Mode Line): Document the new form of line+column numbers, "(561,2)". Index: display.texi =================================================================== RCS file: /cvsroot/emacs/emacs/man/display.texi,v retrieving revision 1.130 diff -c -r1.130 display.texi *** display.texi 23 Apr 2007 14:39:40 -0000 1.130 --- display.texi 5 Jun 2007 21:52:22 -0000 *************** *** 922,929 **** Number mode is enabled. Use the command @kbd{M-x line-number-mode} to turn this mode on and off; normally it is on. The line number appears after the buffer percentage @var{pos}, with the letter @samp{L} to ! indicate what it is. @xref{Minor Modes}, for more information about ! minor modes and about how to use this command. @cindex narrowing, and line number display If you have narrowed the buffer (@pxref{Narrowing}), the displayed --- 922,939 ---- Number mode is enabled. Use the command @kbd{M-x line-number-mode} to turn this mode on and off; normally it is on. The line number appears after the buffer percentage @var{pos}, with the letter @samp{L} to ! indicate what it is. ! ! @cindex Column Number mode ! @cindex mode, Column Number ! @findex column-number-mode ! Similarly, you can display the current column number by turning on ! Column number mode with @kbd{M-x column-number-mode}. The column ! number is indicated by the letter @samp{C}. However, when both of ! these modes are enabled, the line and column numbers are displayed in ! parentheses, the line number first, rather than with @samp{L} and ! @samp{C}. For example: @samp{(561,2)}. @xref{Minor Modes}, for more ! information about minor modes and about how to use these commands. @cindex narrowing, and line number display If you have narrowed the buffer (@pxref{Narrowing}), the displayed *************** *** 946,958 **** @code{line-number-display-limit-width}. The default value is 200 characters. - @cindex Column Number mode - @cindex mode, Column Number - @findex column-number-mode - You can also display the current column number by turning on Column - Number mode. It displays the current column number preceded by the - letter @samp{C}. Type @kbd{M-x column-number-mode} to toggle this mode. - @findex display-time @cindex time (on mode line) Emacs can optionally display the time and system load in all mode --- 956,961 ---- -- Alan Mackenzie (Ittersbach, Germany).