[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#48603: 27.2; [PATCH] Quit minibuffers without aborting kmacros
From: |
Basil L. Contovounesios |
Subject: |
bug#48603: 27.2; [PATCH] Quit minibuffers without aborting kmacros |
Date: |
Tue, 17 Aug 2021 23:45:15 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Lars Ingebrigtsen [2021-07-20 14:37 +0200] wrote:
> <miha@kamnitnik.top> writes:
>
>> Good idea, attaching a revised patch (which also adds two NEWS entries.)
>
> Sorry; I forgot all about this. I've now re-read and tested the patch,
> and it seems to work fine for me, so I've pushed it to Emacs 28.
Thanks, but given the following file quit.el, which is distilled from
the Ivy package's batch-run test suite:
quit.el
Description: application/emacs-lisp
the patch gives rise to the following change in behaviour.
Before:
$ emacs -Q -batch -l quit.el
(quit)
$ echo $?
0
After:
$ emacs -Q -batch -l quit.el
Quit
$ echo $?
255
IOW, it's no longer possible to catch the quit around execute-kbd-macro.
I tried wrapping it in (catch 'exit ...) as well, but to no avail.
Surely it should always be possible to catch a quit condition from Lisp?
Thanks,
--
Basil
- bug#48603: 27.2; [PATCH] Quit minibuffers without aborting kmacros,
Basil L. Contovounesios <=