[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#48603: 27.2; [PATCH] Quit minibuffers without aborting kmacros
From: |
Lars Ingebrigtsen |
Subject: |
bug#48603: 27.2; [PATCH] Quit minibuffers without aborting kmacros |
Date: |
Wed, 18 Aug 2021 16:55:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
"Basil L. Contovounesios" <contovob@tcd.ie> writes:
> Thanks, but given the following file quit.el, which is distilled from
> the Ivy package's batch-run test suite:
>
> ;; -*- lexical-binding: t -*-
> (defconst my-read "\C-ce")
> (local-set-key my-read (lambda () (interactive) (read-from-minibuffer "")))
> (condition-case err
> (execute-kbd-macro (concat my-read "\C-g"))
> (t (print err)))
[...]
> 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?
Yup. Miha?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no