emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 7681eacc399: elisp: Fix completion at funpos after empty let bind


From: Dmitry Gutov
Subject: master 7681eacc399: elisp: Fix completion at funpos after empty let bindings form
Date: Mon, 28 Oct 2024 19:39:02 -0400 (EDT)

branch: master
commit 7681eacc399612625b38d9504407722bde23dc22
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@gutov.dev>

    elisp: Fix completion at funpos after empty let bindings form
    
    * lisp/progmodes/elisp-mode.el (elisp-completion-at-point): Use
    'skip-syntax-backward' instead of 'backward-list' since the latter
    also skips over other syntax, such as empty parens (bug#73880).
---
 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 62f1045a512..2b6d9d2b8bb 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -789,7 +789,7 @@ functions are annotated with \"<f>\" via the
                                       (goto-char (1- beg))
                                       (when (eq parent ?\()
                                         (up-list -1))
-                                      (forward-symbol -1)
+                                      (skip-syntax-backward " w_")
                                       (or
                                        (looking-at
                                         "\\_<\\(let\\*?\\|bind\\*\\)\\_>")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]