From unknown Tue Aug 19 05:26:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58029: 28.2; Struct boundaries ignored by bounds-of-thing-at-point Resent-From: Richard Hopkins Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Sep 2022 16:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58029 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 58029@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16639505372663 (code B ref -1); Fri, 23 Sep 2022 16:29:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Sep 2022 16:28:57 +0000 Received: from localhost ([127.0.0.1]:41591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oblXs-0000gs-Ec for submit@debbugs.gnu.org; Fri, 23 Sep 2022 12:28:57 -0400 Received: from lists.gnu.org ([209.51.188.17]:50542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obkO6-0002gr-Hd for submit@debbugs.gnu.org; Fri, 23 Sep 2022 11:14:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obkO5-0000YU-Tf for bug-gnu-emacs@gnu.org; Fri, 23 Sep 2022 11:14:46 -0400 Received: from bird.elm.relay.mailchannels.net ([23.83.212.17]:12232) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obkNy-0005Xh-7D for bug-gnu-emacs@gnu.org; Fri, 23 Sep 2022 11:14:45 -0400 X-Sender-Id: 9wt3zsp42r|x-authuser|emacs@unbit.co.uk Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id EEB4F802709 for ; Fri, 23 Sep 2022 15:14:33 +0000 (UTC) Received: from apollo.krystal.co.uk (unknown [127.0.0.6]) (Authenticated sender: 9wt3zsp42r) by relay.mailchannels.net (Postfix) with ESMTPA id 150EB80318C for ; Fri, 23 Sep 2022 15:14:32 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1663946073; a=rsa-sha256; cv=none; b=aKKfav72aUUZoY3X6b1RLiRWisc80s2NSXT3vTCUSOOJiuFU1caVUKXhRzwJHXiQh0sswR uBT8u07A3Ynl0068x3x4VeWYYlbSjQgu1CaPuz77ZWuqwfBp3rUGmGFsIDBwxbgNorZbXE HXvwfssWa5ZXKIviHt6sTldWSNanTFdm3rSWFbyVWsIwtpq2lKpDnXDlc7lzWQluI0Iip/ 1EQY2TeaZkciG5CL4i/iUif7v8SE3sCouyiRs8tcOoG9RezI4UIzIJ1o8/9H4gYrtW0qoX G2qS/CXFaWX38kNpDTTYcF0+w0nOABdTJ96TkUT5dpJKSBTDHT40CTdYNJKCHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1663946073; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=wxf8kHnp/YuZ6OaIh8PKrKEz5xDDUykx4AH8GDaTN7o=; b=cJiM1iL1hFBh34Qe4h6npQIO1Bl2rPJOFwpDU5ZeBawQdiCMgO2T/FgGIi7ack4mLnzlNd nHywfQnIFvarmvCFH4pxvaMj93hm/Iqnw+AKQjHARKTsXeBh7NzuXKK1MdqDHwPGqc2vtP ttj99YH6PEDOe78QEGaMZW76BBX3UaPczruhUB7JG4vSatZFLVChC32yUnVd8qMoy16KX9 I76S3Dqks3UVqraXNeZ4JAIY9qw4sXZOSiix922R0EMXOY/Otq5lZOqrjLjHgO/LXlsReV y6VNrulV8tUX3nLBRfnd/OnPxz7Ev/7Tm+DoEEUt/PQnb0IipbvGa0Fzmk1T+A== ARC-Authentication-Results: i=1; rspamd-64f49dbfc4-xdwjn; auth=pass smtp.auth=9wt3zsp42r smtp.mailfrom=emacs@unbit.co.uk X-Sender-Id: 9wt3zsp42r|x-authuser|emacs@unbit.co.uk X-MC-Relay: Neutral X-MailChannels-SenderId: 9wt3zsp42r|x-authuser|emacs@unbit.co.uk X-MailChannels-Auth-Id: 9wt3zsp42r X-Abortive-Lettuce: 47e34a932f68afc6_1663946073597_2365345598 X-MC-Loop-Signature: 1663946073597:82375273 X-MC-Ingress-Time: 1663946073596 Received: from apollo.krystal.co.uk (apollo.krystal.co.uk [77.72.0.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.115.125.86 (trex/6.7.1); Fri, 23 Sep 2022 15:14:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=unbit.co.uk ; s=default; h=Content-Transfer-Encoding:Content-Type:Message-ID:Subject:To: From:Date:MIME-Version:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=wxf8kHnp/YuZ6OaIh8PKrKEz5xDDUykx4AH8GDaTN7o=; b=myDNnkHz1v6ZMdpGfKfD+Gd+vg Ph1XqDbl3vy6IK8pRIUGzgdrJu7dSXqiBT1BERAMlJ+fEaeAzczJA3reZpmfFwXMMfoE+yc5etMgL OHgXP1gssg/syhp5UX5ReEcx7djSq9G11HcMa5yxeaDPj6W5ytzyW4U25BBLIqqIIfJ1xSRei8ULt eDb8FLXlcGFSBiUGSWGPjH54VYi1N/ABKtLdZSJJaRaZZxC/ASuHIgbQJJyB+LK2Q37vkvtf49Qvp 58vQe8lGtcDgl2B6suSaJFWmOE3iAaZVgyNHI0XPtL4tEMGuBPIURt4qZnQ81lS8oHuAQmVrXUR5m hOtWIESg==; Received: from [::1] (port=45584 helo=apollo.krystal.co.uk) by apollo.krystal.co.uk with esmtpa (Exim 4.95) (envelope-from ) id 1obkNt-008bRi-8B for bug-gnu-emacs@gnu.org; Fri, 23 Sep 2022 16:14:31 +0100 MIME-Version: 1.0 Date: Fri, 23 Sep 2022 16:14:31 +0100 From: Richard Hopkins User-Agent: Roundcube Webmail/1.4.12 Message-ID: X-Sender: emacs@unbit.co.uk Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-AuthUser: emacs@unbit.co.uk Received-SPF: pass client-ip=23.83.212.17; envelope-from=emacs@unbit.co.uk; helo=bird.elm.relay.mailchannels.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Fri, 23 Sep 2022 12:28:55 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) I think this is a bug - any thoughts on the following? The initial "#s" as part of printed structures are ignored by `bounds-of-thing-at-point' which means it will a) pick up the wrong expression when inside the printed struct; and b) ignore the struct even when point is on the initial "#" The following `emacs -Q` recipe should help show the interaction between the struct representation and whether it's picked up by `bounds-of-thing-at-point'. (require 'cl-lib) (cl-defstruct foo a) (make-foo :a 1) ;; => #s(foo 1) ;; Bounds should be found starting from 1, but is nil (with-temp-buffer (insert (prin1-to-string (make-foo :a 1))) (goto-char (point-min)) (list (buffer-string) (bounds-of-thing-at-point 'sexp) (prin1-to-string (read (current-buffer))))) ;; => ("#s(foo 1)" nil "#s(foo 1)") ;; Whilst there is a list from point, the boundary should be ;; adjusted backwards as it's part of a struct. (with-temp-buffer (insert (prin1-to-string (make-foo :a 1))) (goto-char (point-min)) (forward-char 2) (list (buffer-string) (bounds-of-thing-at-point 'sexp) (prin1-to-string (read (current-buffer))))) ;; => ("#s(foo 1)" (3 . 10) "(foo 1)") In GNU Emacs 28.2 (build 1, x86_64-pc-cygwin) of 2022-09-15 built on fv-az140-985 Repository revision: 70134aa8264ded36d80248204b2ba43ae3d8f599 Repository branch: master Windowing system distributor 'Microsoft Corp.', version 10.0.19044 Configured using: 'configure --srcdir=/cygdrive/d/a/scallywag/emacs/emacs-28.2-1.x86_64/src/emacs-28.2 --prefix=/usr --exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc --docdir=/usr/share/doc/emacs --htmldir=/usr/share/doc/emacs/html -C --with-w32 'CFLAGS=-ggdb -O2 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -fdebug-prefix-map=/cygdrive/d/a/scallywag/emacs/emacs-28.2-1.x86_64/build=/usr/src/debug/emacs-28.2-1 -fdebug-prefix-map=/cygdrive/d/a/scallywag/emacs/emacs-28.2-1.x86_64/src/emacs-28.2=/usr/src/debug/emacs-28.2-1' CPPFLAGS= LDFLAGS=' Configured features: ACL DBUS GIF GLIB GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY GFILENOTIFY PDUMPER PNG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS XIM XPM ZLIB Important settings: value of $LC_CTYPE: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs auth-source eieio eieio-core eieio-loaddefs password-cache json map text-property-search seq byte-opt bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils thingatpt cl-seq cl-macs gv time-date subr-x cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind gfilenotify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 53485 7761) (symbols 48 6799 1) (strings 32 19933 2170) (string-bytes 1 623050) (vectors 16 13667) (vector-slots 8 177937 11466) (floats 8 28 287) (intervals 56 293 24) (buffers 992 11)) From unknown Tue Aug 19 05:26:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58029: 28.2; Struct boundaries ignored by bounds-of-thing-at-point Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Sep 2022 12:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58029 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Richard Hopkins Cc: 58029@debbugs.gnu.org Received: via spool by 58029-submit@debbugs.gnu.org id=B58029.166402167715919 (code B ref 58029); Sat, 24 Sep 2022 12:15:02 +0000 Received: (at 58029) by debbugs.gnu.org; 24 Sep 2022 12:14:37 +0000 Received: from localhost ([127.0.0.1]:42589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oc43I-00048g-OH for submit@debbugs.gnu.org; Sat, 24 Sep 2022 08:14:37 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oc43H-00048O-FX for 58029@debbugs.gnu.org; Sat, 24 Sep 2022 08:14:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5x2oL03NBOY0zlDY2IN8nudTYALH1pRExCbSe6ostRY=; b=O0bpC6VLUiwWovvq9ZbhCbVWhJ Qd3WGBYsxFrPGIfwTtxUgsmzyJ4RZRT49mUdCDtkHGV3sGw7nVwgpcQxUqnY13FX3Pr1n4WoDvE78 oTd5OsSsJMg/mR4F7yFFH8uzJT0Fla6BF7tFs4tYKnB0Gul0iM1qufV3saT99S6d0Bus=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oc439-0003Nr-BV; Sat, 24 Sep 2022 14:14:29 +0200 From: Lars Ingebrigtsen In-Reply-To: (Richard Hopkins's message of "Fri, 23 Sep 2022 16:14:31 +0100") References: X-Now-Playing: Snapped Ankles's _Come Play The Trees_: "I Want My Minutes Back" Date: Sat, 24 Sep 2022 14:14:26 +0200 Message-ID: <87v8pdx93x.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Richard Hopkins writes: > The initial "#s" as part of printed structures are ignored by > `bounds-of-thing-at-point' which means it will I can reproduce this in Emacs 28.2, but not in Emacs 29, so it looks like this has been fixed already. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Richard Hopkins writes: > The initial "#s" as part of printed structures are ignored by > `bounds-of-thing-at-point' which means it will I can reproduce this in Emacs 28.2, but not in Emacs 29, so it looks like this has been fixed already. From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 24 08:14:42 2022 Received: (at control) by debbugs.gnu.org; 24 Sep 2022 12:14:42 +0000 Received: from localhost ([127.0.0.1]:42592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oc43O-00048x-2F for submit@debbugs.gnu.org; Sat, 24 Sep 2022 08:14:42 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47958) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oc43M-00048Z-KQ for control@debbugs.gnu.org; Sat, 24 Sep 2022 08:14:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZsckS9i30JG7G2PGZx1eNl7NguPy8fvvIwociCR2Tr0=; b=SM9D+yivb4OR060R7QiHhQvo3a rmCa9hArVi+PdZ84Kgp0YgL3ayj1pOSMKibp8rwQSYXygWWeUOJhOlUy3o699Z6ZLCePDVa4pb5x/ CHqOOpWLwzuUcWoQhHdvA2/N/1QYN3MfQ+lLjexpR5SgK0TWPX3dHvo3OFvf7SRY1MA4=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oc43F-0003O1-16 for control@debbugs.gnu.org; Sat, 24 Sep 2022 14:14:35 +0200 Date: Sat, 24 Sep 2022 14:14:32 +0200 Message-Id: <87tu4xx93r.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #58029 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 58029 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 58029 29.1 quit From unknown Tue Aug 19 05:26:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58029: 28.2; Struct boundaries ignored by bounds-of-thing-at-point Resent-From: Richard Hopkins Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Sep 2022 13:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58029 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: 58029@debbugs.gnu.org Received: via spool by 58029-submit@debbugs.gnu.org id=B58029.166402643025099 (code B ref 58029); Sat, 24 Sep 2022 13:34:02 +0000 Received: (at 58029) by debbugs.gnu.org; 24 Sep 2022 13:33:50 +0000 Received: from localhost ([127.0.0.1]:42756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oc5Hx-0006Wj-Nh for submit@debbugs.gnu.org; Sat, 24 Sep 2022 09:33:50 -0400 Received: from crocodile.elm.relay.mailchannels.net ([23.83.212.45]:10398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oc5Hu-0006Wa-Fc for 58029@debbugs.gnu.org; Sat, 24 Sep 2022 09:33:48 -0400 X-Sender-Id: 9wt3zsp42r|x-authuser|emacs@unbit.co.uk Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id DEB3F802B93; Sat, 24 Sep 2022 13:33:44 +0000 (UTC) Received: from apollo.krystal.co.uk (unknown [127.0.0.6]) (Authenticated sender: 9wt3zsp42r) by relay.mailchannels.net (Postfix) with ESMTPA id D4749802B6C; Sat, 24 Sep 2022 13:33:43 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1664026424; a=rsa-sha256; cv=none; b=+HASIhHQ66wt/pdgGwIpTZWBPFBpMP1VYYm5vlFYqJjAEmqn3WFwMSGcXS3hshiPb59wrd H5CE8C9wNIy5HI07F1nLQ7tTMnTXrPli+PtSHFyyZhbBvjseIb3ZZm37qvtiEy/MdRi2NX /5fgW9C9h1M4OBiu+pMRj3t8oJS54NYc4+ZPB5ninLQ2Dvz3DWojHOBri6kw9Qrk7QQxbX aQ/0mF6nNE56uvpJx7V2No55wjOB0sZZFW+p57YwaYf9SaiCzMT+oDvvvyFQBpsymlxngh iPaMHEQOEbT73WoyU6MnSZjMIBhiwACHw02nKx9NOd7gNl+0PknC9hK8SHHG0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1664026424; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=QQbbBaTpFNL+93gWwA7e9wyH2DnrqCuGrDNP6q17/7E=; b=qUfd3y2vX/Yta69+0WhYw/vJOwCH8SLVFDz9XHoSUdHjQLsqpX5+2LgiBtd75e4to9nCYK BlwEH1MVJtlsI3S0O3kIHTSDR1QrWZ1TiFuKZ3QXWgnpZEEmzTKhB87kfK8DJfXv3U5GOo P/umwuoQcGcbE5utBR6J6ky8jAHNTPCXV4aPPC6KJknbM38XVk8LgzPvTiK+fJJIf0AMJs lWVWkrWcbI3yR1gc13XZ3vPdyg5CT2YGWEtoanRH5O1VVmFGZ64plMrZpekMW3QfO4HHuc Bbehir/XFhsXxrtZWgn9gQ0iBITO4rbrw2cJkwcy8yCFUJRwZ/FQSqSbAasE5Q== ARC-Authentication-Results: i=1; rspamd-6d4bb977-4l4f8; auth=pass smtp.auth=9wt3zsp42r smtp.mailfrom=emacs@unbit.co.uk X-Sender-Id: 9wt3zsp42r|x-authuser|emacs@unbit.co.uk X-MC-Relay: Neutral X-MailChannels-SenderId: 9wt3zsp42r|x-authuser|emacs@unbit.co.uk X-MailChannels-Auth-Id: 9wt3zsp42r X-Quick-Belong: 2bf278f452ef77ed_1664026424535_1334451743 X-MC-Loop-Signature: 1664026424534:605485725 X-MC-Ingress-Time: 1664026424534 Received: from apollo.krystal.co.uk (apollo.krystal.co.uk [77.72.0.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.120.38.142 (trex/6.7.1); Sat, 24 Sep 2022 13:33:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=unbit.co.uk ; s=default; h=Content-Transfer-Encoding:Content-Type:Message-ID:References: In-Reply-To:Subject:Cc:To:From:Date:MIME-Version:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=QQbbBaTpFNL+93gWwA7e9wyH2DnrqCuGrDNP6q17/7E=; b=mSliPVnswOuy7++g+oc2sm1GHv EXs3HzF1qqdAfkLjXrlwLRDDt6aTwfLUhoOWW7U6cb3D33Nve5F5nonO047LfJitMvM8k402WDMNL 08OL4T5kudcu7z/1kac0T0BbHuK0ufkzUXD9NfeT3dmkPv7UxF4jfEhxwHfsb5njH1hP7L9pehBIA 0ZT4428Cuc5hk2du9TQ29dVSxxTfJAGRCHRPJV+XWRVSlCciTRBVrjIvZu5tYs3Ap6SbXwSrS44cl 7xs5XFwLmAXwhHAX5X4u8nSX2kG1GoxfdV5WBKbmXegP/Yl5qKe24iAO6qDpy5wJP6QRT/N+rBwXm tpYpVD5w==; Received: from [::1] (port=57522 helo=apollo.krystal.co.uk) by apollo.krystal.co.uk with esmtpa (Exim 4.95) (envelope-from ) id 1oc5Ht-0061Fl-0C; Sat, 24 Sep 2022 14:33:41 +0100 MIME-Version: 1.0 Date: Sat, 24 Sep 2022 14:33:41 +0100 From: Richard Hopkins In-Reply-To: <87v8pdx93x.fsf@gnus.org> References: <87v8pdx93x.fsf@gnus.org> User-Agent: Roundcube Webmail/1.4.12 Message-ID: <94143703d8e48900272990acdf4c9581@unbit.co.uk> X-Sender: emacs@unbit.co.uk Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-AuthUser: emacs@unbit.co.uk X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 2022-09-24 13:14, Lars Ingebrigtsen wrote: > I can reproduce this in Emacs 28.2, but not in Emacs 29, so it looks > like this has been fixed already. Thanks for checking, however, I still get the same issue on what I believe is Emacs 29... $ src/emacs --version GNU Emacs 29.0.50 Development version 1556b4376457 on master branch; build date 2022-09-24. As this also affects `backward-sexp' etc I was looking into a general patch, but as it works for you I wonder if I'm running the wrong version? From unknown Tue Aug 19 05:26:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58029: 28.2; Struct boundaries ignored by bounds-of-thing-at-point Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Sep 2022 13:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58029 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Richard Hopkins Cc: 58029@debbugs.gnu.org Received: via spool by 58029-submit@debbugs.gnu.org id=B58029.166402697325988 (code B ref 58029); Sat, 24 Sep 2022 13:43:02 +0000 Received: (at 58029) by debbugs.gnu.org; 24 Sep 2022 13:42:53 +0000 Received: from localhost ([127.0.0.1]:42776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oc5Qi-0006l6-Vf for submit@debbugs.gnu.org; Sat, 24 Sep 2022 09:42:53 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oc5Qg-0006ks-RZ for 58029@debbugs.gnu.org; Sat, 24 Sep 2022 09:42:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=aeJLwhNbYkMSPmjctpZY/wj4xQ+D0YDBDnyLrRXlVsw=; b=sMUjqIcfzVAkZhz7SHpw0wSKVL MH+fDymqdozWqtNtLtS2zEPZqoU87tLh4Bko94fibeWZeqYn4vNpe2yvnUOSjWn9ibbEBaCiyoHuY JzFlVj0njk3pCmHX0bDMjiKlCO6ipKxxi9Urv49E10ddsh+BpTQEdkxIydXcHMES8OQo=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oc5QY-00040j-MW; Sat, 24 Sep 2022 15:42:44 +0200 From: Lars Ingebrigtsen In-Reply-To: <94143703d8e48900272990acdf4c9581@unbit.co.uk> (Richard Hopkins's message of "Sat, 24 Sep 2022 14:33:41 +0100") References: <87v8pdx93x.fsf@gnus.org> <94143703d8e48900272990acdf4c9581@unbit.co.uk> X-Now-Playing: David Bowie's _Brilliant Live Adventures (4): Look At The Moon! (live Phoenix Festival 97) (1)_: "The Man Who Sold the World" Date: Sat, 24 Sep 2022 15:42:40 +0200 Message-ID: <877d1sevn3.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Richard Hopkins 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: Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Richard Hopkins 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)") From unknown Tue Aug 19 05:26:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58029: 28.2; Struct boundaries ignored by bounds-of-thing-at-point Resent-From: Richard Hopkins Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Sep 2022 14:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58029 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: 58029@debbugs.gnu.org Received: via spool by 58029-submit@debbugs.gnu.org id=B58029.16640281485971 (code B ref 58029); Sat, 24 Sep 2022 14:03:02 +0000 Received: (at 58029) by debbugs.gnu.org; 24 Sep 2022 14:02:28 +0000 Received: from localhost ([127.0.0.1]:44870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oc5jg-0001YF-4B for submit@debbugs.gnu.org; Sat, 24 Sep 2022 10:02:28 -0400 Received: from bee.birch.relay.mailchannels.net ([23.83.209.14]:31786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oc5ja-0001Y4-F5 for 58029@debbugs.gnu.org; Sat, 24 Sep 2022 10:02:27 -0400 X-Sender-Id: 9wt3zsp42r|x-authuser|emacs@unbit.co.uk Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 06941820F9E; Sat, 24 Sep 2022 14:02:21 +0000 (UTC) Received: from apollo.krystal.co.uk (unknown [127.0.0.6]) (Authenticated sender: 9wt3zsp42r) by relay.mailchannels.net (Postfix) with ESMTPA id 11C53820EC6; Sat, 24 Sep 2022 14:02:19 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1664028140; a=rsa-sha256; cv=none; b=jOGQGV5f6Z2Px4srqeJDiINlbNa5AA8B3oeP14KUoeTNA2gSCCcwyN/h4NqvYdzYTwFvLn phNdR8cxku/UzoccmVYyTGxr5Z7Z+uY7/f5TwaQQrirN2afdVID5fzDb20M/BOzjcRW2UJ zQyG6sFYhVQWWG1cCTLUI2/7sPz0Ubjnnzj/iA+CGGg20/BZ5XALe2SuS3CKn3t+hIfCOs qlDmxTE0JnXM8U0Yf2kd6/JHuA7orAYzgKIBcrbbXPx5ZKGH3eKmh3nROwV8xE+XNOvF3R JuB9t0nfWXQzndbsHjzYLYopnERzREkm04JacDVU52/kb0N7NeW1F3LnlA+giQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1664028140; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=AKkBitELRLo3J6ywDyLfU8YQQJps3lanmyMNIFYjng0=; b=CDzlco09TSRHobhFu+5oSIi2/bq6ncCYuF3KvrqG20v49FEnpYR1M0pHUKDNbMzZShI2it SpNEubSBMv8xWhSCvXMGMbBhK15m3Y4aB/p0ssUlet0YvFKMWFXTCMVyQYwiTNEmmjBgGw lgQg1QMX1Bcygg1ThdxV81uUKJubwOew89pWFdkQOQrkUxjrZM7KFwyIQggHAHGB0hMfUQ hX/oc8clObvNvro0Jl0zHC3VtM+Af1Ri5kAdedLH9rbMWDkuas8TBB5gHwfPJwcK3MalRj 5KazIITWhVOje7R54/EC62UYA+FxVZs3mNCMzX/X3HQ+m6EHnMcefVLTckR5BQ== ARC-Authentication-Results: i=1; rspamd-7c485dd8cf-sb8cs; auth=pass smtp.auth=9wt3zsp42r smtp.mailfrom=emacs@unbit.co.uk X-Sender-Id: 9wt3zsp42r|x-authuser|emacs@unbit.co.uk X-MC-Relay: Neutral X-MailChannels-SenderId: 9wt3zsp42r|x-authuser|emacs@unbit.co.uk X-MailChannels-Auth-Id: 9wt3zsp42r X-Tank-Share: 742147c453d00144_1664028140718_313870715 X-MC-Loop-Signature: 1664028140717:1415480654 X-MC-Ingress-Time: 1664028140717 Received: from apollo.krystal.co.uk (apollo.krystal.co.uk [77.72.0.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.116.63.144 (trex/6.7.1); Sat, 24 Sep 2022 14:02:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=unbit.co.uk ; s=default; h=Content-Transfer-Encoding:Content-Type:Message-ID:References: In-Reply-To:Subject:Cc:To:From:Date:MIME-Version:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=AKkBitELRLo3J6ywDyLfU8YQQJps3lanmyMNIFYjng0=; b=KlEENg7HxGLMRJpBZfVSCf80eB danxFJxN+CPHXkTQPqHkjYB27elYqsDWMb7mXib4sLQ7eiSKSRk+6VuVBz+cvg0qLZS+x9giDPdiw MEt72yH0O2FfGmnnZPfzw3NoNUonjmDIn2C5QawJ5GaxaTBn6BEauqSpvE4lyfge6wftdazGX8WKj NRjAsrEShvW3xylO0QLfj52KtL+xpnd6Cg7WpEzhVX+ELwehPC/hf4jpJ+SmiQxpsvnIulssU2ATk 5rIRPWp8o9ZEhLzguMhQkVKGjfWo1un11SWEpX8aNkI3JZ/CobBc8jACvdnNxhNhH7Z9f6RvLoyCd KFPZ/hhA==; Received: from [::1] (port=47522 helo=apollo.krystal.co.uk) by apollo.krystal.co.uk with esmtpa (Exim 4.95) (envelope-from ) id 1oc5jZ-006Kfh-4g; Sat, 24 Sep 2022 15:02:18 +0100 MIME-Version: 1.0 Date: Sat, 24 Sep 2022 15:02:18 +0100 From: Richard Hopkins In-Reply-To: <877d1sevn3.fsf@gnus.org> References: <87v8pdx93x.fsf@gnus.org> <94143703d8e48900272990acdf4c9581@unbit.co.uk> <877d1sevn3.fsf@gnus.org> User-Agent: Roundcube Webmail/1.4.12 Message-ID: <8b727de6ac3022223e5f9e1499539781@unbit.co.uk> X-Sender: emacs@unbit.co.uk Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-AuthUser: emacs@unbit.co.uk X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 2022-09-24 14:42, Lars Ingebrigtsen wrote: > 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)") Ah, thanks for the pointer. It works for me too (and `backward-sexp') starting from Emacs 29 when the relevant mode is set, including the scratch buffer with `lisp-interaction-mode'. Please close, thanks.