Lisp HUG Maillist Archive

How to scroll disabled editor panes?

Hi!

My "Regex Coach" application[1] uses a couple of editor panes to
display data. They have to be editor panes because I use
EDITOR::PUSH-REGION-FACE to colorize them partly. Because the user is
not supposed to edit the contents of these panes I've initialized them
with :ENABLED NIL but it turns out that with this option you can't
scroll anymore... :(

Is there a way to have the cake and eat it too, i.e. to disable the
editor panes but enable the user to scroll the contents?

Thanks,
Edi.

[1] <http://weitz.de/regex-coach/>


Re: How to scroll disabled editor panes?

Unable to parse email body. Email id is 1070

Re: How to scroll disabled editor panes?

David Fox <davef@xanalys.com> writes:

>  (setf (editor:buffer-writable (capi:editor-pane-buffer ep)) nil)

Great! That works like a charm. Thanks for the quick reply.

>  (loop for i below 30 
>        collect "We are both working too late Edi")

That's most likely correct... :)

Thanks again,
Edi.


Updated at: 2020-12-10 09:00 UTC