From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Newsgroups: gmane.emacs.help Subject: Re: eldoc-mode can't enabled in sql-mode Date: Sat, 07 Mar 2020 17:10:16 +0100 Message-ID: <874kv016zb.fsf@gmail.com> References: <87h7z0b7um.fsf@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="94273"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Emacs Help To: stardiviner Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 07 17:10:24 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 1jAc1v-000OS9-6O for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 07 Mar 2020 17:10:23 +0100 Original-Received: from localhost ([::1]:50144 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAc1u-0008U7-6H for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 07 Mar 2020 11:10:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41062) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAc1b-0008Tm-Ez for help-gnu-emacs@gnu.org; Sat, 07 Mar 2020 11:10:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAc1a-0001Gl-EJ for help-gnu-emacs@gnu.org; Sat, 07 Mar 2020 11:10:03 -0500 Original-Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:45050) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAc1a-0001EB-6j for help-gnu-emacs@gnu.org; Sat, 07 Mar 2020 11:10:02 -0500 Original-Received: by mail-lj1-x232.google.com with SMTP id a10so5464098ljp.11 for ; Sat, 07 Mar 2020 08:10:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=cZn8txlAiu+JWSrgpflIJYwMovbnfIwT8XItMoEmO9Q=; b=qPm2gVrO8jyLpktf/taRy/eLZabi8pVf6xdXlR/SOjbszdlJ7O3RarL8wI/ujeS73K msgnfLJle2ciGa3h+Ho0TIcGhtaG0Jhxyszz1RpPGD6IpO5GaktapfekFrfSEimGK+Tl zi3chRdI/+FagLJPYPlp1J2BzpnDT4M6sEG1gWjqG2AFOw32CK/0i5fAqshAPIJ7WOVC UQTkLftXS9+viYDEk//zrItJk3aw7lStAKXnUuGudwQ3UtWJD/GBfz/Z4N7TxNLGq1Yo Yh1UQG55On/Z+FI2Qy/ZyXazqp5bujfnfIxDUSQ1zWfXGDAdiCmMGuIf5iOKwR7qBJuH VwOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=cZn8txlAiu+JWSrgpflIJYwMovbnfIwT8XItMoEmO9Q=; b=YNdLnwhjjhZFlbDQdnLZG5MGhdOSQ+9lRQnfJqy0wG7Xfy/O9lEEkUE8Xv6HZOyMvd 02InALKpqLiXXlgD4p0d3DLzqiG58FQuUB+XqHOMUR3hYVvQb1iWQSIQwntOY/M+Z7ZZ +D2CX6o6cP1vw6Y0QgX/gKkVmFomTFT5wDSgS23s1dlo1ENQ98tKDFFAcc+ylUJJXM3Y tyqvFxcscs3rsE6vy6plJFIOkVcnSSDG4oEm82yxmUEPW8TCZ1oGdb9KGkueDIl+QK6e FMbI5gz82AqAiYJnwuX3Lhtn98133fwEaPCc0Yge/OpCSvFvOPwZIGjQHjyjw+HuN/k1 mpcA== X-Gm-Message-State: ANhLgQ1M7pbpUlRIbTg69rzhbWf9Eo4DEHEdzB8jT/DLo3dBjau1FjCo /SY4lReMS+Rh2eh8HsH2L44= X-Google-Smtp-Source: ADFU+vvKJ4ygJ9mqiy4Jl5yLpE5WQMg3SN84FWMj/wJYoj2zt5AyeHmhJFBk5ScklbJWCMS3PyU7TA== X-Received: by 2002:a05:651c:204:: with SMTP id y4mr221401ljn.280.1583597400355; Sat, 07 Mar 2020 08:10:00 -0800 (PST) Original-Received: from localhost ([185.112.167.59]) by smtp.gmail.com with ESMTPSA id q4sm17025357ljm.51.2020.03.07.08.09.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Mar 2020 08:09:59 -0800 (PST) In-Reply-To: <87h7z0b7um.fsf@gmail.com> (stardiviner's message of "Sat, 07 Mar 2020 21:41:21 +0800") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::232 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:122540 Archived-At: 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'. 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. --=20 =C5=A0t=C4=9Bp=C3=A1n