[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#59167: 27.2; eldoc-documentation-strategy being 'ignore prevents new
From: |
daanturo |
Subject: |
bug#59167: 27.2; eldoc-documentation-strategy being 'ignore prevents new eldoc supports |
Date: |
Thu, 10 Nov 2022 19:41:54 +0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
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
Description: Text Data
0001-Don-t-set-eldoc-strategy-to-ignore-on-Emacs-27-and-b.patch
Description: Text Data