[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Add a function to test for invisible characters?
From: |
ken manheimer |
Subject: |
Re: Add a function to test for invisible characters? |
Date: |
Mon, 23 Jun 2008 16:21:29 -0400 |
On Mon, Jun 23, 2008 at 3:34 PM, Lennart Borgman (gmail)
<address@hidden> wrote:
> Lennart Borgman (gmail) wrote:
>>
>> Stefan Monnier wrote:
>>>>
>>>> I asked some time ago if a function to test if a character is
>>>> invisible. I think nothing has been done to this, or am I mistaken?
>>>
>>> It's called `invisible-p'.
>>
>>
>> Ah, thanks, there it is. Very nice.
>
> I grepped for "'invisible" to see if there were any places where this
> should/could be used. In some cases I do not understand what should be done.
> For example allout.el has
>
> (defsubst allout-hidden-p (&optional pos)
> "Non-nil if the character after point is invisible."
> (eq (get-char-property (or pos (point)) 'invisible) 'allout))
>
> However here are a some that I think maybe should use invisible-p or perhaps
> test a little bit more careful:
> [...]
i think you inferred correctly that i deliberately didn't use
invisible-p. that's because i needed to detect points that are hidden
specifically by allout, not for some other purpose. i guess i the
docstring should be clearer about that.
--
ken
http://myriadicity.net