GNU bug report logs -
#60692
29.0.60; current-indentation wrong without outline ellipsis
Previous Next
Full log
View this message in rfc822 format
> If you've read the discussion of bug#56837, then I explained there why
> this is how it is. In a nutshell, indentation is regarded as
> display-related aspect, so asking about indentation of invisible text
> makes no sense.
But when an ellipsis is used, current-indentation
works correctly in invisible text.
>> (setq-local outline-level
>> (lambda ()
>> "`outline-level' function for Python mode."
>> (1+ (/ (current-indentation) python-indent-offset))))
>>
>> (setq-local outline-level (lambda () (1+ (/ (current-indentation)
>> ruby-indent-level))))
>>
>> But this fails when users want to remove an ellipsis.
>
> I'm surprised the indentation is used for this purpose when it is
> known that text will be sometimes hidden. May I suggest to use text
> properties for this purpose?
I don't understand how text properties could be used to get
the indentation.
This bug report was last modified 2 years and 158 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.