From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#43609: 28.0.50; eldoc-documentation-function [vs new eldoc-display-functions] Date: Thu, 8 Oct 2020 09:27:05 +0100 Message-ID: References: <2e610c3f-6e5f-c7dd-af2e-aeb5e20d8664@gmx.at> <87r1qjjppu.fsf@gmail.com> <3fa6b315-7fc0-06ee-81e9-b68d164aec1b@gmx.at> <87a6x7jf9a.fsf@gmail.com> <874knbi0jc.fsf_-_@gmail.com> <87362tggvl.fsf@gmail.com> <87d01vem7z.fsf@gmail.com> <17da3e99-d4fc-a603-baa3-4180d612af41@gmx.at> <878scie5ti.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30835"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Yuan Fu , 43609@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 08 10:29:11 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 1kQRIU-0007ry-NL for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Oct 2020 10:29:10 +0200 Original-Received: from localhost ([::1]:54304 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQRIT-0006rm-KD for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Oct 2020 04:29:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42158) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQRHO-00066m-I3 for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2020 04:28:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47140) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kQRHO-0005q5-7K for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2020 04:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kQRHO-0004I8-45 for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2020 04:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Oct 2020 08:28: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.160214564616453 (code B ref 43609); Thu, 08 Oct 2020 08:28:02 +0000 Original-Received: (at 43609) by debbugs.gnu.org; 8 Oct 2020 08:27:26 +0000 Original-Received: from localhost ([127.0.0.1]:58686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQRGn-0004HJ-Rk for submit@debbugs.gnu.org; Thu, 08 Oct 2020 04:27:26 -0400 Original-Received: from mail-io1-f52.google.com ([209.85.166.52]:44499) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQRGl-0004H5-JS for 43609@debbugs.gnu.org; Thu, 08 Oct 2020 04:27:24 -0400 Original-Received: by mail-io1-f52.google.com with SMTP id l8so5293141ioh.11 for <43609@debbugs.gnu.org>; Thu, 08 Oct 2020 01:27:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=fzHqopfzoQe4q2Bk8VdQhOfT+rAu9/z5htcMpqJTB48=; b=R7TgeloWM/jc1qp4DWHcvf8TbN5ZkPYP9VN3s0wIb3RuXMCCcm4y/9uwev2vjkmrga cQcobKKfZtwlLb7BqtS+22eyvT7qU+EuFrTkQMip1yhVrBmRbTlw4Utc2pbBSra2fCp8 E/pIu1tI5shVmCik2/pjrj1//ccXxZqqPIy4oX9dchb/Iy0MgRXIItvzvk6gmngY+2al 0pHHQH+zH6NCXg2rDbBK7faXblFcQ4DjqJnLnEA6n5kYQdPKJEsLnxtT08q5KKkWIiY5 +DN5hbpZI5yILGP53lrN76bw2J1HujN6JyzmbCIwsyqzmEVpBxkyW+xy985zmeSU5Rji BZZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=fzHqopfzoQe4q2Bk8VdQhOfT+rAu9/z5htcMpqJTB48=; b=gWYd+SCKr7yIqqA7DDYFfnvUWtN67BuvPuRAa7PO/5q75B8AsKoae9Iml9kVoRn7mP zjLYLZbPejXlKTecV5O1z19RLxvU7VXuASarTByVM7rHv/7aaWmfJlS6S7QUbI8pfxps ij2jHCUlb32FHEBOF6KWNfZgwUDAXIztYF4vhuzdl5VPmdaWrKAj59bFIHOblAaug14S dyWEmMgRDmEluRBtzjQBZcxCCWi3zYLfMA+rz5fHIWG4loM6PNLEue9R6ZlZWYFSd5La XHQUZFck5kRugNSSVZRnNCZPVVnW5mvn9GRj3TYOPyh4PaU21LOrAOn798HwvBTZcwq1 19/A== X-Gm-Message-State: AOAM531BEbvxp/yEq0Gl64ima+qoyqA3l9sg3rA4vFZWjy7JST2km2zK jujDVUx7sfYbmdrO6nMqFHO19cMXovXx1HBX5DQ= X-Google-Smtp-Source: ABdhPJy1la+PNZpCmXCAuLYDE7xPeQYKSUHtlutDujvQR40hNNC/ArKhj8UnWJT00dO9x5SVKQjJySE9IBSm6koMk30= X-Received: by 2002:a6b:b841:: with SMTP id i62mr5200931iof.57.1602145637816; Thu, 08 Oct 2020 01:27:17 -0700 (PDT) In-Reply-To: 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:190066 Archived-At: On Thu, Oct 8, 2020 at 9:22 AM martin rudalics wrote: > > > Here's the updated version of the file (let's hope I got it right, sti= ll > > stubbornly avoiding Git for this...) > > Thanks. It works now as expected. Happy to register that. > > I left some comments in the code about commenting out these lines, whi= ch > > interfered witht he echo-area display in my testing. > > > > ;; (add-hook 'window-configuration-change-hook 'eldoc-tooltip--hide-ti= p) > > ;; (add-hook 'window-size-change-functions 'eldoc-tooltip--hide-tip) > > Nowadays, I wouldn't add these anyway. In my experience, tooltips hide > quicker than I'm able to change anything in the windows setup. OTOH in > my regular flow of work, I'd never want the mini window to expand or > otherwise grab my attention just because I moved point. Hence, in my > personal use, I'd always keep echo area display disabled. That makes perfect sense, too, but elements in eldoc-display-functions must coexist peacefully with other elements there. Currently, the implementation is oblivious to the order of functions in eldoc-display-funcions. Maybe that could be changed, and as such we'd have the eldoc-display-in-tooltip function happen before in the list and say "no more functions after me". Anyway, this is only relevant if you're thinking of integrating your tooltip display in Emacs proper, eldoc or thereabouts. Are you? Jo=C3=A3o