From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#43609: 28.0.50; eldoc-documentation-function Date: Sat, 26 Sep 2020 21:34:38 +0300 Message-ID: References: <2e610c3f-6e5f-c7dd-af2e-aeb5e20d8664@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38160"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 To: martin rudalics , 43609@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 26 20:35:23 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 1kMF2X-0009j1-Im for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Sep 2020 20:35:21 +0200 Original-Received: from localhost ([::1]:34680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMF2V-0001Lx-Pk for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Sep 2020 14:35:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMF2E-0001Lj-M9 for bug-gnu-emacs@gnu.org; Sat, 26 Sep 2020 14:35:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36197) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kMF2E-0005y7-Bz for bug-gnu-emacs@gnu.org; Sat, 26 Sep 2020 14:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kMF2E-00035N-9p for bug-gnu-emacs@gnu.org; Sat, 26 Sep 2020 14:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Sep 2020 18:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43609 X-GNU-PR-Package: emacs Original-Received: via spool by 43609-submit@debbugs.gnu.org id=B43609.160114528911838 (code B ref 43609); Sat, 26 Sep 2020 18:35:02 +0000 Original-Received: (at 43609) by debbugs.gnu.org; 26 Sep 2020 18:34:49 +0000 Original-Received: from localhost ([127.0.0.1]:47743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMF20-00034r-RS for submit@debbugs.gnu.org; Sat, 26 Sep 2020 14:34:49 -0400 Original-Received: from mail-ed1-f51.google.com ([209.85.208.51]:35139) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMF1y-00034d-FF for 43609@debbugs.gnu.org; Sat, 26 Sep 2020 14:34:48 -0400 Original-Received: by mail-ed1-f51.google.com with SMTP id i1so5872326edv.2 for <43609@debbugs.gnu.org>; Sat, 26 Sep 2020 11:34:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=f0gzVycgjd1CJ3ay0vq8Ul/iQMbY0R1HGbTroQrCrr0=; b=mTTv/bNou1xKbw9Y4Dy2DCsX+KCx756T0l/HlCvdhDVguBa221xq9+jKuuXMLhgu1U ZhAyiYqSX9hFIWjRLJiBsEYfObnnEHZw5fAWSrwA0CIEpYfe9J0l041ZsIkqv664+2+2 KeQS6Ka0O2HqMsZqv9zMxEQCdQ7JENYaqsuS22J3motNSuU/S3n5yVvc9cj4P/0jUEIi pp4ABuTeIglRxVTumio1G2EhXe7pO+sK6XeRMXLw3fxfkX0v5+6HnfxVAiCk8LI4gl1w vBrhHPgpoP1V3Q6fA6/RTuoOvzukQgi4sZ8NY1RJxEEqQSqM74OyK47qC8vLW3rCggbU Olmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=f0gzVycgjd1CJ3ay0vq8Ul/iQMbY0R1HGbTroQrCrr0=; b=lOm4trhbpYY0csoaYZzPda2D5l4fl5b01wRq7yBkTiAZXWcmM0okCgk06NOULwekBg x6IH/ynI17x0VcZ9ndZN1Q6m9MrUXSTgfiT+jKwpQZoay4t0R6Fgcuphw6qDtVWnqUFC xf5+nYUirI2J8b+FGrbM2nQZi4kv5UK+7jOket7472lgNiTcSfXZjAuOYfTlqzY4rN+N tZBEe9Hix0jh4vNReNjNvq0RC4KACR9UQslhgbKoABOOyJMiKsrxOUfjgM3AoyME5f2p bogIjNbE9/1HOS8HZH3ljgTIFqt5M/TGO4Ml85hpZc5nNredZPFaodI5cgE0+vR7xseC BlVg== X-Gm-Message-State: AOAM5334W4SgNd+Pdqz5N7PByImAEBgmDrTbFeXQTpDfrsdaxnqlbofl 6eppLWe3+IJ+oCVxa/+60ZJV+SbyDBgx5Q== X-Google-Smtp-Source: ABdhPJzP/PCFzaf2z++in6PvHSFGoiEW5Sfw7e4TY/JrNjAXt2JcEjU+/rEYo8uah46bO0fMlsSWOQ== X-Received: by 2002:aa7:c387:: with SMTP id k7mr7616884edq.242.1601145280373; Sat, 26 Sep 2020 11:34:40 -0700 (PDT) Original-Received: from [192.168.0.4] ([66.205.71.3]) by smtp.googlemail.com with ESMTPSA id q26sm4574500ejr.97.2020.09.26.11.34.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 26 Sep 2020 11:34:39 -0700 (PDT) In-Reply-To: <2e610c3f-6e5f-c7dd-af2e-aeb5e20d8664@gmx.at> Content-Language: en-US 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:189062 Archived-At: Hi Martin, On 25.09.2020 11:46, martin rudalics wrote: > 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-function) 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 > font-lock-keyword-face) 8 12 (face eldoc-highlight-function-argument)) You might want to read the docstring for eldoc-documentation-functions, in particular the part where "Each hook function is called with at least one argument CALLBACK". I agree that the latest changes make Eldoc gratuitously more complex, though. You can read bug#41531, where they started.