From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#48596: CC Mode 5.34.1 (C/*l); Typing `(` des not trigger eldoc Date: Fri, 15 Jul 2022 18:50:48 +0000 Message-ID: References: <70aa74c8-956b-c09e-8b1d-11fdbe1d76d8@gmail.com> <87mtdan0cj.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7061"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Johannes Neyer , 48596@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 15 20:51:16 2022 Return-path: Envelope-to: geb-bug-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 1oCQPE-0001dd-IN for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Jul 2022 20:51:16 +0200 Original-Received: from localhost ([::1]:33238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oCQPD-0002VG-3V for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Jul 2022 14:51:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39870) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCQP0-0002Tr-DG for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 14:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44383) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oCQOz-0001b7-VH; Fri, 15 Jul 2022 14:51:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oCQOz-0003rH-Lx; Fri, 15 Jul 2022 14:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Fri, 15 Jul 2022 18:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48596 X-GNU-PR-Package: emacs,cc-mode Original-Received: via spool by 48596-submit@debbugs.gnu.org id=B48596.165791106014823 (code B ref 48596); Fri, 15 Jul 2022 18:51:01 +0000 Original-Received: (at 48596) by debbugs.gnu.org; 15 Jul 2022 18:51:00 +0000 Original-Received: from localhost ([127.0.0.1]:42142 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCQOx-0003r1-Ny for submit@debbugs.gnu.org; Fri, 15 Jul 2022 14:50:59 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:53735 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1oCQOu-0003qh-L0 for 48596@debbugs.gnu.org; Fri, 15 Jul 2022 14:50:58 -0400 Original-Received: (qmail 6459 invoked by uid 3782); 15 Jul 2022 18:50:49 -0000 Original-Received: from acm.muc.de (p4fe15759.dip0.t-ipconnect.de [79.225.87.89]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 15 Jul 2022 20:50:48 +0200 Original-Received: (qmail 9309 invoked by uid 1000); 15 Jul 2022 18:50:48 -0000 Content-Disposition: inline In-Reply-To: <87mtdan0cj.fsf@gnus.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:237123 Archived-At: Hello, Lars and Johannes. On Fri, Jul 15, 2022 at 12:20:44 +0200, Lars Ingebrigtsen wrote: > Johannes Neyer writes: > > `(` is bound to `c-electric-paren` which does not trigger eldoc by > > default. This is true. > Most modes have`(` bound to `self-insert-command`. This is also true. There seems to be a suggestion that if CC Mode's ( were bound to self-insert-command, suddenly eldoc facilities would become available. This is sadly not true. Doing a quick grep through lisp/progmodes, it seems that those languages which use eldoc do not have compile-time type checking. This makes it far easier to write the whole argument sequence of a function into the limited space of the echo area. The languages using eldoc seem to be in a minority - Lisp, Python, Perl, Octave. I do not know if the eldoc infrastructure handles languages with compile-time type annotations. > > See https://github.com/joaotavora/eglot/issues/696 for reference. > (I'm going through old bug reports that unfortunately weren't resolved > at the time.) > Perhaps Alan has some comments here; added to the CCs. I think that to add an eldoc facility to CC Mode would be quite a lot of work. Patches are welcome! > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no -- Alan Mackenzie (Nuremberg, Germany).