[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: linum.el: problem (bug ?) fix and improvement
From: |
Toru TSUNEYOSHI |
Subject: |
Re: linum.el: problem (bug ?) fix and improvement |
Date: |
Fri, 13 May 2011 21:14:20 +0900 |
From: Stefan Monnier <address@hidden>
Subject: Re: linum.el: problem (bug ?) fix and improvement
Date: Thu, 12 May 2011 10:58:58 -0300
Message-ID: <address@hidden>
>> 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
====================================================================