From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: stardiviner Newsgroups: gmane.emacs.help Subject: Re: eldoc-mode can't enabled in sql-mode Date: Sun, 08 Mar 2020 10:32:40 +0800 Message-ID: <87lfobtw3b.fsf@gmail.com> References: <87h7z0b7um.fsf@gmail.com> <874kv016zb.fsf@gmail.com> Reply-To: numbchild@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="93985"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.3.8; emacs 28.0.50 Cc: Emacs Help To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 08 03:33:33 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jAlkz-000ON7-1S for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 08 Mar 2020 03:33:33 +0100 Original-Received: from localhost ([::1]:54396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAlky-0005Wb-1k for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 07 Mar 2020 21:33:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37588) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAlkR-0005WT-6l for help-gnu-emacs@gnu.org; Sat, 07 Mar 2020 21:33:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAlkP-00044S-TE for help-gnu-emacs@gnu.org; Sat, 07 Mar 2020 21:32:58 -0500 Original-Received: from [183.249.128.110] (port=12990 helo=dark.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jAlkP-0003JR-GV for help-gnu-emacs@gnu.org; Sat, 07 Mar 2020 21:32:57 -0500 Original-Received: by dark.localdomain (Postfix, from userid 1000) id 89C4624255C; Sun, 8 Mar 2020 10:32:40 +0800 (CST) In-reply-to: <874kv016zb.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 183.249.128.110 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122541 Archived-At: =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec 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 enabl= e 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 repo= rt 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. =2D --=20 [ 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 =20=20=20=20=20=20 =2D----BEGIN PGP SIGNATURE----- iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl5kWUgUHG51bWJjaGls ZEBnbWFpbC5jb20ACgkQG13xyVromsPsQwgAmSLA0ajUEz95bxSjW96HcY11Dfnk bwK3HLgFJ8M8c1i0tP8UNuE2cjzWcPjIaE2fFB7RFGEsAdDCqmqbWfU073ycmWZQ Uo/lW5y+kosMCY+gho1a3yu5p5SGgwWdsAOZzqbpRHvAK/0XxMTDAY3Dppo0qmx5 theNMbr30zD8faf3Dmaj9iFjU/a/Z+eyWnrSzP/tSPvqRpX3jlDqDPsRWDjbvEdQ KmmI78vaeS63znImDxHf+IGJhYLMd+qHtUl7LJpgF2hxfg08Rsg24KKNAH0ywIEb 7Uxx+5qLDTgNqsgNG3EKDXRamGTOg0wuTNHoLQqecohm9ooMhnDtFckafw=3D=3D =3Dks4+ =2D----END PGP SIGNATURE-----