]> git.eshelyaron.com Git - emacs.git/commitdiff
elisp-completion-at-point: Replace last usage of 'read'
authorDmitry Gutov <dgutov@yandex.ru>
Sat, 11 Jun 2022 00:45:46 +0000 (03:45 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Sat, 11 Jun 2022 00:45:46 +0000 (03:45 +0300)
* lisp/progmodes/elisp-mode.el (elisp-completion-at-point):
Replace the last remaining usage of 'read' (bug#55491).

lisp/progmodes/elisp-mode.el

index 77bf3f1ed181cba88aad3886c1481086cc5889b9..5989e1161b5ba657a34c445354fd731b547476d3 100644 (file)
@@ -697,7 +697,10 @@ functions are annotated with \"<f>\" via the
                                      (let ((c (char-after)))
                                        (if (eq c ?\() ?\(
                                          (if (memq (char-syntax c) '(?w ?_))
-                                             (read (current-buffer))))))
+                                             (let ((pt (point)))
+                                               (forward-sexp)
+                                               (intern-soft
+                                                (buffer-substring pt (point))))))))
                             (error nil))))
                      (pcase parent
                        ;; FIXME: Rather than hardcode special cases here,