[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#58029: 28.2; Struct boundaries ignored by bounds-of-thing-at-point
From: |
Lars Ingebrigtsen |
Subject: |
bug#58029: 28.2; Struct boundaries ignored by bounds-of-thing-at-point |
Date: |
Sat, 24 Sep 2022 15:42:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Richard Hopkins <emacs@unbit.co.uk> writes:
> Thanks for checking, however, I still get the same issue on what I
> believe is Emacs 29...
It only recognises these constructs if you're in a buffer where the
syntax rules say so. So try:
(with-temp-buffer
(insert (prin1-to-string (make-foo :a 1)))
(emacs-lisp-mode)
(goto-char (point-min))
(list
(buffer-string)
(bounds-of-thing-at-point 'sexp)
(prin1-to-string (read (current-buffer)))))
=> ("#s(foo 1)" (1 . 10) "#s(foo 1)")