emacs-devel
[Top][All Lists]
Advanced

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

nadvice.el: making add-function applicable to key-binding / using a func


From: Pontus Michael
Subject: nadvice.el: making add-function applicable to key-binding / using a function as generalized value
Date: Tue, 28 Apr 2015 21:09:01 +0300

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.



reply via email to

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