From: "João Távora" <joaotavora@gmail.com>
To: Alex Branham <alex.branham@gmail.com>,
Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "Basil L. Contovounesios" <contovob@tcd.ie>, 47388@debbugs.gnu.org
Subject: bug#47388: 27.1; eldoc-documentation-function is ignore in updated eldoc
Date: Sat, 27 Mar 2021 12:53:13 +0000 [thread overview]
Message-ID: <CALDnm513kw+WxDd-RmbtRpGhs90q-zxTY=Nrb0rupLCbVf2XoA@mail.gmail.com> (raw)
In-Reply-To: <87y2e894x6.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1737 bytes --]
On Sat, Mar 27, 2021 at 12:06 PM Alex Branham <alex.branham@gmail.com>
wrote:
> On Fri 26 Mar 2021 at 20:34, João Távora <joaotavora@gmail.com> wrote:
>
> > Ah, I get it, so ess-mode does something different.
>
> I'm not sure I understand - different from what?
>
It does different things depending on the situation it thinks
it finds itself in.
(if (function-equal #'ignore eldoc-documentation-function)
> (add-hook 'eldoc-documentation-functions #'ess-r-eldoc-function nil t)
> (add-function :before-until (local 'eldoc-documentation-function)
> #'ess-r-eldoc-function))
>
I'm not sure you're improving much here. My idea is that,
if you find eldoc-documentation-functions (plural) to be bound you
may need to check that eldoc-documentation-strategy (or
eldoc-documentation-function (singular)) ISN'T #ignore and
buffer-locally adjust it accordingly to something of your preference
or your users' preference.
Alternatively, you can just keep using the old technique which is a lot
of parts of Emacs do (like elisp-mode in Emacs 27.1, for example), i.e.
use the else branch in your if, and only that. You don't seem to be using a
ny of the new ElDoc features like multiple documentation functions anyway.
That should also work for your Eglot-less rss-mode.
When using Eglot-ified rss-mode Eglot will do the right thing regardless
of the approach you take above.
All this said, I think this issue should be kept open nonetheless. If indeed
the new package's defcustom could clobber the global value of
eldoc-documentation-function if it finds it to be #'ignore I think it
should
be fine.
CC-ing Stefan Monnier for an opinion on this last part.
João Távora
[-- Attachment #2: Type: text/html, Size: 2599 bytes --]
next prev parent reply other threads:[~2021-03-27 12:53 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-25 14:05 bug#47388: 27.1; eldoc-documentation-function is ignore in updated eldoc Alex Branham
2021-03-26 18:27 ` Basil L. Contovounesios
2021-03-26 18:50 ` João Távora
2021-03-26 19:08 ` Alex Branham
2021-03-26 19:57 ` João Távora
2021-03-26 20:23 ` Alex Branham
2021-03-26 20:34 ` João Távora
2021-03-27 12:06 ` Alex Branham
2021-03-27 12:53 ` João Távora [this message]
2021-03-28 11:23 ` Alex Branham
2021-03-28 14:50 ` João Távora
2021-03-28 16:05 ` Alex Branham
2021-03-28 18:45 ` João Távora
2021-03-28 16:37 ` Stefan Monnier
2021-03-28 18:56 ` João Távora
2021-03-28 19:09 ` Stefan Monnier
2021-03-28 19:15 ` João Távora
2021-03-28 19:36 ` Stefan Monnier
2021-03-28 19:37 ` Stefan Monnier
2021-03-28 19:39 ` Stefan Monnier
2021-03-26 19:52 ` bug#47388: (no subject) QuietApe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CALDnm513kw+WxDd-RmbtRpGhs90q-zxTY=Nrb0rupLCbVf2XoA@mail.gmail.com' \
--to=joaotavora@gmail.com \
--cc=47388@debbugs.gnu.org \
--cc=alex.branham@gmail.com \
--cc=contovob@tcd.ie \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).