From: stardiviner <numbchild@gmail.com>
To: "Štěpán Němec" <stepnem@gmail.com>
Cc: Emacs Help <help-gnu-emacs@gnu.org>
Subject: Re: eldoc-mode can't enabled in sql-mode
Date: Sun, 08 Mar 2020 10:32:40 +0800 [thread overview]
Message-ID: <87lfobtw3b.fsf@gmail.com> (raw)
In-Reply-To: <874kv016zb.fsf@gmail.com>
-----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 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-----
next prev parent reply other threads:[~2020-03-08 2:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-07 13:41 eldoc-mode can't enabled in sql-mode stardiviner
2020-03-07 16:10 ` Štěpán Němec
2020-03-08 2:32 ` stardiviner [this message]
2020-03-08 2:35 ` stardiviner
2020-03-08 2:47 ` Štěpán Němec
2020-03-08 10:37 ` [SOLVED] " stardiviner
2020-03-08 10:39 ` Dmitry Gutov
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=87lfobtw3b.fsf@gmail.com \
--to=numbchild@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=stepnem@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.
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).