From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#61735: 29.0.50; String object in margin not associated correctly with buffer text Date: Thu, 23 Feb 2023 13:36:44 -0500 Message-ID: References: <83h6vcp96u.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1957"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 61735@debbugs.gnu.org, Eli Zaretskii To: dalanicolai Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 23 19:37:21 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pVGT3-0000KO-71 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Feb 2023 19:37:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVGSm-00011H-Hu; Thu, 23 Feb 2023 13:37:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVGSk-0000yQ-VI for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2023 13:37:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVGSk-0005RF-Mz for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2023 13:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pVGSk-0007oW-6d for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2023 13:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Feb 2023 18:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61735 X-GNU-PR-Package: emacs Original-Received: via spool by 61735-submit@debbugs.gnu.org id=B61735.167717741530023 (code B ref 61735); Thu, 23 Feb 2023 18:37:02 +0000 Original-Received: (at 61735) by debbugs.gnu.org; 23 Feb 2023 18:36:55 +0000 Original-Received: from localhost ([127.0.0.1]:35291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVGSc-0007oB-VT for submit@debbugs.gnu.org; Thu, 23 Feb 2023 13:36:55 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:62200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVGSa-0007nw-Vd for 61735@debbugs.gnu.org; Thu, 23 Feb 2023 13:36:53 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 7DF4F442D1E; Thu, 23 Feb 2023 13:36:47 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 20BCE44167D; Thu, 23 Feb 2023 13:36:46 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1677177406; bh=XC1VTgx3OhNccUx5ahSB5gkHpjwsUxGZBejTSP/jGZ0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=UYfdki5MqpBASoLUnQ7S3U6crZmLubNtqTNQ1hJpYOTyVzW4eUfmGFNZXBwXVj8xy THLRwHYoTliYIQf3CUL2PBg2xcAi0iTqMsiUyf5t9PgA982Es3BcvyjIV6B2hpq2q2 1YrO4iw0pU0FzO7ExwNzBWYK9aABn2NS71PNp76i7gqGwGE8E/Wdri6n1TsTr2yeeL iduDq8VlwlMp6YAEatXRY0YN/YWcbYD6f1ZYqk95bzYnEqqRIe29150qkOrshsJ/pT h16/FKW9R2wjQYMHyMuiWP6wIuZ8fnpni7b/8sQNnDgCl0Iz3cRrPfH3PmBajVITkW xN0tUD4z7+tRQ== Original-Received: from pastel (unknown [216.154.34.24]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E9A7D120B04; Thu, 23 Feb 2023 13:36:45 -0500 (EST) In-Reply-To: (dalanicolai@gmail.com's message of "Thu, 23 Feb 2023 19:05:11 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:256511 Archived-At: > Indeed, I assumed that I was creating new strings because (eq " " " ") > is nil. Your test can return nil even if new strings aren't created at runtime (e.g. because each source code string gets its own runtime string). It may be nil in your test, but it may also return t (I think if you byte-compile your test it will return t). >> > (let ((s " ")) Here you have a single " " string in your source code. And no it's not recreated each time, it will be the same one reused everytime (and modified by `put-text-property`). You can use `propertize` instead. Stefan