diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2025-03-07 06:22:22 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2025-03-07 18:29:49 +0100 |
| commit | 580ad210e01cb54511aa399614e26feceeb17aaa (patch) | |
| tree | 0d12d72a785fdff1ef04b95a97b7a2aff8b734e9 /llama.el | |
| parent | 4c49e410b1c7050674bcfdabba1006fe375b32d5 (diff) | |
all-completions advice: Check for equality with global obarray and empty str as optimization
Diffstat (limited to 'llama.el')
| -rw-r--r-- | llama.el | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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))) |
