all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Disable self-insert-command
@ 2019-05-17 10:59 Joost Kremers
  2019-05-17 11:17 ` Noam Postavsky
  0 siblings, 1 reply; 3+ messages in thread
From: Joost Kremers @ 2019-05-17 10:59 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I've been trying to  figure out if there's a straightforward way 
to disable all self-inserting characters through a minor mode, but 
I haven't been able to find something. Two options come to mind, 
but they both don't feel "right". One would be to simply bind all 
self-inserting characters to `ignore', which seems cumbersome and 
error-prone, however. The other option that comes to mind is 
advising `self-insert-command`, though I haven't (yet) tested 
whether that would actually work and wouldn't cause any other 
problems, given that it's a primitive function.

I guess I could also make the relevant buffer read-only, but then 
every key that's not bound to something else produces a "Buffer is 
read-only" error...

Any ideas? Anything I'm overlooking?

TIA

Joost



-- 
Joost Kremers
Life has its moments



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-17 12:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-17 10:59 Disable self-insert-command Joost Kremers
2019-05-17 11:17 ` Noam Postavsky
2019-05-17 12:54   ` Mauro Aranda

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.