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:32:40 +0800
User-agent: mu4e 1.3.8; emacs 28.0.50

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


Štěpán Němec <address@hidden> 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 use ejc-sql's eldoc support.

Here is the doc: https://github.com/kostafey/ejc-sql#eldoc

Here is the source code:

https://github.com/kostafey/ejc-sql/blob/master/ejc-eldoc.el

I use the entry function `ejc-eldoc-setup' as doc said. But eldoc-mode report
upper warning "no support". This is weird.

>
> 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-----

iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl5kWUgUHG51bWJjaGls
ZEBnbWFpbC5jb20ACgkQG13xyVromsPsQwgAmSLA0ajUEz95bxSjW96HcY11Dfnk
bwK3HLgFJ8M8c1i0tP8UNuE2cjzWcPjIaE2fFB7RFGEsAdDCqmqbWfU073ycmWZQ
Uo/lW5y+kosMCY+gho1a3yu5p5SGgwWdsAOZzqbpRHvAK/0XxMTDAY3Dppo0qmx5
theNMbr30zD8faf3Dmaj9iFjU/a/Z+eyWnrSzP/tSPvqRpX3jlDqDPsRWDjbvEdQ
KmmI78vaeS63znImDxHf+IGJhYLMd+qHtUl7LJpgF2hxfg08Rsg24KKNAH0ywIEb
7Uxx+5qLDTgNqsgNG3EKDXRamGTOg0wuTNHoLQqecohm9ooMhnDtFckafw==
=ks4+
-----END PGP SIGNATURE-----



reply via email to

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