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:35:28 +0800 [thread overview]
Message-ID: <87imjftvyn.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 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-----
next prev parent reply other threads:[~2020-03-08 2:35 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
2020-03-08 2:35 ` stardiviner [this message]
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=87imjftvyn.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).