GNU bug report logs - #19637
25.0.50; ipython eldoc keep visible while typing parameters

Previous Next

Package: emacs;

Reported by: Carlos Pita <carlosjosepita <at> gmail.com>

Date: Tue, 20 Jan 2015 20:10:02 UTC

Severity: normal

Tags: patch

Fixed in version 25.0.50

Done: fgallina <at> gnu.org (Fabián Ezequiel Gallina)

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19637 in the body.
You can then email your comments to 19637 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#19637; Package emacs. (Tue, 20 Jan 2015 20:10:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Carlos Pita <carlosjosepita <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 20 Jan 2015 20:10:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Carlos Pita <carlosjosepita <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Cc: Fabian Ezequiel Gallina <galli.87 <at> gmail.com>
Subject: 25.0.50; ipython eldoc keep visible while typing parameters
Date: Tue, 20 Jan 2015 17:09:10 -0300
Please keep eldoc line in the buffer area visible while entering the
parameters of a funcion. The signature information is mainly useful
for that. Hiding it immediately after typing the opening parenthesis
kinda defeats the whole point. Cheers, Carlos.

PD: Fabian, if you're interested in this feature I could try to
implement it myself and send a patch.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19637; Package emacs. (Thu, 05 Feb 2015 19:22:01 GMT) Full text and rfc822 format available.

Message #8 received at 19637 <at> debbugs.gnu.org (full text, mbox):

From: Carlos Pita <carlosjosepita <at> gmail.com>
To: 19637 <at> debbugs.gnu.org
Cc: Fabián Ezequiel Gallina <fgallina <at> gnu.org>
Subject: 25.0.50; ipython eldoc keep visible while typing parameters
Date: Thu, 5 Feb 2015 16:21:03 -0300
[Message part 1 (text/plain, inline)]
Here is a tentative patch.

What it does is the following:

1) If point is in a paren context it escapes to the opening parenthesis

2) Now, if point is left (or was there from the very beginning) over
an opening (, then the relevant symbol is the one to the left of the
(, so whitespaces, newlines and backslashes are skipped backwards.
Presumably the point is now over a symbol.

3) We call (python-info-current-symbol). If a symbol is indeed parsed,
it's returned, if not, then the point position is restored and
(python-info-current-symbol) is called as usual.

Notice that the above allows for nested calls. But the exact behavior
is as follows (say * marks the position of the point):

a) m*ap(xx           will return map
b) map(xx*           will return map
c) map(open*       will also return map
d) map(open(xx*  will return open

I think this is almost always what you want. But a more complex
sequence could be implemented for c that first checks if there is any
documentation for 'open' and only in case there was no documentation
for the symbol, it showed the documentation for 'map'. I don't think
it's worth the extra complexity.

Cheers
--
Carlos
[tooltip.patch (text/x-patch, attachment)]

Added tag(s) patch. Request was from Carlos Pita <carlosjosepita <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 05 Feb 2015 19:31:02 GMT) Full text and rfc822 format available.

Reply sent to fgallina <at> gnu.org (Fabián Ezequiel Gallina):
You have taken responsibility. (Sat, 07 Feb 2015 21:46:02 GMT) Full text and rfc822 format available.

Notification sent to Carlos Pita <carlosjosepita <at> gmail.com>:
bug acknowledged by developer. (Sat, 07 Feb 2015 21:46:02 GMT) Full text and rfc822 format available.

Message #15 received at 19637-done <at> debbugs.gnu.org (full text, mbox):

From: fgallina <at> gnu.org (Fabián Ezequiel Gallina)
To: 19637-done <at> debbugs.gnu.org
Subject: 25.0.50; ipython eldoc keep visible while typing parameters
Date: Sat, 07 Feb 2015 18:45:55 -0300
Fixed at revno 2155973 in the master branch.

I tweaked your patch a bit to handle other cases and added tests.  I
realized I forgot to mention this was based on your patch after pushing
so I adjusted the ChangeLog entry at b480a6a.


Thanks again,
Fabián.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 08 Mar 2015 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 163 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.