GNU bug report logs -
#53540
29.0.50; Completion support for the NAME field of cl-defmethod
Previous Next
To reply to this bug, email your comments to 53540 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#53540
; Package
emacs
.
(Wed, 26 Jan 2022 03:21:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Michael Heerdegen <michael_heerdegen <at> web.de>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 26 Jan 2022 03:21:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello,
to illustrate: eval
(cl-defgeneric foobar (x))
and then, e.g. in *scratch*, insert
(cl-defmethod foo|
and try completion at point (M-TAB) at the position indicated with the
"|" meta marker. No completion is performed. Only completion of
variable names is tried, not the names of generic functions. Would be
nice to support that.
Regards,
Michael.
In GNU Emacs 29.0.50 (build 46, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0)
of 2022-01-26 built on drachen
Repository revision: e82062656f3cb77319457b0dc977949f3e4ca776
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12011000
System Description: Debian GNU/Linux 11 (bullseye)
Configured using:
'configure --with-native-compilation --with-xwidgets'
Severity set to 'wishlist' from 'normal'
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 26 Jan 2022 15:28:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#53540
; Package
emacs
.
(Sat, 29 Jan 2022 00:18:01 GMT)
Full text and
rfc822 format available.
Message #10 received at 53540 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Michael Heerdegen <michael_heerdegen <at> web.de> writes:
> (cl-defmethod foo|
>
> and try completion at point (M-TAB) at the position indicated with the
> "|" meta marker.
Is this ok?
[0001-Elisp-mode-Fix-completion-of-cl-defmethod-NAME-arg.patch (text/x-diff, inline)]
From 826cf267ba8d65110ef6d338e30033f6cb79d66f Mon Sep 17 00:00:00 2001
From: Michael Heerdegen <michael_heerdegen <at> web.de>
Date: Thu, 27 Jan 2022 02:56:17 +0100
Subject: [PATCH] Elisp-mode: Fix completion of cl-defmethod NAME arg
Fixes Bug#53540.
* lisp/progmodes/elisp-mode.el (elisp--expect-function-p):
Add "defmethod" to recognized parent expression types.
---
lisp/progmodes/elisp-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index 0dfff32f20..914e4e3836 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -449,7 +449,7 @@ elisp--expect-function-p
(regexp-opt '("declare-function"
"function" "defadvice"
"callf" "callf2"
- "defsetf"))
+ "defsetf" "defmethod"))
"[ \t\r\n]+"))
(eq (match-end 0) pos)))))))
--
2.30.2
[Message part 3 (text/plain, inline)]
Michael.
This bug report was last modified 3 years and 140 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.