From: Carlos Pita <carlosjosepita@gmail.com>
To: 19696@debbugs.gnu.org
Cc: galli.87@gmail.com
Subject: bug#19696: Acknowledgement (24.4; python.el: blank line eldoc error)
Date: Tue, 3 Feb 2015 20:23:08 -0300 [thread overview]
Message-ID: <CAELgYhcJB_J4wtGxzGaWNtj-p07ah9JD0sm2YKL-pX0NRzxB0A@mail.gmail.com> (raw)
In-Reply-To: <handler.19696.B.14222935664090.ack@debbugs.gnu.org>
[-- Attachment #1: Type: text/plain, Size: 408 bytes --]
X-Debbugs-CC: galli.87@gmail.com
Tags: patch
Advising eldoc-documentation-function sometimes resulted in a function
void symbol error. I don't know exactly why but the fact is that
eldoc-print-current-symbol-info error handler ended up printing "eldoc
error: ...". Anyway the approach seems to me a bit contorted so I
replaced the advice by a more conventional local variable and it seems
to work fine now.
[-- Attachment #2: eldoc.patch --]
[-- Type: text/x-patch, Size: 671 bytes --]
diff --git a/.emacs.d/lisp/python.el b/.emacs.d/lisp/python.el
index ce9ed96..4c8f4c6 100644
--- a/.emacs.d/lisp/python.el
+++ b/.emacs.d/lisp/python.el
@@ -4707,8 +4707,8 @@ Arguments START and END narrow the buffer region to work on."
(current-column))))
(^ '(- (1+ (current-indentation))))))
- (add-function :before-until (local 'eldoc-documentation-function)
- #'python-eldoc-function)
+ (set (make-local-variable 'eldoc-documentation-function)
+ #'python-eldoc-function)
(add-to-list 'hs-special-modes-alist
`(python-mode "\\s-*\\(?:def\\|class\\)\\>" nil "#"
next prev parent reply other threads:[~2015-02-03 23:23 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-26 17:32 bug#19696: 24.4; python.el: blank line eldoc error Carlos Pita
[not found] ` <handler.19696.B.14222935664090.ack@debbugs.gnu.org>
2015-02-03 23:23 ` Carlos Pita [this message]
2015-02-04 15:25 ` bug#19696: Acknowledgement (24.4; python.el: blank line eldoc error) Stefan Monnier
2015-02-04 18:01 ` Carlos Pita
2015-02-04 18:11 ` Carlos Pita
2015-02-04 18:35 ` Stefan Monnier
2015-02-04 18:43 ` Carlos Pita
2015-02-04 18:59 ` Carlos Pita
2015-02-04 19:34 ` Stefan Monnier
2015-02-04 19:47 ` Carlos Pita
2015-02-04 22:38 ` Fabián Ezequiel Gallina
2015-02-05 2:47 ` Stefan Monnier
2015-02-05 9:09 ` Fabián Ezequiel Gallina
2015-02-09 15:56 ` bug#19696: python.el: blank line eldoc error Carlos Pita
2015-02-10 2:54 ` Fabián Ezequiel Gallina
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAELgYhcJB_J4wtGxzGaWNtj-p07ah9JD0sm2YKL-pX0NRzxB0A@mail.gmail.com \
--to=carlosjosepita@gmail.com \
--cc=19696@debbugs.gnu.org \
--cc=galli.87@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.