help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: eldoc-mode can't enabled in sql-mode


From: stardiviner
Subject: Re: eldoc-mode can't enabled in sql-mode
Date: Sun, 08 Mar 2020 10:35:28 +0800
User-agent: mu4e 1.3.8; emacs 28.0.50

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


Štěpán Němec <stepnem@gmail.com> writes:

> On Sat, 07 Mar 2020 21:41:21 +0800
> stardiviner wrote:
>
>> I found I can't enable "eldoc-mode" in "sql-mode". No matter how I enable it
>> with [M-x eldoc-mode] or [M-: (eldoc-mode)] or (turn-on-eldoc-mode).
>>
>> I only got this message output:
>>
>> There is no ElDoc support in this buffer
>>
>> What's the problem?
>
> As the message says: ElDoc needs some support to function, and sql-mode
> does not provide it. The support involves modifying the value of
> 'eldoc-documentation-function', or, since Emacs 28,
> 'eldoc-documentation-functions'.

I guess this problem is related to my two days ago, I re-compiled Emacs from
master branch which version should be 28.

So I did this:

(add-to-list 'eldoc-documentation-functions 'ejc-eldoc-function)

Then eldoc-mode can be enabled. Even though the problem is solved. But this
still has issue, why setting ~eldoc-documentation-function~ does not work?

>
> Adding such support is typically very easy if it makes sense for a mode.
> You might try your hand at it yourself, I'm sure a patch would be
> welcome.


- -- 
[ stardiviner ]
       I try to make every word tell the meaning what I want to express.

       Blog: https://stardiviner.github.io/
       IRC(freenode): stardiviner, Matrix: stardiviner
       GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
      
-----BEGIN PGP SIGNATURE-----

iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl5kWfAUHG51bWJjaGls
ZEBnbWFpbC5jb20ACgkQG13xyVromsPNjwf+ISo4dgWxZI8bOlrPUcKkj3+rRYrx
lmMsHnCR9NvF7Y0UBhvza8FCBlumjPkobL2TTy7tKt4wc6RECLezrSuqGKnaOBGF
M45jN0OuDg6B2cebomQY5hwFUYwPnKeJn6x5PNNYAy8G4wm6bLXEomdS1T7cHM5a
n6A1TcVxQtVS3fNqPTIBbLtKNaezdrMAKOYL6KXj+774V2UQ/YGnsK8j8c5VydRE
bVq4gUhciZPDYN9JwpldtaIKaS5KjQjLmgCb5lUa3FKBIuax1AGoHmjBKfFTq6im
4850h9cP/FH9oJ0jq+cxrU/kYKz3wYCZnfdNaNUHOY5bnVTnYaLu/vsViQ==
=o4Jb
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]