From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Toru TSUNEYOSHI Newsgroups: gmane.emacs.devel Subject: Re: linum.el: problem (bug ?) fix and improvement Date: Fri, 13 May 2011 21:14:20 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1305289825 14185 80.91.229.12 (13 May 2011 12:30:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 13 May 2011 12:30:25 +0000 (UTC) Cc: emacs-devel@gnu.org To: monnier@iro.umontreal.ca Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 13 14:30:21 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QKrVX-0001iq-8G for ged-emacs-devel@m.gmane.org; Fri, 13 May 2011 14:30:15 +0200 Original-Received: from localhost ([::1]:60160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKrGo-0007Ip-GZ for ged-emacs-devel@m.gmane.org; Fri, 13 May 2011 08:15:02 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKrGm-0007Ig-8g for emacs-devel@gnu.org; Fri, 13 May 2011 08:15:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKrGk-0008Fq-Oe for emacs-devel@gnu.org; Fri, 13 May 2011 08:15:00 -0400 Original-Received: from blu0-omc4-s19.blu0.hotmail.com ([65.55.111.158]:22088) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKrGk-0008Fb-MY for emacs-devel@gnu.org; Fri, 13 May 2011 08:14:58 -0400 Original-Received: from BLU0-SMTP4 ([65.55.111.135]) by blu0-omc4-s19.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 13 May 2011 05:14:57 -0700 X-Originating-IP: [210.253.252.181] X-Originating-Email: [t_tuneyosi@hotmail.com] Original-Received: from localhost ([210.253.252.181]) by BLU0-SMTP4.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Fri, 13 May 2011 05:14:55 -0700 In-Reply-To: X-Mailer: Mew version 6.3.50 on Emacs 23.3 / Mule 6.0 (HANACHIRUSATO) X-OriginalArrivalTime: 13 May 2011 12:14:56.0775 (UTC) FILETIME=[5F75A170:01CC1167] X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+ X-Received-From: 65.55.111.158 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:139350 Archived-At: From: Stefan Monnier Subject: Re: linum.el: problem (bug ?) fix and improvement Date: Thu, 12 May 2011 10:58:58 -0300 Message-ID: >> Additionally, I improved about invisible buffer string. > >> the attached file: "linum-mode.el.2.diff" >> (including the above bug fix.) > >> (1) Indicating invisible line(s) by an underlined line number >> when the following line(s) is/are invisible. > >> ==================================================================== >> _1_ abc <= underline >> 3 ghi >> 4 jkl >> ==================================================================== > >> (2) Indicating partial invisible string by a `strike-through' line >> number when the line has partial invisible string. > >> ==================================================================== >> _1_ abc >> 3 ghi >> 4 jkl > >> Make the 3rd line ("hi") invisible partially. > >> _1_ abc >> -3- g <= strike-through >> 4 jkl > >> Make the 1st line ("ab") invisible partially. > >> -_1_- c <= underline and strike-through >> -3- g >> 4 jkl >> ==================================================================== > > Could you describe the context in which you've needed such a thing? > The strike-through info seems to be redundant with the fact that the > next line number is not the immediate successor, and I wonder when you'd > be so interested in knowing if there's some hidden text on > a particular line. > > > Stefan > Thanks for your replying. I have a case that I make unimportant text invisible temporarily, to know only important information. However, I sometimes want to check the unimportant (invisible) text. Then, the strike-through info tell me the text place (by the line number). Example: ==================================================================== In buffer (linum-mode is enabled). 1 2000-01-01 abc 2 2003-12-01 21:00:00 def 3 2005-07-21 01:23:45 ghi 4 2010-05-24 jkl 5 2011-05-13 12:34:56 mno I want to know only the day and make the time invisible temporarily. 1 2000-01-01 abc -2- 2003-12-01 def -3- 2005-07-21 ghi 4 2010-05-24 jkl -5- 2011-05-13 mno (Now, I can know that 2nd, 3rd and 5th lines have the time by the strike-through info.) If I want to know the time of today, then I make the time visible. 1 2000-01-01 abc -2- 2003-12-01 def -3- 2005-07-21 ghi 4 2010-05-24 jkl 5 2011-05-13 12:34:56 mno ====================================================================