From: martin rudalics <rudalics@gmx.at>
To: "João Távora" <joaotavora@gmail.com>
Cc: Yuan Fu <casouri@gmail.com>, 43609@debbugs.gnu.org
Subject: bug#43609: 28.0.50; eldoc-documentation-function [vs new eldoc-display-functions]
Date: Tue, 27 Oct 2020 19:05:37 +0100 [thread overview]
Message-ID: <64831acc-996e-51d7-ce6f-b667a6334e3c@gmx.at> (raw)
In-Reply-To: <87a6w7puuz.fsf@gmail.com>
> I'd like to help you, but I don't understand: are you updating Emacs to
> master in all 50 of those drives? Do you do this 50 times? By hand?
> Why can't you update your eldoc-tooltip.el in the process?
Every year I experience around two or three crashes among my machines
which run various operating systems ranging from Windows XP to Windows
10 and old stable to unstable Debian. When a HD drive crashes, I try
to recreate the prior state by plugging in an older disk or copy the
contents of that older disk into a new one. Thereafter, I usually
update my Emacs repositories reusing my older libraries. If I also have
to update my libraries, I'm ending up in Augean stables.
> I don't understand how this can work: it's essential that ElDoc calls
> eldoc-documentation-functions _through_ eldoc-documentation-function:
> that's the only way it can deal with both old-style libraries that set
> the latter and new-style library that set the former. That's the key to
> backward compatibility, and it's working correctly for many old and new
> packages. Furthermore, this link between the two variables _precedes_
> my code (see SHA c0fcbd2c119b8418855f0931aceefbef717c5e53): I just added
> the async support.
Then I fail to understand why my old code stopped working after your
changes. On the version of master I'm currently using here it's even
documented in the Elisp manual as
‘eldoc-documentation-function’
This variable holds the function which is used to retrieve
documentation for the item at point from the functions in the hook
‘eldoc-documentation-functions’. By default,
‘eldoc-documentation-function’ returns the first documentation
string produced by the ‘eldoc-documentation-functions’ hook.
> If "function definitions" were at stake, I would certainly agree with
> you. But they're not.
Here 'elisp-eldoc-documentation-function' is a function defined in
elisp-mode.el. IIUC this function has gone now.
> If you are going to update Emacs to master in N servers, you might as
> well update your library in those N servers. If you're updating it by
> hand, then this doesn't seem like a tremendous extra effort to expend.
> If you're using a script, just put the library update in that script. I
> personally use Git to good effect for this: push once, pull many times.
This is not something I do once to be done for ever. It's something
that I usually have to do in a troublesome situation where I have to
recover from a previous crash and I'm trying to make some system run
again. I can't afford to plug in all sorts of hard disk drives in order
to make them future-proof.
> Alternatively, and perhaps even better, you're invited to contribute
> your library to Emacs (or GNU ELPA). Then you'll just have to update
> Emacs, using your preferred method.
I'd still have to update each of my .emacs and install the respective
calls for each version of Emacs I might use there.
martin
next prev parent reply other threads:[~2020-10-27 18:05 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-25 8:46 bug#43609: 28.0.50; eldoc-documentation-function martin rudalics
2020-09-26 18:34 ` Dmitry Gutov
2020-09-27 8:30 ` martin rudalics
2020-09-29 11:20 ` Dmitry Gutov
2020-09-29 15:09 ` martin rudalics
2020-09-29 15:23 ` Dmitry Gutov
2020-09-30 8:14 ` martin rudalics
2020-09-30 8:50 ` Dmitry Gutov
2020-09-30 14:37 ` João Távora
2020-09-30 17:33 ` martin rudalics
2020-09-30 18:22 ` João Távora
2020-10-01 8:40 ` martin rudalics
2020-10-01 9:23 ` João Távora
2020-10-03 19:15 ` bug#43609: 28.0.50; eldoc-documentation-function [vs new eldoc-display-functions] João Távora
2020-10-05 8:35 ` martin rudalics
2020-10-05 9:29 ` João Távora
2020-10-06 8:23 ` martin rudalics
2020-10-06 9:29 ` João Távora
2020-10-07 8:36 ` martin rudalics
2020-10-07 8:40 ` João Távora
2020-10-07 9:36 ` João Távora
2020-10-08 8:22 ` martin rudalics
2020-10-08 8:27 ` João Távora
2020-10-09 8:03 ` martin rudalics
2020-10-24 15:18 ` João Távora
2020-10-26 14:12 ` João Távora
2020-10-27 9:59 ` martin rudalics
2020-10-27 9:58 ` martin rudalics
2020-10-27 15:11 ` João Távora
2020-10-27 18:05 ` martin rudalics [this message]
2020-10-27 19:56 ` João Távora
2020-10-28 8:39 ` martin rudalics
2020-10-28 9:38 ` João Távora
2020-10-31 8:01 ` martin rudalics
2020-10-28 9:17 ` Lars Ingebrigtsen
2020-10-28 9:54 ` João Távora
2020-10-30 22:51 ` João Távora
2020-10-31 8:02 ` martin rudalics
2020-10-23 2:37 ` Yuan Fu
2020-10-24 17:09 ` João Távora
2020-10-31 13:07 ` Basil L. Contovounesios
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=64831acc-996e-51d7-ce6f-b667a6334e3c@gmx.at \
--to=rudalics@gmx.at \
--cc=43609@debbugs.gnu.org \
--cc=casouri@gmail.com \
--cc=joaotavora@gmail.com \
/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).