From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Felician Nemeth Newsgroups: gmane.emacs.bugs Subject: bug#42532: 28.0.50; Can eldoc-prefer-doc-buffer be more aggressive? Date: Sat, 25 Jul 2020 20:17:34 +0200 Message-ID: <87mu3nihmp.fsf@betli.tmit.bme.hu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36545"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= To: 42532@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 25 20:20:02 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 1jzOmA-0009PG-3L for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Jul 2020 20:20:02 +0200 Original-Received: from localhost ([::1]:35452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jzOm9-0005ME-1m for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Jul 2020 14:20:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56366) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jzOkE-0004wP-JB for bug-gnu-emacs@gnu.org; Sat, 25 Jul 2020 14:18:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39550) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jzOkE-0002yO-9g for bug-gnu-emacs@gnu.org; Sat, 25 Jul 2020 14:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jzOkE-0007z4-5M; Sat, 25 Jul 2020 14:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Felician Nemeth Original-Sender: "Debbugs-submit" Resent-CC: joaotavora@gmail.com, bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Jul 2020 18:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42532 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Received: via spool by submit@debbugs.gnu.org id=B.159570106230659 (code B ref -1); Sat, 25 Jul 2020 18:18:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Jul 2020 18:17:42 +0000 Original-Received: from localhost ([127.0.0.1]:51096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jzOju-0007yQ-4l for submit@debbugs.gnu.org; Sat, 25 Jul 2020 14:17:42 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:36866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jzOjs-0007yI-2C for submit@debbugs.gnu.org; Sat, 25 Jul 2020 14:17:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jzOjr-0004rO-ST for bug-gnu-emacs@gnu.org; Sat, 25 Jul 2020 14:17:39 -0400 Original-Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]:34191) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jzOjq-0002wV-Aq for bug-gnu-emacs@gnu.org; Sat, 25 Jul 2020 14:17:39 -0400 Original-Received: by mail-ej1-x62e.google.com with SMTP id y10so13161405eje.1 for ; Sat, 25 Jul 2020 11:17:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:user-agent:face:mime-version; bh=nj7x6tPRIWQL4N6pUWnSa9bQJU9PdkMnvL4khLryMrI=; b=DN9geC3u2s8gKiTH30Xl9GvdfnyxQFjtB1Jy8oRFgpmpLXMeikJGbS8BjBaFyw+WWD RNHgQvnjzi7ElEt+9tSlZ0vd4EG+wt60j0wEm55XLnD0O2TpvSwbUrmXXJ5gGNx0XLrm QdsLGUn1sJywTE7Lyd4K+cPXYAbyAgWJMOTOGxtRrZCkQ8Ho8bhEQ6XK/5IKbgszdCAe LNR8A0biyXN7H/c7q2yQDd9vKVneVQpzzEZ/NwSiykzLOmoNKUh5/0kCwHDtA0/rgJYE fsQp+6X51exrLmR11I6rAE7Wfgqv5jIss9KuG5VTBPJhzZUKy5yemNDM1DzUiN8Wq+9b d7lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent:face :mime-version; bh=nj7x6tPRIWQL4N6pUWnSa9bQJU9PdkMnvL4khLryMrI=; b=Fkbhz52AVQ7DWiRdfUL82WFO0XvYlIkAZMaqSrCYKPCAJXoyo5UgWpph3OWAy3OaWK lDv9lVl8x2aPX96sWDRTo9/2uDnFXLV3J8/iE6bRUP/h+JYa8be4cq5J0mZ/VCcBkN48 fIiZHD115x84zNZTjfGU6RYIIjWiBLrJcvp6c8760y0Tf78P3Ckx9bs+woUT4SSoA8Hj HQbFA26A55Dx22BQ6p6LFh+UcPUV4rjUxwTNtqd5n81Gw7wTZFyxAjxPHTdcugrwJkpd bhP/EjaFNuZegLdSsRm1wIQPNfCFOE1opxjxXiWOBd0qADW0Jlm74C1kek3MXdf3rKB/ WcdA== X-Gm-Message-State: AOAM531S9jLbFs77fhH+kAGcwdULSBpYfE+z97bceF/mxpF4rqK5lTHC 5axwkyZIFzC5N+tfzypMCDGpQKC4 X-Google-Smtp-Source: ABdhPJxfgQiKEIKm0S4HudUHhjl8ZgtqI0it97lIXI6PWMkU3Aq91hVYWfDVL5g5JXJWzz6QohbOxg== X-Received: by 2002:a17:906:7153:: with SMTP id z19mr12596429ejj.319.1595701056602; Sat, 25 Jul 2020 11:17:36 -0700 (PDT) Original-Received: from betli.gmail.com (catv-86-101-16-125.catv.broadband.hu. [86.101.16.125]) by smtp.gmail.com with ESMTPSA id pw7sm3254945ejb.94.2020.07.25.11.17.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 25 Jul 2020 11:17:35 -0700 (PDT) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEUMBwgHAgMFAAGPjY7/ //80MDHq6eqJt3pKAAABr0lEQVQ4jX2UzZKDIAzHqR177q7TPbtx2HMr6guQcrbY9txZ0fd/hA0f onXazcEJ/CD8E4Js8/HS9mwjXtqeMRxHXJkakTEm4b4GPVQW8PU8ov4fQCqeThlF60MBWdo1IXzd 2nEEZE7CEAZLwI0N/gJAhTj7ESQAX4gPgO8lyI+cvgViSVPlNomAj2M9gW40eg7VWY3cATjUcyiO Z+i03cFruGLYoUR7VyU3HihdmCEVhoDN65FXkpbSxkomOzsTQN/gySaodGb9Gdi1oSRXP46gdBWh LcUKJNdeGCWac74GKakmne0aHCFvyqJPYLsCFAVlhRTvGdzMdLHqtgRyUulyXIAH7CYQ3AB0Nody JQhAkq/qtOnbjhxdzYDkXPxlH5y4WdUAeUcX1NVJ6GR7UQEYPGWoAnA36OQNn5lRRp38vHTAp9Br LoTmvlPPDoRCKzpjG1SXT89AaT5l456BamJuMcs+NIOMzJ/s5dI6yUVcrARlruwOebfdv6gunTn4 ww3+QjGBEn5suVyLHoSGvAqREuDLN+iqZ+VcFg+HBbsJUU9+FZthbez9T+bdb+kPv2Ls6ct3hTkA AAAASUVORK5CYII= Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=felician.nemeth@gmail.com; helo=mail-ej1-x62e.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:183538 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable With the attached file, start emacs as: emacs -Q --load bug.el and then move the point left or right. Originally I started to write this file as demonstration to bug#42421, but you fixed the bug faster than I could find time to finish it. Now, I think everything works as documented, but with the help of this recipe, I'd like to argue that eldoc-prefer-doc-buffer is a bit annoying in this case. Its documentation says: Prefer ElDoc=E2=80=99s documentation buffer if it is showing in some fra= me. If this variable=E2=80=99s value is t and a piece of documentation needs= to be truncated to fit in the echo area, do so if ElDoc=E2=80=99s documenta= tion buffer is not already showing, since the buffer always holds the full documentation. I think it would be better to show the documentation only in the *eldoc* buffer and not in the echo area even if the documentation doesn't need to be truncated but the echo are needs to be resized to display the full documentation. (bug.el changes eldoc-documentation-function to circumvent bug#42531, which I reported few minutes ago, but changing the order of the hooks in eldoc--eval-expression-setup, doesn't seem to fix bug#42531) Thank you, Jo=C3=A3o, for your work on eldoc. --=-=-= Content-Type: #("application/emacs-lisp" 0 22 (face iswitchb-current-match)) Content-Disposition: attachment; filename=bug.el Content-Transfer-Encoding: quoted-printable (defvar my-asdf-asdf-sdf-asdf-asdf-asdf-asdf-sdf-asdf-asdf-asdf-asdfasdf-as= df-sdf-asdf-asdf-asdf-asdfasdf-asdf 1 "START asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf= asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf= asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf END") (switch-to-buffer-other-window "*eldoc*") (window-resize (get-buffer-window) (- window-min-height (window-height))) (other-window 1) (find-file "bug.el") (goto-char 14) (setq eldoc-prefer-doc-buffer t) (setq eldoc-documentation-functions '(elisp-eldoc-var-docstring elisp-eldoc= -funcall t)) --=-=-=--