From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#49742: 28.0.50; previous-single-property-change sometimes wrong? Date: Mon, 26 Jul 2021 19:29:41 +0300 Message-ID: <83sg01ujgq.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9054"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49742@debbugs.gnu.org To: "T.V Raman" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 26 18:30:12 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 1m83UY-00027x-TL for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Jul 2021 18:30:10 +0200 Original-Received: from localhost ([::1]:50276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m83UX-0001am-Ut for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Jul 2021 12:30:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40610) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m83UR-0001aa-1V for bug-gnu-emacs@gnu.org; Mon, 26 Jul 2021 12:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39829) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m83UQ-0002fJ-P9 for bug-gnu-emacs@gnu.org; Mon, 26 Jul 2021 12:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m83UQ-00080o-KJ for bug-gnu-emacs@gnu.org; Mon, 26 Jul 2021 12:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Jul 2021 16:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49742 X-GNU-PR-Package: emacs Original-Received: via spool by 49742-submit@debbugs.gnu.org id=B49742.162731699930762 (code B ref 49742); Mon, 26 Jul 2021 16:30:02 +0000 Original-Received: (at 49742) by debbugs.gnu.org; 26 Jul 2021 16:29:59 +0000 Original-Received: from localhost ([127.0.0.1]:51375 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m83UM-000805-Jj for submit@debbugs.gnu.org; Mon, 26 Jul 2021 12:29:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m83UK-0007zs-Gv for 49742@debbugs.gnu.org; Mon, 26 Jul 2021 12:29:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47426) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m83UF-0002Vq-9F; Mon, 26 Jul 2021 12:29:51 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2827 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 1m83UE-0002Vi-QU; Mon, 26 Jul 2021 12:29:51 -0400 In-Reply-To: (bug-gnu-emacs@gnu.org) 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:210751 Archived-At: > Date: Mon, 26 Jul 2021 08:47:07 -0700 > From: "T.V Raman" via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > > This appears to a corner case where previous-single-property-change > breaks in a surprizing way. > > 1. ;;; Evaluate the below to get a string with properties. > (setq s > > #("-L Trace line evolution (-L) > > History simplification" 0 2 (face transient-blue button (t) category transient-button-button command magit-log:-L) 2 25 (button (t) category transient-button-button command magit-log:-L) 25 27 (face transient-inactive-value button (t) category transient-button-button command magit-log:-L) 27 28 (button (t) category transient-button-button command magit-log:-L) 30 52 (face transient-heading))) > > > 2.;;; Insert into a new buffer > (switch-to-buffer "foo") > (insert s) > > 4. ;;; Place point on the 'H' of "history" > > 5. ;;; eval > (previous-single-property-change (point 'face) > > Instead of returning value of point before the 'H', this returns a > value that is unexpected, it returns point past the ')' What does "M-x describe-text-properties RET" say at the position returned by the above previous-single-property-change call? Does that value explain the result? If not, why not?