From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: mode line: 1) indicate region size, if active; 2) highlight column # if > limit Date: Wed, 6 Jun 2007 11:19:05 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1181153963 30138 80.91.229.12 (6 Jun 2007 18:19:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Jun 2007 18:19:23 +0000 (UTC) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 06 20:19:20 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 1Hw06I-0001UU-IB for ged-emacs-devel@m.gmane.org; Wed, 06 Jun 2007 20:19:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hw06I-0001JD-1W for ged-emacs-devel@m.gmane.org; Wed, 06 Jun 2007 14:19:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hw06E-0001Iu-1Q for emacs-devel@gnu.org; Wed, 06 Jun 2007 14:19:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hw06C-0001Ia-G9 for emacs-devel@gnu.org; Wed, 06 Jun 2007 14:19:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hw06C-0001IX-Ay for emacs-devel@gnu.org; Wed, 06 Jun 2007 14:19:12 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hw06C-0006gK-0K for emacs-devel@gnu.org; Wed, 06 Jun 2007 14:19:12 -0400 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.186.110]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id l56IJ9S6009370 for ; Wed, 6 Jun 2007 12:19:09 -0600 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by rgmgw1.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l56IJ87G005795 for ; Wed, 6 Jun 2007 12:19:08 -0600 Original-Received: from dhcp-4op11-4op12-west-130-35-178-179.us.oracle.com by acsmt350.oracle.com with ESMTP id 2831003441181153946; Wed, 06 Jun 2007 11:19:06 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: Linux 2.4-2.6 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:72359 Archived-At: > > 3. The line and column indicator is highlighted (red, in image) when the > > cursor passes a user-defined limit. (This version still uses the > > (line#,column#) format.) > > I like this idea -- make it nice and clear when you pop over the > 70th/80th column. Could you be a bit more precise with the semantics? > i) Will it highlight just the col number if you pass the col limit, > and just the row number if you pass the row limit, and both if both, > or does it just highlight both co-ordinates when either exceeds the > limit? I think I'd prefer the former here. > ii) What does it do in the case of line-number-mode and/or > column-number-mode being off? See the code; it's pretty simple: http://www.emacswiki.org/cgi-bin/wiki/modeline-posn.el. The only intention is to highlight the column number. I see no reason for a line (i.e. row) limit, do you? Highlighting occurs when the cursor column passes a user-defined limit (a user option, with default value 70, not necessarily `fill-column'). The code I use highlights the column number indicator, if only column-number mode is on. It highlights the whole pair (line, col), if both line-number mode and column-number mode are on. It does not highlight the line number, if only line-number mode is on. Perhaps the code could be tweaked to highlight only the column number when both line number mode and column number mode are on, but I'm not bothered by the extra line-number highlighting, personally.