From debbugs-submit-bounces@debbugs.gnu.org Sat May 22 20:28:12 2021 Received: (at submit) by debbugs.gnu.org; 23 May 2021 00:28:12 +0000 Received: from localhost ([127.0.0.1]:40262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkbyU-000894-QI for submit@debbugs.gnu.org; Sat, 22 May 2021 20:28:12 -0400 Received: from mail-ej1-f51.google.com ([209.85.218.51]:38543) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkXUM-0001He-Tk for submit@debbugs.gnu.org; Sat, 22 May 2021 15:40:48 -0400 Received: by mail-ej1-f51.google.com with SMTP id i7so17676904ejc.5 for ; Sat, 22 May 2021 12:40:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:subject:from:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=U6HpWQZbJK9brw3LQVKQXyJ//lo4olIfgaFqcKimfTE=; b=TTJD6M1B4P8eh9tIu9PPBbSjfVyT5o8alkEJIqjxfOBQiMjGE2Y1q5HyDgJQ80xdio pA7sJolzhHhXWDqLDn24uMHGYWvX0dpgoBW+1ZyxY9Qlp6L20+J11JZWEmarqeJt47KX PK774LIv3amG2+1JXBOs/J7d8SZPiiZJvkHOB5djl/SzEY31ySSY+B27LSV9V/nsbbvN qxatGa3WXALO3N+HjyDdOKdwCovnABhLg8EeZldNfuDj/MAn1H4pREr94z57Yj7HTYTc FH/SveQEim7CHMgdMc2evgouSQSV0VVIBIycU9NXzIqYQOjaunUsVI8Rv00wQiTueDIy j9kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:subject:from:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=U6HpWQZbJK9brw3LQVKQXyJ//lo4olIfgaFqcKimfTE=; b=IoP8bd/X5zuB1d7rxlrHh8Faohioy/Pc3mgv2r+SItWse1oA1q/z17j7HuUt9erBFf VeVo4vVMbL8lLS1wiDx1QynxiGlFf9GQiIb8y398vCxtJMGesbwEhoDdrjYwdDZoKJUT SYUnWvlZlkKULhkHbrIItZw/AP602y+rxx2uDr+tv7giEBuNs+8pBDcouEzddZf/ttXS zevcjQjO9EMibqIDkKeygRpbBrdq//uIbkbtjIRMOqk8/pqqqdzaqjlYg7SbDGkADxLQ NsRe7s1g5+SNh9JPsKX0mHj2aZpaDE5cK/y0AQmggDU9y1Z4pbgX8WWQxQxcg4IEu52b p2Eg== X-Gm-Message-State: AOAM5332aEkxm5vThxn0qt9U0gammzE1Tt5e/VDGmX2VdsJbUxjQNunQ ahbf6YKcWBwqwRwMyfZJ/YdqHyCIG7o= X-Google-Smtp-Source: ABdhPJzEstor4KwKco74Wg8aDpYdZ67k8cyBH2RiMlo8YNmuCijsa3na3VAj8b8Uqd1QwYPnL5OEsg== X-Received: by 2002:a17:906:a245:: with SMTP id bi5mr16620773ejb.316.1621712441049; Sat, 22 May 2021 12:40:41 -0700 (PDT) Received: from [10.0.0.42] (45.59.143.95.dyn.dsl.as8758.net. [95.143.59.45]) by smtp.gmail.com with ESMTPSA id yr15sm5781099ejb.16.2021.05.22.12.40.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 22 May 2021 12:40:40 -0700 (PDT) To: submit@debbugs.gnu.org Subject: CC Mode 5.34.1 (C/*l); Typing `(` des not trigger eldoc From: Johannes Neyer Message-ID: <70aa74c8-956b-c09e-8b1d-11fdbe1d76d8@gmail.com> Date: Sat, 22 May 2021 21:40:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: de-CH X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 22 May 2021 20:28:09 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) `(` is bound to `c-electric-paren` which does not trigger eldoc by default. Most modes have`(` bound to `self-insert-command`. See https://github.com/joaotavora/eglot/issues/696 for reference. Package: cc-mode Emacs : GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.27, cairo version 1.17.4) of 2021-03-26 Package: CC Mode 5.34.1 (C/*l) Buffer Style: linux c-emacs-features: (pps-extended-state col-0-paren posix-char-classes gen-string-delim gen-comment-delim syntax-properties 1-bit) From debbugs-submit-bounces@debbugs.gnu.org Sun May 23 13:14:25 2021 Received: (at control) by debbugs.gnu.org; 23 May 2021 17:14:25 +0000 Received: from localhost ([127.0.0.1]:41716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkrgG-0006DO-SM for submit@debbugs.gnu.org; Sun, 23 May 2021 13:14:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56898) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkrgE-0006D7-IJ for control@debbugs.gnu.org; Sun, 23 May 2021 13:14:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37464) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkrg9-0005c6-Cs for control@debbugs.gnu.org; Sun, 23 May 2021 13:14:17 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1lkrg9-0005wl-4l for control@debbugs.gnu.org; Sun, 23 May 2021 13:14:17 -0400 Subject: control message for bug 48596 To: X-Mailer: mail (GNU Mailutils 3.4) Message-Id: From: Glenn Morris Date: Sun, 23 May 2021 13:14:17 -0400 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) reassign 48596 emacs,cc-mode From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 15 06:20:56 2022 Received: (at 48596) by debbugs.gnu.org; 15 Jul 2022 10:20:56 +0000 Received: from localhost ([127.0.0.1]:39527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCIRM-0005s6-GJ for submit@debbugs.gnu.org; Fri, 15 Jul 2022 06:20:56 -0400 Received: from quimby.gnus.org ([95.216.78.240]:45088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCIRK-0005rk-Pp for 48596@debbugs.gnu.org; Fri, 15 Jul 2022 06:20:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=HdjBcDosS15vJbv4opRTOjLVt0vJ85s2SoH1xHSMyd4=; b=M7z4/ELxTn/vysvLeXfiTmwlTR dUiGdMMgsEpUtJ9j77DXVGU76hI16sgv9+kiuwBuOnGiRY6Kl5K9XWf8TBHsTbn7gLt1zBr+PkWQD 9CHzgZoRk0Ehik3Arp064M/R+kTi7VWpLYH4c+qax6ioFPYGBO8ue14YpmzmkG8g3k9M=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oCIRB-0005UW-Qz; Fri, 15 Jul 2022 12:20:48 +0200 From: Lars Ingebrigtsen To: Johannes Neyer Subject: Re: bug#48596: CC Mode 5.34.1 (C/*l); Typing `(` des not trigger eldoc In-Reply-To: <70aa74c8-956b-c09e-8b1d-11fdbe1d76d8@gmail.com> (Johannes Neyer's message of "Sat, 22 May 2021 21:40:40 +0200") References: <70aa74c8-956b-c09e-8b1d-11fdbe1d76d8@gmail.com> X-Now-Playing: Autechre's _Plus_: "DekDre Scap B" Date: Fri, 15 Jul 2022 12:20:44 +0200 Message-ID: <87mtdan0cj.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Johannes Neyer writes: > `(` is bound to `c-electric-paren` which does not trigger eldoc by > default. Most > modes have`(` bound to `self-insert-command`. > > See https://github.com/joaotavora/eglot/issues/696 for referenc [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48596 Cc: Alan Mackenzie , 48596@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Johannes Neyer writes: > `(` is bound to `c-electric-paren` which does not trigger eldoc by > default. Most > modes have`(` bound to `self-insert-command`. > > 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. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 15 14:51:00 2022 Received: (at 48596) by debbugs.gnu.org; 15 Jul 2022 18:51:00 +0000 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 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 Received: (qmail 6459 invoked by uid 3782); 15 Jul 2022 18:50:49 -0000 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 Received: (qmail 9309 invoked by uid 1000); 15 Jul 2022 18:50:48 -0000 Date: Fri, 15 Jul 2022 18:50:48 +0000 To: Lars Ingebrigtsen Subject: Re: bug#48596: CC Mode 5.34.1 (C/*l); Typing `(` des not trigger eldoc 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 Content-Disposition: inline In-Reply-To: <87mtdan0cj.fsf@gnus.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 48596 Cc: Johannes Neyer , 48596@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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).