From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#43609: 28.0.50; eldoc-documentation-function Date: Fri, 25 Sep 2020 10:46:36 +0200 Message-ID: <2e610c3f-6e5f-c7dd-af2e-aeb5e20d8664@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27191"; mail-complaints-to="usenet@ciao.gmane.io" To: 43609@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 25 10:47:42 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kLjOI-0006y2-4t for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Sep 2020 10:47:42 +0200 Original-Received: from localhost ([::1]:58592 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLjOH-0005lj-0t for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Sep 2020 04:47:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLjNf-0005kG-1T for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2020 04:47:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59280) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLjNe-0004s7-L1 for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2020 04:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kLjNe-0005eD-Jt for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2020 04:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Sep 2020 08:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43609 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Bug-Gnu-Emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.160102360721665 (code B ref -1); Fri, 25 Sep 2020 08:47:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Sep 2020 08:46:47 +0000 Original-Received: from localhost ([127.0.0.1]:42584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLjNO-0005dN-Pz for submit@debbugs.gnu.org; Fri, 25 Sep 2020 04:46:47 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:53196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLjNM-0005dF-DF for submit@debbugs.gnu.org; Fri, 25 Sep 2020 04:46:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLjNM-0005hy-1z for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2020 04:46:44 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:46407) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLjNJ-0004pL-Ur for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2020 04:46:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1601023598; bh=ux6g/DcgUWBPePOuPDATa+rr2a+9+Ht0zGyQYJRUKSA=; h=X-UI-Sender-Class:To:From:Subject:Date; b=Ga9tDjY1FSog1DgWEM+s4upf+bDcwMosQoPVL7/DQA7jUMvf2nHWxuePEzjVlQAcs ztKzrbsOE3DWVljifzSNfe5C9fuftMmyRpnanw1PIL9WB36J55U3SsWIe/gz2dpRIe 6uweDbDXQdbKZRT9OMNrVC3uyeRpKo4Gq5gOsE9M= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([212.95.5.208]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Ma20q-1jygAs0tRE-00W1cx for ; Fri, 25 Sep 2020 10:46:38 +0200 Content-Language: en-US X-Provags-ID: V03:K1:As8GgN/sYarJwQx1stpXulBBAL/JUiJlf0vH0zxgz84s6a4OO/J mG/ZuIWH0L9+QCSLVU9lanQ/iNJJwywY4vr4QDu41qfKqX5QDDyF9s1jj4+UNhSpCtvau/l V2hHEEBjkL4kADyM12nYmwUSVV9kQeSPu/4D/kg0ZeQbU4g1nou4H51ec3pHHzKAL2FedVP a4sQX5HidiIkuWyH0KJPA== X-UI-Out-Filterresults: notjunk:1;V03:K0:2KJlYe+cdXE=:eQ7DopDfQ42LuzqqDQdG+q O7Mf8t8GiRqYcZ0G+fuBx/H9moblWTUA4NO9N1JomeufI0QSYIPNQAbrFO0ztYWIjJwPRvR5r 4Cz5GnvDOshANMd+PzpidlVUfkXLvdNFRxh/uaeyVEKCFkzVRULg792EGNmx1a7f3+7mm1qln K/moMOjBO2fq7+1qpCbqdwIGaqV3cCTCK//ajdtUZ8hKpiGi3u/7LVIqGIuF9WaKbJxR+URit utlpySyL0+QWExNYNpGozKLmUSlA4ThqnWzjdGJbyhU2g2Zp5QiM+iZBwMQpgymAMp1uYpG7q 9gkFzTsSbqwgOEoUC25dfA0PeAlApnybOvL1OUCVk/ApxLoxlYDVAIgcqOfLDPevDCCTxwyOR BNGV4SNhifYYUtd2jIcMUKdas+HRgmmmfU3Ob0E2p6rMwaE/kaRgVBvXSQ+pyeRaW+a0uhgWw zjV6HtbSjdV81v0b/dUDSYKDV5TdICV2QRrIfrXzRt47i7nMGzysLME7sswlaY+ODyjD6p9a2 goE3zngVkBxAsF84Vhry5nKAuY+lVYW9Q/yFzAu4KnHFDbV7lfu8s+T+il5LgiwG8IbiZkNV1 rboZMXSbDvdWutxtRTKGoioCYMGGH4yjchkZ+CYkEr4JTgJXGAms9mz9T1dsCrttlVIDOt+LE MmpWHoctAjzt7bRCDgKLhtCr0x2yjCBmAzyoGEqs+9sTwsn8fPk8LaLY2JTLIiX+Oy0Vojzps o5PEZTjK+BdcMQWs0v+YtfNm2H0N1hFZOreX5m98buOEMk+FyVOctLvZk7p8hJxzxf8zIG0E Received-SPF: pass client-ip=212.227.17.21; envelope-from=rudalics@gmx.at; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/25 04:46:38 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: 7 X-Spam_score: 0.7 X-Spam_bar: / X-Spam_report: (0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:188929 Archived-At: When with emacs -Q I put the following snippet into *scratch* (defun foo () (ignore)) move point to somewhere on "foo" and do M-: (funcall eldoc-documentation-function) I get the following backtrace: Debugger entered--Lisp error: (void-function nil) nil(:patient) eldoc--make-callback(:patient) eldoc-documentation-default() funcall(eldoc-documentation-default) eval((funcall eldoc-documentation-function) t) eval-expression((funcall eldoc-documentation-function) nil nil 127) funcall-interactively(eval-expression (funcall eldoc-documentation-fun= ction) nil nil 127) call-interactively(eval-expression nil nil) command-execute(eval-expression) If I do the same thing with Emacs 27 I get #("defun: (NAME ARGLIST &optional DOCSTRING DECL &rest BODY)" 0 5 (face f= ont-lock-keyword-face) 8 12 (face eldoc-highlight-function-argument)) The doc-string of 'eldoc-documentation-function' with Emacs 27 was: Function to call to return doc string. The function of no args should return a one-line string for displaying= doc about a function etc. appropriate to the context around point. It should return nil if there=E2=80=99s no doc appropriate for the con= text. Typically doc is returned if point is on a function-like name or in it= s arg list. The doc-string with Emacs 28 says For backward compatibility to the "old" protocol, this variable can also be set to a function that returns nil or a doc string, depending whether or not there is documentation to display at all. But it does not tell _how_ to do that in order to get the string returned by Emacs 27 and I already spent a couple of hours trying. I am using a package that displays the string produced by that function in a tooltip near point. This package now ceased to work with the backtrace shown above. Please help me to make that package work again, either by optionally restoring the old functionality of (funcall eldoc-documentation-function) or by providing another function I could call instead. The present situation makes it currently impossible for me to use master. Thank you, martin In GNU Emacs 28.0.50 (build 1, i686-pc-mingw32) of 2020-09-16 built on NOREST Repository revision: f028a893a552b0c38c35f949addb6a891e8586cc Repository branch: master Windowing system distributor 'Microsoft Corp.', version 5.1.2600 System Description: Microsoft Windows XP Service Pack 3 (v5.1.0.2600) Configured using: 'configure --prefix=3D/c/emacs-git/trunk/dbg --with-gnutls=3Dno --without-pop --enable-checking=3Dyes --enable-gcc-warnings=3Dwarn-only= --enable-check-lisp-object-type=3Dwarn-only 'CFLAGS=3D-O0 -g3 -Wno-logical-op -Wno-missing-braces'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS PDUMPER Important settings: value of $LANG: DEA locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: 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 Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-fns radix-tree cl-print debug backtrace help-mode easymenu find-func cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer 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 composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 8 57053 5749) (symbols 24 7161 1) (strings 16 20666 1951) (string-bytes 1 643171) (vectors 8 12211) (vector-slots 4 173280 17378) (floats 8 36 47) (intervals 28 304 1) (buffers 568 13))