GNU bug report logs - #48603
27.2; [PATCH] Quit minibuffers without aborting kmacros

Previous Next

Package: emacs;

Reported by: miha <at> kamnitnik.top

Date: Sun, 23 May 2021 14:32:02 UTC

Severity: normal

Tags: patch

Found in version 27.2

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Cc: 48603 <at> debbugs.gnu.org, miha <at> kamnitnik.top
Subject: bug#48603: 27.2; [PATCH] Quit minibuffers without aborting kmacros
Date: Wed, 18 Aug 2021 16:55:40 +0200
"Basil L. Contovounesios" <contovob <at> 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




This bug report was last modified 3 years and 337 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.