aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2022-06-11 03:45:46 +0300
committerDmitry Gutov2022-06-11 03:45:46 +0300
commitcb0c697e21f710cb8df56c33d951f780a2a1e40e (patch)
tree2cdbe29093914c2fc3f3fe57094041b46841bd7d
parent3247c31d672e5fed83435150ba62006acaddcf84 (diff)
downloademacs-cb0c697e21f710cb8df56c33d951f780a2a1e40e.tar.gz
emacs-cb0c697e21f710cb8df56c33d951f780a2a1e40e.zip
elisp-completion-at-point: Replace last usage of 'read'
* lisp/progmodes/elisp-mode.el (elisp-completion-at-point): Replace the last remaining usage of 'read' (bug#55491).
-rw-r--r--lisp/progmodes/elisp-mode.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index 77bf3f1ed18..5989e1161b5 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -697,7 +697,10 @@ functions are annotated with \"<f>\" via the
697 (let ((c (char-after))) 697 (let ((c (char-after)))
698 (if (eq c ?\() ?\( 698 (if (eq c ?\() ?\(
699 (if (memq (char-syntax c) '(?w ?_)) 699 (if (memq (char-syntax c) '(?w ?_))
700 (read (current-buffer)))))) 700 (let ((pt (point)))
701 (forward-sexp)
702 (intern-soft
703 (buffer-substring pt (point))))))))
701 (error nil)))) 704 (error nil))))
702 (pcase parent 705 (pcase parent
703 ;; FIXME: Rather than hardcode special cases here, 706 ;; FIXME: Rather than hardcode special cases here,