[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ELPA] New package: marginalia
From: |
Jens C . Jensen |
Subject: |
Re: [ELPA] New package: marginalia |
Date: |
Wed, 02 Jun 2021 16:46:18 +0200 |
> From: Juri Linkov <juri@linkov.net>
> Date: Tue, 01 Jun 2021 23:54:45 +0300
> Maybe something like [...]
>
> Then you could use it, and prepend/append more characters
> such as: o for obsolete, ! for advised, * for modified.
I was recently fiddling with my configuration and was surprised not to find
this function anywhere, so this would be a welcome addition in my opinion.
I too stumbled on `help--symbol-completion-table-affixation', however it seems
to specialize on function-symbols (function/macro/command), but not on
variables (keymap/boolean/keyword/etc.).
I ended up with something like:
#+begin_src emacs-lisp
(cond
((commandp sym) 'command)
((macrop sym) 'macro)
((functionp sym) 'function)
((booleanp sym) 'boolean)
((keywordp sym) 'keyword)
((keymapp (symbol-value sym)) 'keymap)
((facep sym) 'face)
((boundp sym) 'variable)
((symbolp sym) 'symbol))
#+end_src
It has worked fine for my use-case thus far, but is neither complete nor robust
enough for documentation, as Daniel pointed out emacs-lisp is a Lisp-2 - the
above code completely misses this point.