all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* nadvice.el: making add-function applicable to key-binding / using a function as generalized value
@ 2015-04-28 18:09 Pontus Michael
  2015-04-29  1:46 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Pontus Michael @ 2015-04-28 18:09 UTC (permalink / raw)
  To: emacs-devel

First problem that I would like to address with this proposal, is the
inconvenience faced by the user attempting to alter default args for
existing command.

And secondly, wouldn't it be logical to expect following form to work?

    (add-function :filter-args
          (key-binding [?\M-\(])
          (lambda (args) '(1)))

If my understanding of how this kitchen works, it would only require
implementing gv api for `key-binding' for this to work and probably
`lookup-key' along with it.

My knowledge about involved technologies is very superficial, and my
hope is that someone capable will also see the benefit in it.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-29  1:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-28 18:09 nadvice.el: making add-function applicable to key-binding / using a function as generalized value Pontus Michael
2015-04-29  1:46 ` Stefan Monnier

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.