From: Jens C. Jensen <jens@subst.net>
To: Juri Linkov <juri@linkov.net>, Daniel Mendler <mail@daniel-mendler.de>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: [ELPA] New package: marginalia
Date: Wed, 02 Jun 2021 16:46:18 +0200 [thread overview]
Message-ID: <87pmx42ukl.fsf@subst.net> (raw)
In-Reply-To: <874kehcnl6.fsf@mail.linkov.net>
> 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.
next prev parent reply other threads:[~2021-06-02 14:46 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-28 6:35 [ELPA] New package: marginalia Daniel Mendler
2021-05-28 13:47 ` Stefan Monnier
2021-05-28 13:59 ` Daniel Mendler
2021-05-28 14:08 ` Eli Zaretskii
2021-05-28 18:40 ` Juri Linkov
2021-05-29 8:06 ` Daniel Mendler
2021-06-01 20:54 ` Juri Linkov
2021-06-01 21:07 ` Daniel Mendler
2021-06-02 22:13 ` Juri Linkov
2021-06-11 17:13 ` Juri Linkov
2021-06-17 20:22 ` Juri Linkov
2021-06-02 14:46 ` Jens C. Jensen [this message]
2021-06-02 15:07 ` Daniel Mendler
2021-06-03 6:17 ` Jens C. Jensen
2021-06-02 15:10 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pmx42ukl.fsf@subst.net \
--to=jens@subst.net \
--cc=emacs-devel@gnu.org \
--cc=juri@linkov.net \
--cc=mail@daniel-mendler.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).