GNU logs - #49695, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#49695: 27.2;  wrap-prefix text property doesn't work with display property
Resent-From: Shingo Tanaka <shingo.fg8@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 22 Jul 2021 12:52:01 +0000
Resent-Message-ID: <handler.49695.B.162695830823176 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 49695
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 49695 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.162695830823176
          (code B ref -1); Thu, 22 Jul 2021 12:52:01 +0000
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 <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m6YB1-00061k-Kj
	for submit <at> 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 <shingo.fg8@HIDDEN>) id 1m6YAm-00061J-I6
 for submit <at> 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 <shingo.fg8@HIDDEN>)
 id 1m6YAm-0006LW-96
 for bug-gnu-emacs@HIDDEN; 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 <shingo.fg8@HIDDEN>)
 id 1m6YAk-00033t-QO
 for bug-gnu-emacs@HIDDEN; Thu, 22 Jul 2021 08:51:31 -0400
Received: by mail-pj1-x102f.google.com with SMTP id
 h6-20020a17090a6486b029017613554465so5360627pjj.4
 for <bug-gnu-emacs@HIDDEN>; 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 <bug-gnu-emacs@HIDDEN>
 (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@HIDDEN>
From: Shingo Tanaka <shingo.fg8@HIDDEN>
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)
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@HIDDEN; 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-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Shingo Tanaka <shingo.fg8@HIDDEN>
Subject: bug#49695: Acknowledgement (27.2;  wrap-prefix text property
 doesn't work with display property)
Message-ID: <handler.49695.B.162695830823176.ack <at> debbugs.gnu.org>
References: <84im12o6k4.wl-shingo.fg8@HIDDEN>
X-Gnu-PR-Message: ack 49695
X-Gnu-PR-Package: emacs
Reply-To: 49695 <at> debbugs.gnu.org
Date: Thu, 22 Jul 2021 12:52:01 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 49695 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
49695: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D49695
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems



Last modified: Thu, 22 Jul 2021 13:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.