GNU bug report logs -
#48596
CC Mode 5.34.1 (C/*l); Typing `(` des not trigger eldoc
Previous Next
To reply to this bug, email your comments to 48596 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
help-debbugs <at> gnu.org
:
bug#48596
; Package
debbugs.gnu.org
.
(Sun, 23 May 2021 00:29:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Johannes Neyer <johannes.neyer <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
help-debbugs <at> gnu.org
.
(Sun, 23 May 2021 00:29:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
`(` 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)
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org
:
bug#48596
; Package
emacs,cc-mode
.
(Fri, 15 Jul 2022 10:21:01 GMT)
Full text and
rfc822 format available.
Message #10 received at 48596 <at> debbugs.gnu.org (full text, mbox):
Johannes Neyer <johannes.neyer <at> gmail.com> 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
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org
:
bug#48596
; Package
emacs,cc-mode
.
(Fri, 15 Jul 2022 18:51:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 48596 <at> debbugs.gnu.org (full text, mbox):
Hello, Lars and Johannes.
On Fri, Jul 15, 2022 at 12:20:44 +0200, Lars Ingebrigtsen wrote:
> Johannes Neyer <johannes.neyer <at> gmail.com> 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).
This bug report was last modified 2 years and 334 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.