From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#41531: 28.0.50; proper Eldoc async support Date: Sat, 06 Jun 2020 00:25:34 +0100 Message-ID: <877dwljdsh.fsf@gmail.com> References: <87eeqwm101.fsf@gmail.com> <87img5lqty.fsf@gmail.com> <87img55rmm.fsf@thornhill.no> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="36792"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 41531@debbugs.gnu.org, Andrii Kolomoiets , mvoteiza@udel.edu, Stefan Monnier , Dmitry Gutov , Fredrik Bergroth To: Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 06 01:27: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 1jhLjz-0009RL-5b for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Jun 2020 01:27:11 +0200 Original-Received: from localhost ([::1]:59694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhLjx-0005i5-QQ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Jun 2020 19:27:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37122) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhLjr-0005gf-0A for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2020 19:27:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38779) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jhLjq-0006VM-JV for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2020 19:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jhLjq-0001kB-Fb for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2020 19:27: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: Fri, 05 Jun 2020 23:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41531 X-GNU-PR-Package: emacs Original-Received: via spool by 41531-submit@debbugs.gnu.org id=B41531.15913995686640 (code B ref 41531); Fri, 05 Jun 2020 23:27:02 +0000 Original-Received: (at 41531) by debbugs.gnu.org; 5 Jun 2020 23:26:08 +0000 Original-Received: from localhost ([127.0.0.1]:50325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhLix-0001j2-Sd for submit@debbugs.gnu.org; Fri, 05 Jun 2020 19:26:08 -0400 Original-Received: from mail-wr1-f44.google.com ([209.85.221.44]:37144) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhLiw-0001iX-6E for 41531@debbugs.gnu.org; Fri, 05 Jun 2020 19:26:06 -0400 Original-Received: by mail-wr1-f44.google.com with SMTP id x13so11301831wrv.4 for <41531@debbugs.gnu.org>; Fri, 05 Jun 2020 16:26:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=5RoegJxkV05gWENSCdtH9Jxl2IdE6g7mXtYCzoCFDMo=; b=pwfxlDYsQ1gWgx75N5UKKdZadJrTyvZbV9eB4moEJwYvz+GXcEvTKqWU1jsZVPEO9n hP5wCl+Xj/B29Uml0ChAZcMQoR7GZLfacvaXiDJT+GmxTeA5tWChkXYqyEjqu1xrjT7L K1MbbmO8PNnOp+c0/JozVkRJyQmkxAsAekz8Iqlo8glh7MBofIAeYQo0lV262uEsytRv PIQDKOgQkkRt+IysodY1Ie6+ZYYuftqLjpNeMpzvFOAGPB6X9MnNp8OgC9uTvoLv/0Aj ocISFNY9nifueb6AtmO8kagNNKD2jlMrBps8SqzTTt2Bp4dIDc+ZuyZF7Bn6q2INKtky 469A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=5RoegJxkV05gWENSCdtH9Jxl2IdE6g7mXtYCzoCFDMo=; b=NZoNUBlI6w2ui9YUxKQJglZBgFZ68/5zeWrsHqBuCXBvjNQEyDSI83Ww/3PRKGipUY dGwXn/qQnOhJcD+fRgLQ/SO0QQDkx/E0VnPnoizyAD3tjINHnPg3wK9PKq22Yx7BVGWH pFnYIImJhkxv/6zvx/J9dZfMvnwmB2ho4MQUGORPGUKzPPieogLFWmkQF3F6lmtFAHva +ca+4XESPMxGrChXSEk9gMZsx7rnoiir2sGEnprxsq9wpzxKcEZ+3w0LzXPS3iDDyg5s 8kr1MaQukQCZxeSLZZde9jlR97pRvfjmbu16WdlvEGP/69Vvwsiuv1KcISpJexGfjzmq 3n4A== X-Gm-Message-State: AOAM533r+EsifAvsds/FPUDRxSNgvdNzf3Rawd7P32hjcaV39SIJsc4d BSGUQjH+Ac2ciKF5L2cukw0= X-Google-Smtp-Source: ABdhPJyQI/cv3M1TNXVQDZ1YKvxC/92c3atpzNylXIbz8f3nQt46pkxWC84fCek2+PANz8s4owGvYw== X-Received: by 2002:adf:f44b:: with SMTP id f11mr11645465wrp.165.1591399560210; Fri, 05 Jun 2020 16:26:00 -0700 (PDT) Original-Received: from krug (89-180-151-23.net.novis.pt. [89.180.151.23]) by smtp.gmail.com with ESMTPSA id c65sm13442797wme.8.2020.06.05.16.25.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jun 2020 16:25:59 -0700 (PDT) In-Reply-To: <87img55rmm.fsf@thornhill.no> (Theodor Thornhill's message of "Fri, 05 Jun 2020 17:50:38 +0000") 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:181586 Archived-At: Theodor Thornhill writes: > Bug 1:=20=20=20=20=20=20 > 1. Open a file > 2. Start eglot > 3. Hover something with "C-h ." > 4. Switch to the new window that popped up. > 5. C-x k (kill buffer) > 6. Repeat step 3. > 7. "invalid buffer" and eldoc is dead.=20 > 8. Starting and stopping eldoc doesn't work=20=20=20 > > This seems to happen since it uses the new buffer and updates it. When th= at buffer is deleted, it gets confused. Thanks. This is easy to fix. It's a buffer-live-p call somewhere. > Bug 2: > 1. (setq eldoc-echo-area-use-multiline-p nil) > 2. eglot spits the whole thing on one line. This looks a bit weird since = it uses both the signature and the documentation. > > This may not be a bug, but right now IMO it looks a bit strange. It was intended. But I agree it's not good. I will change it: instead of joining all lines, then trucating, I will just truncate the first line if needed. > Bug 3: > 1. "M-:" > 2. Type "(" > 3. Minibuffer shows: eldoc-error: (wrong number of arguments (0 . 0) 1) I couldn't reproduce this one. > I think the first bug is the most problematic one though :) > > However, I've started to take a liking to the no options set, with > this version. I think I like the "truncate, press M-x ..." message > more than the previous one. Yes, and if `eldoc-doc-buffer` is bound to something shorter, then it will be even simpler to read. I will eventually recommend we rebind `C-h .` (display-local-help) to it. But in the meantime, I think I will make Eglot bind it to that key, as an exception to Eglot's no-keybindings policy. Jo=C3=A3o