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:35:28 +0800 Message-ID: <87imjftvyn.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="104670"; 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:36:10 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 1jAlnV-000R94-F7 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 08 Mar 2020 03:36:09 +0100 Original-Received: from localhost ([::1]:54416 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAlnU-000633-Ic for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 07 Mar 2020 21:36:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38029) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAlnC-00062i-9V for help-gnu-emacs@gnu.org; Sat, 07 Mar 2020 21:35:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAlnB-0001Zp-3N for help-gnu-emacs@gnu.org; Sat, 07 Mar 2020 21:35:50 -0500 Original-Received: from [183.249.128.110] (port=13119 helo=dark.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jAlnA-0001O2-MA for help-gnu-emacs@gnu.org; Sat, 07 Mar 2020 21:35:49 -0500 Original-Received: by dark.localdomain (Postfix, from userid 1000) id 0026624255C; Sun, 8 Mar 2020 10:35:28 +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:122542 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 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. =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----- iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl5kWfAUHG51bWJjaGls ZEBnbWFpbC5jb20ACgkQG13xyVromsPNjwf+ISo4dgWxZI8bOlrPUcKkj3+rRYrx lmMsHnCR9NvF7Y0UBhvza8FCBlumjPkobL2TTy7tKt4wc6RECLezrSuqGKnaOBGF M45jN0OuDg6B2cebomQY5hwFUYwPnKeJn6x5PNNYAy8G4wm6bLXEomdS1T7cHM5a n6A1TcVxQtVS3fNqPTIBbLtKNaezdrMAKOYL6KXj+774V2UQ/YGnsK8j8c5VydRE bVq4gUhciZPDYN9JwpldtaIKaS5KjQjLmgCb5lUa3FKBIuax1AGoHmjBKfFTq6im 4850h9cP/FH9oJ0jq+cxrU/kYKz3wYCZnfdNaNUHOY5bnVTnYaLu/vsViQ=3D=3D =3Do4Jb =2D----END PGP SIGNATURE-----