[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
The magical custom buffer read-only
From: |
Lennart Borgman (gmail) |
Subject: |
The magical custom buffer read-only |
Date: |
Tue, 18 Mar 2008 01:00:51 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 |
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?
- The magical custom buffer read-only,
Lennart Borgman (gmail) <=