all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: rswgnu@gmail.com, Richard Stallman <rms@gnu.org>
Cc: 23873@debbugs.gnu.org, emacs-devel <emacs-devel@gnu.org>
Subject: RE: bug#23873: Emacs 24.0.94: With function argdesc bitstring, Elisp manual does not say how to get arg list
Date: Fri, 1 Jul 2016 07:01:34 -0700 (PDT)	[thread overview]
Message-ID: <4c0a59d3-5158-40ae-9357-a1a4e5c8fe74@default> (raw)
In-Reply-To: <CA+OMD9g+U-V0227AvqtP+tc3QxvjVeYCxDgFDfgPAvXZmeb3Bg@mail.gmail.com>

> In a few places, Hyperbole uses its own function to overload existing
> functions with its own and needs access to the function's argument
> signature to do this.  For reasons of backward compatibility,
> Hyperbole has not used defadvice.  In another case, we want to know if
> a function's signature has changed for a conditional dispatch.

Not a general solution, but this approach often works if the
signature changed:

(condition-case nil          ; Emacs 22+ accepts a default.
    (read-face-name "Face: " default-face)
  (wrong-number-of-arguments (read-face-name "Face: ")))

Or this:

(condition-case nil
    (funcall cmd arg)         ; Try to use string candidate `arg'.
  ;; If that didn't work, use a symbol or number candidate.
  (wrong-type-argument (funcall cmd (car (read-from-string arg))))
  (wrong-number-of-arguments (funcall #'icicle-help-on-candidate))) ; Punt



  reply	other threads:[~2016-07-01 14:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <871t3edfd9.fsf@gmx.net>
2016-06-30 14:11 ` Emacs 24.0.94: With function argdesc bitstring, Elisp manual does not say how to get arg list Robert Weiner
2016-06-30 14:51   ` Drew Adams
2016-06-30 15:46   ` bug#23873: " Robert Weiner
2016-06-30 23:20     ` Richard Stallman
2016-07-01 12:14       ` Robert Weiner
2016-07-01 14:01         ` Drew Adams [this message]
2016-07-01 22:04         ` Richard Stallman
2016-07-01 22:43           ` Robert Weiner
2016-06-30 16:30   ` Robert Weiner
2016-07-06 21:57   ` bug#23873: " Robert Weiner
2016-07-06 23:32     ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4c0a59d3-5158-40ae-9357-a1a4e5c8fe74@default \
    --to=drew.adams@oracle.com \
    --cc=23873@debbugs.gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    --cc=rswgnu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.