toggle-allow-edit Still Allows Edit

8 views
Skip to first unread message

Andreas Paepcke

unread,
Oct 22, 2020, 11:21:53 AM10/22/20
to Emacs+ plugin discussion

I am trying to use:

Ctrl+X Ctrl+Q runs toggle-allow-edit
    Id -com.mulgasoft.emacsplus.toggleAllowEdit
 Key Bindings
    CTRL+X CTRL+Q [org.eclipse.ui.textEditorScope]
 Description
    Allow Emacs+ extended edit commands in read-only buffers globally

... but repeated issuing of CTRL+X CTRL+Q still allows me to edit the current buffer. I use read-only mode often when examining library files to protect myself from accidentally modifying them.

Am I using the function incorrectly?
Thanks!
Andreas

Mark Feber

unread,
Oct 28, 2020, 6:40:04 PM10/28/20
to emac...@googlegroups.com
This command (whose origin and rationale may be lost in the mists of time) does not do what you expect and only loosely corresponds to the emacs command (read-only-mode) typically bound to C-x C-q.  Hence, it is not one of the documented commands.  The intent was to allow some editing functionality in buffers (not necessarily editor buffers) that were marked as read-only as a temporary convenience; but even there, the implementation is a bit buggy.

Admittedly, it would be nice to have that functionality, but back when this was implemented, I didn't have the hutzpah to take it on (while it's possible that it could be relatively simple to implement, it could also turn out badly). 

--
--
You received this message because you are subscribed to the Google
Groups "Emacs+ Eclipse Discussion" group.
To post to this group, send email to emac...@googlegroups.com
To unsubscribe from this group, send email to
emacsplus+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/emacsplus?hl=en?hl=en
 
Support Emacs+ by marking it as a 'favorite' at the Eclipse Marketplace: http://marketplace.eclipse.org/content/emacs.

---
You received this message because you are subscribed to the Google Groups "Emacs+ plugin discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emacsplus+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emacsplus/b474515a-832d-4db6-9123-03ee35836eaen%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages