GNU bug report logs - #35663
27.0.50; Eldoc support for apply

Previous Next

Package: emacs;

Reported by: Michael Heerdegen <michael_heerdegen <at> web.de>

Date: Fri, 10 May 2019 00:12:02 UTC

Severity: wishlist

Found in version 27.0.50

Full log


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

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 35663 <at> debbugs.gnu.org
Subject: Re: bug#35663: 27.0.50; Eldoc support for apply
Date: Fri, 10 May 2019 13:41:25 +0200
Noam Postavsky <npostavs <at> gmail.com> writes:

> Hmm, maybe I mixed this is up with stepping into funcall/apply with
> edebug.

Probably.  We should also fix this.  I currently use this hack as
workaround:

(advice-add
 'edebug-instrument-callee :around
 (defun my-edebug-instrument-callee--around-ad (f)
   (condition-case nil
       (funcall f)
     (error
      (when (y-or-n-p "edebug-instrument-callee error - select a function by name?")
        (edebug-instrument-function
         (intern
          (completing-read
           "Function to instrument: " obarray #'fboundp t
           (when (looking-at "\(\\(?:funcall\\|apply\\|funcall-interactively\\) +\\(?:#?'\\)?\\(\\(?:\\sw\\|\\s_\\)+\\)[ \)]")
             (match-string 1))))))))))

I guess in unambiguous cases we can even omit prompting.

Michael.




This bug report was last modified 4 years and 355 days ago.

Previous Next


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