emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Suggestion for improving ergonomics of repeat-maps: define-repeat-ma


From: Lars Ingebrigtsen
Subject: Re: Suggestion for improving ergonomics of repeat-maps: define-repeat-map
Date: Mon, 04 Oct 2021 22:16:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

I'd forgotten how all this works over in cl-defmethod land.  So:

(cl-defmethod foo (&rest gazonk &key bar zot &allow-other-keys)
  (list bar zot gazonk))

(foo :bar 1 :zot 3 5 6 7)
=> (1 3 (:bar 1 :zot 3 5 6 7))

However, the correct parameters won't be boldified in the echo area.
But if you do this:

(foo  5 6 7 :bar 1 :zot 3)

they will.  But that's ... even less helpful:

=> (nil nil (5 6 7 :bar 1 :zot 3))

And you can't put the &rest after &key.  So it seems like we've got some
oddities in this area.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




reply via email to

[Prev in Thread] Current Thread [Next in Thread]