[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: invisible text and navigation commands
From: |
Stefan Monnier |
Subject: |
Re: invisible text and navigation commands |
Date: |
Mon, 02 Oct 2017 20:44:22 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> I just wanted to know if Emacs already has some variable like
> `ignore-invisible-text-when-moving' which I could just bind to t in my
> mode and be done.
It kind of does, but it's already t by default. It's just that it
doesn't quite do what you want, because what you want can't be done in
a generic way easily. Movement normally works on the buffer text,
whereas in your case to make sense you'd want to work in terms of
displayed text.
BTW, you can get what you want by *deleting* the text instead of marking
it invisible ;-)
Stefan