diff options
| author | John Wiegley | 2017-12-26 11:04:41 -0800 |
|---|---|---|
| committer | GitHub | 2017-12-26 11:04:41 -0800 |
| commit | 13a9e339f24b07a1ddde7cc0500a1e7a1787d4ab (patch) | |
| tree | 4baa4a9c22214c98a7e94972be14dbc018ffe72f | |
| parent | 44cb99fcc75bc6d228113862716650c7fa2de68e (diff) | |
| parent | 9638870f53a895264cef748e7c2afb24f28b0cf1 (diff) | |
| download | emacs-13a9e339f24b07a1ddde7cc0500a1e7a1787d4ab.tar.gz emacs-13a9e339f24b07a1ddde7cc0500a1e7a1787d4ab.zip | |
Merge pull request from justbur/elisp-cap
Handle automatic macro expansion by elisp-completion-at-point
GitHub-reference: https://github.com/jwiegley/use-package/issues/599
| -rw-r--r-- | lisp/use-package/use-package-core.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/use-package/use-package-core.el b/lisp/use-package/use-package-core.el index c7e367be188..c4c251e9a00 100644 --- a/lisp/use-package/use-package-core.el +++ b/lisp/use-package/use-package-core.el | |||
| @@ -559,6 +559,15 @@ extending any keys already present." | |||
| 559 | (let* ((name-symbol (if (stringp name) (intern name) name)) | 559 | (let* ((name-symbol (if (stringp name) (intern name) name)) |
| 560 | (name-string (symbol-name name-symbol))) | 560 | (name-string (symbol-name name-symbol))) |
| 561 | 561 | ||
| 562 | ;; The function `elisp--local-variables' inserts this unbound variable into | ||
| 563 | ;; macro forms to determine the locally bound variables for | ||
| 564 | ;; `elisp-completion-at-point'. It ends up throwing a lot of errors since it | ||
| 565 | ;; can occupy the position of a keyword (or look like a second argument to a | ||
| 566 | ;; keyword that takes one). Deleting it when it's at the top level should be | ||
| 567 | ;; harmless since there should be no locally bound variables to discover | ||
| 568 | ;; here anyway. | ||
| 569 | (setq args (delq 'elisp--witness--lisp args)) | ||
| 570 | |||
| 562 | ;; Reduce the set of keywords down to its most fundamental expression. | 571 | ;; Reduce the set of keywords down to its most fundamental expression. |
| 563 | (setq args (use-package-unalias-keywords name-symbol args)) | 572 | (setq args (use-package-unalias-keywords name-symbol args)) |
| 564 | 573 | ||