[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26947: Preserve read-only when debugger with let-bound inhibit-read-
From: |
Lars Ingebrigtsen |
Subject: |
bug#26947: Preserve read-only when debugger with let-bound inhibit-read-only t. |
Date: |
Fri, 13 Aug 2021 15:49:01 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Keith David Bershatsky <esq@lawlist.com> writes:
> 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`.
>
> Step #1: Launch with emacs -q.
>
> Step #2: Navigate to the `*scratch*` buffer and set to read-only with C-x
> C-q.
>
> Step #3: Evaluate: (let ((inhibit-read-only t)) (error "stop"))
>
> Step #4: Select the window display the `*scratch*` buffer and type
> something. All open buffers are read/write.
Full test case:
(progn
(setq debug-on-error t
buffer-read-only t)
(let ((inhibit-read-only t)) (error "stop")))
This should now be fixed in Emacs 28.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#26947: Preserve read-only when debugger with let-bound inhibit-read-only t.,
Lars Ingebrigtsen <=