summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2025-03-07 06:22:22 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2025-03-07 18:29:49 +0100
commit580ad210e01cb54511aa399614e26feceeb17aaa (patch)
tree0d12d72a785fdff1ef04b95a97b7a2aff8b734e9
parent4c49e410b1c7050674bcfdabba1006fe375b32d5 (diff)
all-completions advice: Check for equality with global obarray and empty str as optimization
-rw-r--r--llama.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/llama.el b/llama.el
index 6476dc5..6d366c7 100644
--- a/llama.el
+++ b/llama.el
@@ -306,8 +306,7 @@ 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 (obarrayp table)
- (eq (symbol-function (intern-soft "" table)) 'llama))
+ (if (and (eq obarray table) (equal str ""))
(delete "" result)
result)))