Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ac-symbol-documentation fails silently in Emacs HEAD => no help popup #49

Closed
purcell opened this issue Jul 9, 2011 · 2 comments
Closed

Comments

@purcell
Copy link

purcell commented Jul 9, 2011

Looks like describe-function-1 now raises an error if current-buffer is not in help-mode, so ac-symbol-documentation fails to gather the info needed for the help popup.

I've looked at the help.el and help-mode.el code, but haven't figured out how to work around this problem.

@purcell
Copy link
Author

purcell commented Jul 11, 2011

Here's a fix which works well for me:

diff --git a/auto-complete.el b/auto-complete.el
index b78bcc3..4fa2b71 100644
--- a/auto-complete.el
+++ b/auto-complete.el
@@ -1784,8 +1784,7 @@ completion menu. This workaround stops that annoying behavior."
          ((fboundp symbol)
           ;; import help-xref-following
           (require 'help-mode)
-          (let ((help-xref-following t))
-            (describe-function-1 symbol))
+          (describe-function-1 symbol)
           (buffer-string))
          ((boundp symbol)
           (let ((file-name  (ac-symbol-file symbol 'defvar)))

@purcell
Copy link
Author

purcell commented Jul 13, 2011

For your convenience, I've bundled this fix up as a pull request (#51), so I'll close this issue.

@purcell purcell closed this as completed Jul 13, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant