Function: all-completions@llama

all-completions@llama is a byte-compiled function defined in llama.el.

Signature

(all-completions@llama FN STR TABLE &rest REST)

Documentation

Remove empty symbol from completion results if originating from llama.

## is the notation for the symbol whose name is the empty string.
  (intern "") => ##
  (symbol-name '##) => ""

The llama package uses ## as the name of a macro, which allows it to be used akin to syntax, without actually being new syntax.
(describe-function won't let you select ##, but because that is an
alias for llama, you can access the documentation under that name.)

This advice prevents the empty string from being offered as a completion candidate when obarray or a completion table that internally uses that is used as TABLE.

Source Code

;; Defined in ~/.emacs.d/elpa/llama-20260301.1253/llama.el
(define-advice all-completions (:around (fn str table &rest rest) llama)
  "Remove empty symbol from completion results if originating from `llama'.

`##' is the notation for the symbol whose name is the empty string.
  (intern \"\") => ##
  (symbol-name \\='##) => \"\"

The `llama' package uses `##' as the name of a macro, which allows
it to be used akin to syntax, without actually being new syntax.
\(`describe-function' won't let you select `##', but because that is an
alias for `llama', you can access the documentation under that name.)

This advice prevents the empty string from being offered as a completion
candidate when `obarray' or a completion table that internally uses
that is used as TABLE."
  (let ((result (apply fn str table rest)))
    (if (and (eq obarray table) (equal str ""))
        (delete "" result)
      result)))