From: Drew Adams <drew.adams@oracle.com>
To: Kaushal Modi <kaushal.modi@gmail.com>,
Emacs developers <emacs-devel@gnu.org>
Subject: RE: [RFC] Do indent-region only on editable buffers
Date: Mon, 7 Aug 2017 10:46:57 -0700 (PDT) [thread overview]
Message-ID: <798abe90-2eb4-46e3-a897-1dc75c959880@default> (raw)
In-Reply-To: <CAFyQvY3X69T8n7XGk+43rvjHFGNEzMR4GHRECQmqGmE9AEpESg@mail.gmail.com>
> - Are there any objections to doing the buffer read-only check before
> doing the indent?
Dunno what the right approach/solution is in this particular case.
But note that we don't do what you suggest in general - we don't do it
for most other editing operations: insert or delete a character, yank
a string, kill the region,... Instead, we let an error be raised,
telling the user that the buffer is read-only.
next prev parent reply other threads:[~2017-08-07 17:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-07 17:36 [RFC] Do indent-region only on editable buffers Kaushal Modi
2017-08-07 17:46 ` Drew Adams [this message]
2017-08-07 17:56 ` Kaushal Modi
2017-08-07 18:13 ` Noam Postavsky
2017-08-07 19:55 ` Stefan Monnier
2017-08-07 20:07 ` Kaushal Modi
2017-08-07 23:03 ` John Wiegley
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=798abe90-2eb4-46e3-a897-1dc75c959880@default \
--to=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=kaushal.modi@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.