Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix advice for elisp--company-doc-buffer (#539)
The advice `radian--advice-company-elisp-use-helpful` replaces `(help-buffer)` with `(current-buffer)` assuming that a helpful command will be called. However, this is only true for functions and variables. If `elisp--company-doc-buffer` is called with a feature or a face, the current, unrelated, buffer is used when standard `help-*` commands are called, leading to the current buffer content being overwritten. The change in the PR gets around that issue but not overriding `help-buffer`. The solution fixes the issue, but it still feels hacky and a better solution might be to patch `elisp--company-doc-buffer` instead.
- Loading branch information