GNU bug report logs - #14702
24.3.50; Byte-compiling called-interactively-p inside catch

Previous Next

Package: emacs;

Reported by: Stephen Berman <stephen.berman <at> gmx.net>

Date: Mon, 24 Jun 2013 14:30:03 UTC

Severity: minor

Tags: wontfix

Found in version 24.3.50

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

Bug is archived. No further changes may be made.

Full log


Message #17 received at 14702 <at> debbugs.gnu.org (full text, mbox):

From: Stephen Berman <stephen.berman <at> gmx.net>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 14702 <at> debbugs.gnu.org
Subject: Re: bug#14702: 24.3.50;
 Byte-compiling called-interactively-p inside catch
Date: Tue, 25 Jun 2013 16:18:41 +0200
On Tue, 25 Jun 2013 10:04:51 -0400 Stefan Monnier <monnier <at> iro.umontreal.ca> wrote:

>> At the moment I don't see a way to do either of these: I can't use an
>> extra argument, because the command where I use called-interactively-p
>> already uses a prefix argument for another purpose; and I don't see an
>
> I don't see the relationship:
>
> (defun foo (prefix &optional interactive)
>   "Blabla."
>   (interactive "P\np")
>   ... (catch ... (if interactive ...) ...) ...)

D'oh!  I forgot about that possibility...

>> alternative to something like `catch', because I need to stop execution
>
> I didn't say not to use `catch', I said not to use
> called-interactively-p inside `catch'.  E.g.
>
>   (let ((interactive (called-interactively-p 'any)))
>    ...
>    (catch ... (if interactive ...) ...) ...)

D'oh^2!  Obviously I'm not very clear-headed right now...

Thanks.

Steve Berman




This bug report was last modified 11 years and 167 days ago.

Previous Next


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