From unknown Sat Aug 16 00:34:54 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#49695 <49695@debbugs.gnu.org> To: bug#49695 <49695@debbugs.gnu.org> Subject: Status: 27.2; wrap-prefix text property doesn't work with display property Reply-To: bug#49695 <49695@debbugs.gnu.org> Date: Sat, 16 Aug 2025 07:34:54 +0000 retitle 49695 27.2; wrap-prefix text property doesn't work with display pr= operty reassign 49695 emacs submitter 49695 Shingo Tanaka severity 49695 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 22 08:51:48 2021 Received: (at submit) by debbugs.gnu.org; 22 Jul 2021 12:51:48 +0000 Received: from localhost ([127.0.0.1]:39655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6YB1-00061k-Kj for submit@debbugs.gnu.org; Thu, 22 Jul 2021 08:51:47 -0400 Received: from lists.gnu.org ([209.51.188.17]:55820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6YAm-00061J-I6 for submit@debbugs.gnu.org; Thu, 22 Jul 2021 08:51:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6YAm-0006LW-96 for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2021 08:51:32 -0400 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]:45679) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m6YAk-00033t-QO for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2021 08:51:31 -0400 Received: by mail-pj1-x102f.google.com with SMTP id h6-20020a17090a6486b029017613554465so5360627pjj.4 for ; Thu, 22 Jul 2021 05:51:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:message-id:from:to:subject:user-agent:mime-version; bh=aq3A1hH7AQkV5USAQkgOequOwDgcoJVvu36A/Q9uCx4=; b=N+rxH1Jaw5sUFso3wOvgKgXDA3hRVgSMUEEVw3SI6BAE2DDl+hDs63QJOy++VCgzcP 4UdfhTHKWevsFW8YM9NAV52t4zLlhMT0vmvl54CNHtePrYf4uE3rPchFAzCvhuszCqyT iPKRaNUfbjN+2jEBrPuj1jLF0d8CkKhLtgrWw1DIELc5KP3CEmh5vCYD64RieipzfyiN yaZrMYG5VpjegjOMxcBMMeoLJfG9xHX6VxlaYz19XxPymbFQDwOCdIR3WRMG5aQfPJe1 CUL9UaAJ4SPNFkxj+AtQmgbQwvCO7+Wje9U4V5c3DHneSJhtrNGeGxdXOnggzQ5TpiCV JOzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:from:to:subject:user-agent :mime-version; bh=aq3A1hH7AQkV5USAQkgOequOwDgcoJVvu36A/Q9uCx4=; b=UoFatJ2pZD8+h9No19oTNB/sd45yCzVfE53sytnrm2XrROuaSzby5Kxs14F55ghl9H XnEkpa5ATLd+enSUu60EiF40hzNnm5DditfWXCvcXpwr6yXWaG6jwuc0fUe7g4gnCp0A zSBLjwt+VIbIh7KgdXo9+Lb/0istrmeP6Rk1jRLb8YRLKNJMyvL1qzWZnr8MhT4qh/3Y hD5SpLfMPfNSbbQ5VBloNf418JJxNUJ+fiN83Bkk9CExR0k4OKWBaDg0gAiAn2czxhpd +efYwAap9jYs5Uz4ffxd7zN3J0MWtZ0gWh1QQNinBy75UYciYa/MZWFTyv95KskDRgHx eHnw== X-Gm-Message-State: AOAM530l7I7HHdgS/p50b0/I2F8RY6u5ySxabzxte33dUzWPxxZ4EJOL rXbF+kD0PcBtS2tTdnOFYKT9hJuFaUY= X-Google-Smtp-Source: ABdhPJwQQbO7DAaFQSabPs86t0b8EAX+ufF3oc6aJzlfMEU5y1YUu5XJCk9SNaqGufLHJTLV24nPXQ== X-Received: by 2002:a62:1697:0:b029:326:7ec1:a9e9 with SMTP id 145-20020a6216970000b02903267ec1a9e9mr41606947pfw.14.1626958288088; Thu, 22 Jul 2021 05:51:28 -0700 (PDT) Received: from REGZA-PC.gmail.com ([240d:1a:6f4:6b00:2102:dc7c:3773:6366]) by smtp.gmail.com with ESMTPSA id b184sm26171673pfg.72.2021.07.22.05.51.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jul 2021 05:51:27 -0700 (PDT) Date: Thu, 22 Jul 2021 21:51:23 +0900 Message-ID: <84im12o6k4.wl-shingo.fg8@gmail.com> From: Shingo Tanaka To: bug-gnu-emacs@gnu.org Subject: 27.2; wrap-prefix text property doesn't work with display property User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.2 (x86_64-w64-mingw32) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=shingo.fg8@gmail.com; helo=mail-pj1-x102f.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: submit 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.1 (--) Hi, wrap-prefix text property doesn't work properly when a character with display property is in the beginning of a line. Here is how to reproduce. 1. Goto *scratch* buffer 2. Evaluate below preconditioning function. (defun preconditioning () (interactive) (goto-char (point-min)) (insert "This is a sample text.\n") (forward-line -1) (put-text-property (line-beginning-position) (line-end-position) 'wrap-prefix " ") (search-forward "This is a ") (put-text-property (point) (1+ (point)) 'display "X") (goto-char (point-min))) 3. Execute it with M-x preconditioning 4. Confirm the text "This is a sample text." is inserted in the beginning of the buffer and your cursor is as well. Note that this text has wrap-prefix property and "X" is the character which has display property. 5. Start typing spaces (or any character) and observe how the text is wrapped. 6. You will see wrap-prefix works correctly until wrapped point gets "X" like: This is a Xample text. 7. However, you will see it doesn't work when "X" gets in the beginning of the line like: This is a Xample text. This issue is reproducible either word-wrap is nil or t, and also with Emacs 28.0.50. Regards, Shingo From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 22 14:26:48 2021 Received: (at 49695) by debbugs.gnu.org; 22 Jul 2021 18:26:48 +0000 Received: from localhost ([127.0.0.1]:41577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6dPE-0004BW-FU for submit@debbugs.gnu.org; Thu, 22 Jul 2021 14:26:48 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6dP9-0004BF-Tn for 49695@debbugs.gnu.org; Thu, 22 Jul 2021 14:26:46 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60940) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6dP4-0007hb-EL; Thu, 22 Jul 2021 14:26:38 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1823 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6dP4-0003ZI-1e; Thu, 22 Jul 2021 14:26:38 -0400 Date: Thu, 22 Jul 2021 21:26:19 +0300 Message-Id: <83fsw62oj8.fsf@gnu.org> From: Eli Zaretskii To: Shingo Tanaka In-Reply-To: <84im12o6k4.wl-shingo.fg8@gmail.com> (message from Shingo Tanaka on Thu, 22 Jul 2021 21:51:23 +0900) Subject: Re: bug#49695: 27.2; wrap-prefix text property doesn't work with display property References: <84im12o6k4.wl-shingo.fg8@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49695 Cc: 49695@debbugs.gnu.org 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 (---) > Date: Thu, 22 Jul 2021 21:51:23 +0900 > From: Shingo Tanaka > > wrap-prefix text property doesn't work properly when a character with display > property is in the beginning of a line. Here is how to reproduce. > > 1. Goto *scratch* buffer > 2. Evaluate below preconditioning function. > > (defun preconditioning () > (interactive) > (goto-char (point-min)) > (insert "This is a sample text.\n") > (forward-line -1) > (put-text-property (line-beginning-position) (line-end-position) > 'wrap-prefix " ") > (search-forward "This is a ") > (put-text-property (point) (1+ (point)) 'display "X") > (goto-char (point-min))) > > 3. Execute it with M-x preconditioning > 4. Confirm the text "This is a sample text." is inserted in the beginning of > the buffer and your cursor is as well. Note that this text has wrap-prefix > property and "X" is the character which has display property. > 5. Start typing spaces (or any character) and observe how the text is wrapped. > 6. You will see wrap-prefix works correctly until wrapped point gets "X" like: > > This is a Xample > text. > > 7. However, you will see it doesn't work when "X" gets in the beginning of the > line like: > > This is a > Xample text. Thanks, should be fixed now on the master branch. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 21 14:09:41 2022 Received: (at 49695) by debbugs.gnu.org; 21 Aug 2022 18:09:41 +0000 Received: from localhost ([127.0.0.1]:36729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPpOG-0008Pq-Vj for submit@debbugs.gnu.org; Sun, 21 Aug 2022 14:09:41 -0400 Received: from quimby.gnus.org ([95.216.78.240]:45024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPpOF-0008PY-HA for 49695@debbugs.gnu.org; Sun, 21 Aug 2022 14:09:40 -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=AQUF/BNQTk3eu9iFEYA2bH0sD9cU4f0orZjOJ5Irff4=; b=odvUsJ946wp5pi7qhPZS8KHD1a k2gWmcBON1ynmFYaP77U98Kr+G/CrDlTRjxudu8QEo4ItOxUzTs76mNyvDeQywftvkBFO5ltTi4+u lnZoeHJDVs1mb/F3XBTFVzq0Fd0g5I4AtmMgFvYuekqm7wBVEYtqfEfA3zRNBdYfVPt0=; 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 1oPpO7-0004h8-46; Sun, 21 Aug 2022 20:09:33 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#49695: 27.2; wrap-prefix text property doesn't work with display property In-Reply-To: <83fsw62oj8.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 22 Jul 2021 21:26:19 +0300") References: <84im12o6k4.wl-shingo.fg8@gmail.com> <83fsw62oj8.fsf@gnu.org> X-Now-Playing: The Style Council's _The Complete Adventures (3)_: "(When You) Call Me" Date: Sun, 21 Aug 2022 20:09:30 +0200 Message-ID: <87pmgta2p1.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: Eli Zaretskii writes: > Thanks, should be fixed now on the master branch. This was a year ago, but the bug report wasn't closed at the time, so I'm doing that now. 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: 49695 Cc: 49695@debbugs.gnu.org, Shingo Tanaka 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 (---) Eli Zaretskii writes: > Thanks, should be fixed now on the master branch. This was a year ago, but the bug report wasn't closed at the time, so I'm doing that now. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 21 14:09:45 2022 Received: (at control) by debbugs.gnu.org; 21 Aug 2022 18:09:45 +0000 Received: from localhost ([127.0.0.1]:36732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPpOL-0008Q8-8C for submit@debbugs.gnu.org; Sun, 21 Aug 2022 14:09:45 -0400 Received: from quimby.gnus.org ([95.216.78.240]:45040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPpOJ-0008Pf-Q1 for control@debbugs.gnu.org; Sun, 21 Aug 2022 14:09:44 -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=qZdpnXuH9GMAK5F++l8PPA4dRf4xtrotZWy7hBos5+0=; b=PRZuQWV6jxKGC7gwYlaL/xvjzp 32m/3r1+BT81qqZOBCMktmIKZeYfu05uPTm+DZX4QHjsueM/xK9tCZ9HaidNGpOZcQhn5cYq9xgmo uScjmH8F6y+pvVpZKiv6PGLjUh+qC6klPPQ/MjNLYIaO0JVNgyr86KI2pBXh6QlfdvJw=; 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 1oPpOC-0004hI-1l for control@debbugs.gnu.org; Sun, 21 Aug 2022 20:09:38 +0200 Date: Sun, 21 Aug 2022 20:09:35 +0200 Message-Id: <87o7wda2ow.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #49695 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 49695 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 49695 quit From unknown Sat Aug 16 00:34:54 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 19 Sep 2022 11:24:15 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator