GNU bug report logs - #59167
27.2; eldoc-documentation-strategy being 'ignore prevents new eldoc supports

Previous Next

Package: emacs;

Reported by: daanturo <daanturo <at> gmail.com>

Date: Thu, 10 Nov 2022 11:34:02 UTC

Severity: normal

Found in version 27.2

Full log


Message #8 received at 59167 <at> debbugs.gnu.org (full text, mbox):

From: daanturo <daanturo <at> gmail.com>
To: 59167 <at> debbugs.gnu.org
Subject: Re: 27.2; eldoc-documentation-strategy being 'ignore prevents new
 eldoc supports
Date: Thu, 10 Nov 2022 19:41:54 +0700
[Message part 1 (text/plain, inline)]
This version takes `eldoc-documentation-strategy`'s `default-value` to set
instead (the previous one may take the buffer-local value).

Another justification for the patch:

If `eldoc-documentation-strategy` is already set before loading the new eldoc,
loading the library will pop this warning up:

```
Warning (defvaralias): Overwriting value of ‘eldoc-documentation-strategy’ by aliasing to ‘eldoc-documentation-function’
```

By setting `eldoc-documentation-function` before defining
`eldoc-documentation-strategy` as alias, we can preserver its value of avoid
this warning.


By the way, why was `eldoc-documentation-strategy` made obsolete instead of
`eldoc-documentation-function`, isn't the latter's usage ough to be warned
against?

The second patch declares the correct obsolete one.

-- 
Daanturo.
[0002-Eldoc-on-old-Emacs-correct-the-obsolete-variable.patch (text/x-patch, attachment)]
[0001-Don-t-set-eldoc-strategy-to-ignore-on-Emacs-27-and-b.patch (text/x-patch, attachment)]

This bug report was last modified 2 years and 218 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.