|
From: | Dmitry Gutov |
Subject: | Re: master d4ae640: * lisp/help-fns.el (help--symbol-class): New function. |
Date: | Thu, 3 Jun 2021 23:45:34 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 |
On 03.06.2021 23:41, Juri Linkov wrote:
+(defun help--symbol-class (s) + "Return symbol class characters for symbol S." + (when (stringp s) + (setq s (intern-soft s))) + (cond ((commandp s) + "c") ; command + ((eq (car-safe (symbol-function s)) 'macro) + "m") ; macro + ((fboundp s) + "f") ; function + ((custom-variable-p s) + "u") ; user option + ((boundp s) + "v") ; variable + ((facep s) + "a") ; fAce + ((and (fboundp 'cl-find-class) + (cl-find-class s)) + "t") ; CL type + (" ") ; something else + ))
Looks awfully similar to elisp--company-kind.
[Prev in Thread] | Current Thread | [Next in Thread] |