GNU bug report logs - #73880
Master: emacs-lisp-mode: Tab completion for a function position fails in a `let' form.

Previous Next

Package: emacs;

Reported by: Alan Mackenzie <acm <at> muc.de>

Date: Sat, 19 Oct 2024 13:10:02 UTC

Severity: normal

Done: Dmitry Gutov <dmitry <at> gutov.dev>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Dmitry Gutov <dmitry <at> gutov.dev>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#73880: closed (Master: emacs-lisp-mode: Tab completion for a
 function position fails in a `let' form.)
Date: Tue, 29 Oct 2024 00:17:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 29 Oct 2024 02:15:49 +0200
with message-id <2ae4581c-c13c-428c-ad9e-9b911fa704b6 <at> gutov.dev>
and subject line Re: bug#73880: Master: emacs-lisp-mode: Tab completion for a function position fails in a `let' form.
has caused the debbugs.gnu.org bug report #73880,
regarding Master: emacs-lisp-mode: Tab completion for a function position fails in a `let' form.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
73880: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=73880
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Alan Mackenzie <acm <at> muc.de>
To: bug-gnu-emacs <at> gnu.org
Cc: acm <at> muc.de
Subject: Master: emacs-lisp-mode: Tab completion for a function position
 fails in a `let' form.
Date: Sat, 19 Oct 2024 13:09:00 +0000
Hello, Emacs.

In a recent master version, for example this commit:

commit 5340fdaade1f8fe7af08293619cca89ae0796fcf (HEAD -> master, origin/master, origin/HEAD)
Author: Alan Mackenzie <acm <at> muc.de>
Date:   Wed Oct 16 13:17:26 2024 +0000

    CC Mode: Fix dodgy lisp `let' form.

, start emacs -Q, followed by entering the following incomplete form:

(defun foo ()
  (let (
        )
    (match-b

With point after match-b, type M-TAB.  This should complete to
match-beginning or show that function as a completion option.  Instead
it signals the error "No match".  This is a bug.

It would seem the completion function elisp-completion-at-point thinks
it is completing a variable symbol rather than a function symbol.

-- 
Alan Mackenzie (Nuremberg, Germany).


[Message part 3 (message/rfc822, inline)]
From: Dmitry Gutov <dmitry <at> gutov.dev>
To: Alan Mackenzie <acm <at> muc.de>
Cc: 73880-done <at> debbugs.gnu.org
Subject: Re: bug#73880: Master: emacs-lisp-mode: Tab completion for a function
 position fails in a `let' form.
Date: Tue, 29 Oct 2024 02:15:49 +0200
Hi Alan,

On 28/10/2024 14:12, Alan Mackenzie wrote:

> So I'll withdraw my complaint about `(let (match-b.
> 
> I think your patch is better than my suggested fix, since it's much
> shorter and does the job.  I would be happy if you committed it and
> closed the bug.

Thanks for testing! Now pushed to master in commits 7681eacc399 and 
41f347c1d1a, and closing.


This bug report was last modified 205 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.