From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: seb@k-7.ch (=?UTF-8?Q?S=C3=A9bastien?= Gendre) Newsgroups: gmane.emacs.bugs Subject: bug#31409: 25.3; Python.el: getting function signature with eldoc is not automatic Date: Thu, 10 May 2018 18:41:05 +0200 Message-ID: <87tvrf31lq.fsf@k-7.ch> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1525975393 8933 195.159.176.226 (10 May 2018 18:03:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 10 May 2018 18:03:13 +0000 (UTC) To: 31409@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 10 20:03:09 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGpuD-000291-6q for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 May 2018 20:03:05 +0200 Original-Received: from localhost ([::1]:35102 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGpwK-00020y-BR for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 May 2018 14:05:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGptI-0008Ch-Dn for bug-gnu-emacs@gnu.org; Thu, 10 May 2018 14:02:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGptH-0004CQ-7x for bug-gnu-emacs@gnu.org; Thu, 10 May 2018 14:02:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48933) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGptH-0004CJ-5k for bug-gnu-emacs@gnu.org; Thu, 10 May 2018 14:02:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fGptG-0000bO-SR for bug-gnu-emacs@gnu.org; Thu, 10 May 2018 14:02:06 -0400 X-Loop: help-debbugs@gnu.org Resent-From: seb@k-7.ch (=?UTF-8?Q?S=C3=A9bastien?= Gendre) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 May 2018 18:02:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31409 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15259752672165 (code B ref -1); Thu, 10 May 2018 18:02:06 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 May 2018 18:01:07 +0000 Original-Received: from localhost ([127.0.0.1]:56816 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGpsI-0000Yk-CH for submit@debbugs.gnu.org; Thu, 10 May 2018 14:01:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGod5-00077R-O9 for submit@debbugs.gnu.org; Thu, 10 May 2018 12:41:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGocz-0005q3-8p for submit@debbugs.gnu.org; Thu, 10 May 2018 12:41:14 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:53993) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fGocz-0005px-55 for submit@debbugs.gnu.org; Thu, 10 May 2018 12:41:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33711) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGocx-000206-JH for bug-gnu-emacs@gnu.org; Thu, 10 May 2018 12:41:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGocu-0005mC-EB for bug-gnu-emacs@gnu.org; Thu, 10 May 2018 12:41:11 -0400 Original-Received: from 50-102-31-185.ftth.cust.kwaoo.net ([185.31.102.50]:60246 helo=k-7.ch) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fGocu-0005k2-4O for bug-gnu-emacs@gnu.org; Thu, 10 May 2018 12:41:08 -0400 Original-Received: from bilbon (alfred.local [192.168.1.1]) by k-7.ch (OpenSMTPD) with ESMTPSA id 3990a01d (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Thu, 10 May 2018 16:41:05 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Thu, 10 May 2018 14:01:03 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:146108 Archived-At: --=-=-= Content-Type: text/plain In python-mode, to get a Python function signature in minibuffer, an user need to: - Start the Python shell (M-x run-python) - Enable eldoc (M-x eldoc-mode) - Send function definition or import to the shell (C-M-x or M-x python-shell-send-defun) It's too much steps and less efficient than what we have for Emacs Lisp. :( It would be so nice if this can be automaticaly done. Just move the point on a symbole and Emacs show you its signature directly. PS: I would be okay to work on this. Emacs informations: In GNU Emacs 25.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.22.26) of 2018-01-12 built on buildhw-08.phx2.fedoraproject.org Windowing system distributor 'Fedora Project', version 11.0.11906000 Configured using: 'configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no --with-xwidgets --with-modules build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic' LDFLAGS=-Wl,-z,relro PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES XWIDGETS Important settings: value of $LANG: fr_CH.utf8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Python Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Auto-saving...done Type "q" in help window to restore its previous buffer. Mark set [2 times] Auto-saving...done Auto-saving...done Mark set [3 times] Saved text from " At this moment, their is no manual for " Quit Type C-x 1 to delete the help window, C-M-v to scroll help. Load-path shadows: /usr/share/emacs/site-lisp/gnus-bonus/spam-stat hides /usr/share/emacs/25.3/lisp/gnus/spam-stat /usr/share/emacs/site-lisp/gnus-bonus/nnir hides /usr/share/emacs/25.3/lisp/gnus/nnir /usr/share/emacs/site-lisp/gnus-bonus/nnnil hides /usr/share/emacs/25.3/lisp/gnus/nnnil Features: (misearch multi-isearch jka-compr thingatpt ispell pp shadow sort mail-extr emacsbug message idna dired rfc822 mml mml-sec epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils eieio-opt speedbar sb-image ezimage dframe find-func info-look info thai-util thai-word vc-git diff-mode python tramp-sh tramp tramp-compat auth-source cl-seq eieio eieio-core gnus-util mm-util help-fns mail-prsvr password-cache tramp-loaddefs trampver ucs-normalize shell pcomplete format-spec advice json map seq byte-opt bytecomp byte-compile cl-extra help-mode cconv comint ring ansi-color preview-latex emacs-goodies-loaddefs easy-mmode color-theme easymenu wid-edit cl clang-format cl-macs gv xml cl-loaddefs pcase cl-lib auto-loads tex-site time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting xwidget-internal move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 330223 19077) (symbols 48 37111 4) (miscs 40 867 387) (strings 32 47324 8972) (string-bytes 1 1362083) (vectors 16 44587) (vector-slots 8 1015585 31521) (floats 8 258 580) (intervals 56 1007 57) (buffers 976 23)) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE8Ekr8gcEL8equwJETfxN5Rm50TwFAlr0diEACgkQTfxN5Rm5 0TxWThAAjNVQqqQaJAjzMll2L9ON8gwrEIPmjlX8YCIQZq4xRaYDX6VMobTBs9/9 jA9yBrlmiYNgUI0tSM5stCVOto/PaRW24dAROltGjuurlQi6YkIhKXWbTvPU4iRe FIqLa+dDOIqAkYTrWL8tTB+PN9fAFa4+Tj4iAuZwouY27i1dcky6+7lBqN4pH+Fy mRrjPsPZaKr1Y2j19mYJUEblEUS9SK0Uhtuj/1g1D4EH80bl5El87zY9EH21CUyX 7ALueinr3qUZ0s8mQ95u8cHrTxNotSYoml7HfaHxwOycGFkAJoIGasal/l/Bcw5W mCDcOeF76obop8LE0641rqKUsw6QZeo4PpiM44m/0ft+sXsrNTCJZ9f+l8G2z6gc vkVTLH+URusnuhu74i+dbH/WMWVbhwMHORW+Rh7ejJwVtY8Gonyyg3x5gxYrG6wT J4L709d1keJDZ0d+97ul0tZ/SXVKdn19KW85MSxdoZFu2svre8tXsSED+xZf/A9a 0HAqcEgc4tzlV0H7SFAX3s2/brJJKjY4+Q9fQLXT1P0esp8IUYTlm6eyx8Cu2g2z DPFi8sZgn4SU5xHEUGXa9R/6XF8u15trTsgx6kIWpqawaZpRJKyik++pFE/Nnf0S JG+DhzEicx6nwLm1XkYhXpG13N1dcZU3WA4sddMZ+dGzLDDkHag= =efxa -----END PGP SIGNATURE----- --=-=-=--