unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Richard Hopkins <emacs@unbit.co.uk>
Cc: 58029@debbugs.gnu.org
Subject: bug#58029: 28.2; Struct boundaries ignored by bounds-of-thing-at-point
Date: Sat, 24 Sep 2022 15:42:40 +0200	[thread overview]
Message-ID: <877d1sevn3.fsf@gnus.org> (raw)
In-Reply-To: <94143703d8e48900272990acdf4c9581@unbit.co.uk> (Richard Hopkins's message of "Sat, 24 Sep 2022 14:33:41 +0100")

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)")





  reply	other threads:[~2022-09-24 13:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-23 15:14 bug#58029: 28.2; Struct boundaries ignored by bounds-of-thing-at-point Richard Hopkins
2022-09-24 12:14 ` Lars Ingebrigtsen
2022-09-24 13:33   ` Richard Hopkins
2022-09-24 13:42     ` Lars Ingebrigtsen [this message]
2022-09-24 14:02       ` Richard Hopkins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877d1sevn3.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=58029@debbugs.gnu.org \
    --cc=emacs@unbit.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).