From: Jambunathan K <kjambunathan@gmail.com>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Inhibiting read-only
Date: Wed, 19 Jun 2013 21:54:04 +0530 [thread overview]
Message-ID: <87a9mm83x7.fsf@gmail.com> (raw)
In-Reply-To: <CAAeL0SRwDfFV_mWfWmWR4SheTcrs0+FEW40EOrjUCB8SXsSgPg@mail.gmail.com> (Juanma Barranquero's message of "Wed, 19 Jun 2013 18:10:41 +0200")
Juanma Barranquero <lekktu@gmail.com> writes:
> On Wed, Jun 19, 2013 at 6:07 PM, Jambunathan K <kjambunathan@gmail.com> wrote:
>
>> inhibit-read-only can be a list.
>
> Yes, but if I'm reading correctly the documentation
>
> -- Variable: inhibit-read-only
> If this variable is non-`nil', then read-only buffers and,
> depending on the actual value, some or all read-only characters
> may be modified. Read-only characters in a buffer are those that
> have a non-`nil' `read-only' text property. *Note Special
> Properties::, for more information about text properties.
>
> setting it to a list (or any non-nil value) will also have the effect
> of allowing writting in read-only-buffers.
Look at the last line of the docstring.
You selectively inhibit the some read only properties.
inhibit-read-only:read-only::buffer-invisibility-spec:invisible.
,----[ C-h v inhibit-read-only RET ]
| inhibit-read-only is a variable defined in `C source code'.
| Its value is nil
|
| Documentation:
| Non-nil means disregard read-only status of buffers or characters.
| If the value is t, disregard `buffer-read-only' and all `read-only'
| text properties. If the value is a list, disregard `buffer-read-only'
| and disregard a `read-only' text property if the property value
| is a member of the list.
|
| [back]
`----
Mark editable fields with (... 'readonly 'editable).
Now to make those fields editable, you push 'editable to
inhibit-read-only.
By properly making the newly inserted characters having right stickiness
it should be possible to make forms selectively editable.
> J
next prev parent reply other threads:[~2013-06-19 16:24 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-19 15:49 Inhibiting read-only Lars Magne Ingebrigtsen
2013-06-19 16:06 ` Juanma Barranquero
2013-06-19 16:07 ` Jambunathan K
2013-06-19 16:10 ` Juanma Barranquero
2013-06-19 16:24 ` Jambunathan K [this message]
2013-06-19 16:29 ` Lars Magne Ingebrigtsen
2013-06-19 17:17 ` Jambunathan K
2013-06-19 16:30 ` Juanma Barranquero
2013-06-19 16:48 ` Jambunathan K
2013-06-19 16:49 ` Juanma Barranquero
2013-06-19 17:11 ` Lars Magne Ingebrigtsen
2013-06-19 17:16 ` Juanma Barranquero
2013-06-19 19:32 ` Lars Magne Ingebrigtsen
2013-06-19 17:44 ` Jambunathan K
2013-06-19 19:50 ` James Cloos
2013-06-19 20:16 ` Lars Magne Ingebrigtsen
2013-06-19 21:29 ` James Cloos
2013-06-19 20:25 ` Stefan Monnier
2013-06-20 8:44 ` Lars Magne Ingebrigtsen
2013-06-20 9:11 ` Andreas Schwab
2013-06-20 9:16 ` Lars Magne Ingebrigtsen
2013-06-20 15:56 ` Eli Zaretskii
2013-06-20 15:59 ` Lars Magne Ingebrigtsen
2013-06-20 17:04 ` Eli Zaretskii
2013-06-20 17:09 ` Lars Magne Ingebrigtsen
2013-06-20 17:45 ` Eli Zaretskii
2013-06-20 17:58 ` Lars Magne Ingebrigtsen
2013-06-20 18:18 ` Eli Zaretskii
2013-06-21 6:33 ` Stephen J. Turnbull
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a9mm83x7.fsf@gmail.com \
--to=kjambunathan@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=lekktu@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.