emacs-devel
[Top][All Lists]
Advanced

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

Re: Deprecation of define-key?


From: Jean Louis
Subject: Re: Deprecation of define-key?
Date: Sun, 31 Jul 2022 09:48:27 +0300
User-agent: Mutt/+ () (2022-06-11)

* Lars Ingebrigtsen <larsi@gnus.org> [2022-07-30 14:51]:
> Philip Kaludercic <philipk@posteo.net> writes:
> 
> > That is obvious, the question is should package developers avoid using
> > `define-key' if possible or not?
> 
> As the doc string says -- `keymap-set' is the recommended function to
> use.  However, `define-key' is not (and won't be) obsoleted, so it's up
> to them to follow the recommendation (or not).

After replacing `define-key' with `keymap-set' I got following:

Debugger entered--Lisp error: (error "[8388710] is not a valid key definition; 
see ‘key-valid-p’")
  signal(error ("[8388710] is not a valid key definition; see ‘key-..."))
  error("%S is not a valid key definition; see `key-valid-p..." [8388710])
  keymap--check([8388710])

for this definition:

(keymap-set dired-mode-map (kbd "s-f") 'cf-file-for-person)

So how I am supposed to make it work? I need to use the super key and
F to file files under person's directory.

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

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