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#42532: 28.0.50; Can eldoc-prefer-doc-buffer be more aggressive? Date: Sat, 03 Oct 2020 20:18:59 +0100 Message-ID: <87y2knglss.fsf@gmail.com> References: <87mu3nihmp.fsf@betli.tmit.bme.hu> <87zh61x5es.fsf@gmail.com> <87imc08zkf.fsf@betli.tmit.bme.hu> 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="6240"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Yuan Fu , 42532@debbugs.gnu.org To: Felician Nemeth Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 03 21:20: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 1kOn4l-0001X9-2F for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Oct 2020 21:20:11 +0200 Original-Received: from localhost ([::1]:55790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOn4k-0007fH-42 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Oct 2020 15:20:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33658) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOn4c-0007er-SQ for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2020 15:20:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:32973) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kOn4c-0005C8-Iw for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2020 15:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kOn4c-0002Vd-F1 for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2020 15:20: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: Sat, 03 Oct 2020 19:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42532 X-GNU-PR-Package: emacs Original-Received: via spool by 42532-submit@debbugs.gnu.org id=B42532.16017527489578 (code B ref 42532); Sat, 03 Oct 2020 19:20:02 +0000 Original-Received: (at 42532) by debbugs.gnu.org; 3 Oct 2020 19:19:08 +0000 Original-Received: from localhost ([127.0.0.1]:44519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOn3k-0002UQ-4a for submit@debbugs.gnu.org; Sat, 03 Oct 2020 15:19:08 -0400 Original-Received: from mail-wm1-f46.google.com ([209.85.128.46]:35901) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOn3j-0002Tx-0Y for 42532@debbugs.gnu.org; Sat, 03 Oct 2020 15:19:07 -0400 Original-Received: by mail-wm1-f46.google.com with SMTP id e2so5009546wme.1 for <42532@debbugs.gnu.org>; Sat, 03 Oct 2020 12:19:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=R9wg9o6rhb7wEcJRMr+G5J/7a4x7Gh7vEiy2Uh/1cPo=; b=E4kmoebNDFofKWnppG+87PRMyHoJYQ0XHOMWcF+IPZ0F2ANEpiiNxRYspK//zIPYR1 Q0S91aaUuCNzZKRdcQW4rF1IG3HrP3sOi5Rcn60aAuAWOk2jq1r+9oIihpowilwH/dfq XTdANnEEUVmL9BhFNXhTkhoTq/dmjQyd6MwlfznCDjeKsVdnhN3F4P05B74cTe92lXk5 0yljOQhFbGPUSoXYa6MmxchHxANrKUYZGSwmeAi4KP5yljd5AXN7ciArYjcBDafwb2o6 eZvqz7LGGRUJp7da/iJqiDSpeFUjTyvC7TG4IeHQfJsfXP4EbUUuV88QEvMdpknpQln+ XKVQ== 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:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=R9wg9o6rhb7wEcJRMr+G5J/7a4x7Gh7vEiy2Uh/1cPo=; b=I7EfFbBv7Ewkf4iwtvc4QEb5LbcxDoYULb0TBvXxg84cuIwLPq3CxW8nyUJvy0Xyff QTGArt5kJJn+aNbDdeLvQl+bn/HU6D+j4yVzzn0F3znA/R8eN+DTcpl25J3LCfWchevZ fF2zcI5Uau/jBqJRGNY3YA9gPqjx7AB9mOYFOHbJ1G0fK/xOfMA/NPxWYKQedq8Jsgvy hk6dlZR3ZWuG3ABKwteUAIvUIzkBAuE5VUUJz7sojz421UF+OnxZ/8sEtW7jxn+X4jw8 /A5tyzOUsfjxvgxez7KRax1tSMgZJH33QWJJnh/j7AZi26+Tp845KNuTNyR4KmXGtPVI RS9g== X-Gm-Message-State: AOAM530XL7J5uyiBNkWbHZPhpiVWZJgVOgBt23ZqqUbox8W9I37GsRYc 1+QhEw+oQjYzK80cyJ+ohHUlClXJRGQ= X-Google-Smtp-Source: ABdhPJy3DLHCsLOwRayNLIYjoWcUXGpG73wIwRd3GhurH4bsOj8GmBJk7CPklpl4Rfei1SvtEvrU2Q== X-Received: by 2002:a05:600c:10ce:: with SMTP id l14mr9401935wmd.129.1601752740963; Sat, 03 Oct 2020 12:19:00 -0700 (PDT) Original-Received: from krug ([89.180.149.154]) by smtp.gmail.com with ESMTPSA id d19sm6391391wmd.0.2020.10.03.12.18.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Oct 2020 12:19:00 -0700 (PDT) In-Reply-To: <87imc08zkf.fsf@betli.tmit.bme.hu> (Felician Nemeth's message of "Sat, 26 Sep 2020 14:58:24 +0200") 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:189723 Archived-At: Felician Nemeth writes: > For example, with the attached file, moving the point right after "emacs > -Q --load ./bug.el" displays the truncated documentation in the echo > area, but it shouldn't. Hello Felici=C3=A1n, I pushed an alternate version of this patch to the branch scratch/eldoc-display-functions To git.sv.gnu.org:/srv/git/emacs.git * [new branch] scratch/eldoc-display-functions -> scratch/eldoc= -display-functions It contains more than just this patch, but notably it passes your test, I think. Can you try it out? A point of mention is that the value `t' is now what `aggressive' used to be. This is more straightfoward and much simplified docstring writing the docstring. If you want the old "only prefer if truncated" behaviour, set it to `maybe' (maybe that name can be reviewed). Best regards, Jo=C3=A3o