From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Keith David Bershatsky <esq@lawlist.com>
Cc: 26947@debbugs.gnu.org
Subject: bug#26947: Preserve read-only when debugger with let-bound inhibit-read-only t.
Date: Wed, 17 May 2017 09:34:15 -0400 [thread overview]
Message-ID: <jwvinkzmx2g.fsf-monnier+bug#26947@gnu.org> (raw)
In-Reply-To: <m237c5hdrl.wl%esq@lawlist.com> (Keith David Bershatsky's message of "Mon, 15 May 2017 17:00:14 -0700")
> Entering the debugger when inhibit-read-only is let-bound to `t` causes all
> buffers to be read/write even though they may have `buffer-read-only` set to
> `t`.
[...]
> (when inhibit-read-only
> (setq inhibit-read-only nil))
Actually, the better option is probably to
(let ((inhibit-read-only nil))
around debug, like we already do with various other variables.
Of course, this is a general problem with dynamic scoping.
Maybe a better solution would be for `debug` to use another thread, so
it's not affected by those dynamic bindings of the debugged code.
Stefan
next prev parent reply other threads:[~2017-05-17 13:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-16 0:00 bug#26947: Preserve read-only when debugger with let-bound inhibit-read-only t Keith David Bershatsky
2017-05-17 13:34 ` Stefan Monnier [this message]
2017-05-17 18:05 ` Keith David Bershatsky
2021-08-13 13:49 ` Lars Ingebrigtsen
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='jwvinkzmx2g.fsf-monnier+bug#26947@gnu.org' \
--to=monnier@iro.umontreal.ca \
--cc=26947@debbugs.gnu.org \
--cc=esq@lawlist.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).