From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Shingo Tanaka Newsgroups: gmane.emacs.bugs Subject: bug#49695: 27.2; wrap-prefix text property doesn't work with display property Date: Thu, 22 Jul 2021 21:51:23 +0900 Message-ID: <84im12o6k4.wl-shingo.fg8@gmail.com> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12331"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.2 (x86_64-w64-mingw32) MULE/6.0 (HANACHIRUSATO) To: 49695@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 22 14:52:41 2021 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 1m6YBr-00031s-EP for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Jul 2021 14:52:39 +0200 Original-Received: from localhost ([::1]:41858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6YBq-0007c5-Fb for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Jul 2021 08:52:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6YBH-0006cL-8e for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2021 08:52:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56342) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m6YBF-0003Ng-UW for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2021 08:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m6YBF-00062E-Q7 for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2021 08:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Shingo Tanaka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Jul 2021 12:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49695 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.162695830823176 (code B ref -1); Thu, 22 Jul 2021 12:52:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Jul 2021 12:51:48 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) 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-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" Xref: news.gmane.io gmane.emacs.bugs:210518 Archived-At: 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