all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* The magical custom buffer read-only
@ 2008-03-18  0:00 Lennart Borgman (gmail)
  2008-03-18  9:42 ` martin rudalics
  0 siblings, 1 reply; 2+ messages in thread
From: Lennart Borgman (gmail) @ 2008-03-18  0:00 UTC (permalink / raw)
  To: Emacs Devel

Custom mode buffers are, at least partly read-only. I want to discover 
if a custom buffer is read-only at point, but I can't. I have tested

    buffer-read-only
    (get-char-property (point) 'read-only)
    (get-text-property (point) 'read-only)

and

    (command-remapping 'self-insert (point))

I think the last one should work since in custom-mode-map there is a 
remap like this:

     (define-key map [remap self-insert-command] 'Custom-no-edit)

Is this a bug or?





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

end of thread, other threads:[~2008-03-18  9:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-18  0:00 The magical custom buffer read-only Lennart Borgman (gmail)
2008-03-18  9:42 ` martin rudalics

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.