From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#49742: 28.0.50; previous-single-property-change sometimes wrong? Date: Mon, 26 Jul 2021 10:19:13 -0700 Message-ID: References: <83sg01ujgq.fsf@gnu.org> Reply-To: "T.V Raman" Mime-Version: 1.0 Content-Type: text/plain; charset=gb18030 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24806"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 49742@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 26 19:20:10 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 1m84Gw-0006Gw-Ka for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Jul 2021 19:20:10 +0200 Original-Received: from localhost ([::1]:57026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m84Gv-0002o3-La for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Jul 2021 13:20:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50194) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m84Gp-0002nr-SV for bug-gnu-emacs@gnu.org; Mon, 26 Jul 2021 13:20:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39891) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m84Go-0002QF-Kn for bug-gnu-emacs@gnu.org; Mon, 26 Jul 2021 13:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m84Go-0000js-Hp for bug-gnu-emacs@gnu.org; Mon, 26 Jul 2021 13:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "T.V Raman" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Jul 2021 17:20: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.16273199652789 (code B ref 49742); Mon, 26 Jul 2021 17:20:02 +0000 Original-Received: (at 49742) by debbugs.gnu.org; 26 Jul 2021 17:19:25 +0000 Original-Received: from localhost ([127.0.0.1]:51437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m84GC-0000iv-SL for submit@debbugs.gnu.org; Mon, 26 Jul 2021 13:19:25 -0400 Original-Received: from mail-pj1-f41.google.com ([209.85.216.41]:52773) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m84GB-0000ii-Dv for 49742@debbugs.gnu.org; Mon, 26 Jul 2021 13:19:24 -0400 Original-Received: by mail-pj1-f41.google.com with SMTP id m1so13827577pjv.2 for <49742@debbugs.gnu.org>; Mon, 26 Jul 2021 10:19:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=RuvAGOax9GPeAw4OqsyASfAZ1YOnz0gRUAGHkdG5nFA=; b=Z3VyzJfDIuugjR86Ino3e96z8RsFVWDuDI21BCJiv/YvHdIs4rWAXqgdfI8JdvgYpw i6P+41jOIrbsSNxFpvmDutSu0vCVqSkp2SMFajop363djqWndzfNW2RhVb0U16gyGGln i8wzdHvY/ZFiKxYPGqKfOkqsg0T8K4eBPqINaflq3Q2wxY9jTrPFM4Wjodc5TlAosms9 ntofDpGMIQomQ0sXxFAeU5INkPHK0PUHodyPHCCT4JNrNvaoiTMFdZj4dmdW8VoEcTJS Qd5eUu0SGPGwvjAUyJPVe/aIRAMkajd7uAe9N4yegWtiBypa9iHm0H6xSOqCNTDacI/m HTnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=RuvAGOax9GPeAw4OqsyASfAZ1YOnz0gRUAGHkdG5nFA=; b=B8lqb4GQ6xPx6UuFL4eLQ6fyhS01Ykku4hGJOGNtID30wa0ymAiGwpmFuEveiU63Ha Zhe1oI9D+pNagK9/s/+6OEISanl3HjYeKo6K79qD8ryMpkUEmYMsH59JY++roU+7EFAb VdGum+CTrNm3x2dyMmfAKfOSPgVpl591d8hcHwE79bRR35fXGH7+YDGU/PrHkpD1K3iB kL0TK55/h0bm5BAiVPDLm58tC1SkA2tuU+1eKOyj2uA8d9p3mkbI3iiMLr7w7HY90R0Z unzabBPtRZavGFPYE9V7d2uGlRCkgFrIe1KZ3pnraW4fppD6/MJ/wgEFZs7UC8wBgYCa mgPw== X-Gm-Message-State: AOAM533XEUgmWS4PYIPmy6la/QUnj4Yf8txr6V3wNrrKkYOOA+o/wOdw mVLm/aUM4zG3RXibKXxkkLLCWzdwHQGRHWWX X-Google-Smtp-Source: ABdhPJxXQ8gl9YdvvspVk5aXdXanPn1pT+oJWr3qd09VzCIaKTPLfjERpVe9Iok6niMaSLbjQwSm+Q== X-Received: by 2002:a17:902:6903:b029:12b:ab66:1248 with SMTP id j3-20020a1709026903b029012bab661248mr14910614plk.69.1627319956762; Mon, 26 Jul 2021 10:19:16 -0700 (PDT) Original-Received: from raman-glaptop (c-24-4-174-65.hsd1.ca.comcast.net. [24.4.174.65]) by smtp.gmail.com with ESMTPSA id v27sm619973pfi.166.2021.07.26.10.19.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jul 2021 10:19:16 -0700 (PDT) In-Reply-To: <83sg01ujgq.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 26 Jul 2021 19:29:41 +0300") 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:210754 Archived-At: Eli Zaretskii writes: See below for the results you ask. It does not explain itself because property 'face is nil at positions 30 and 29. Contents of help buffer after describe-text-properties below: Text content at position 28: Here is a =A1=AEnil=A1=AF button labeled =A1=AE)=A1=AF. There are text properties here: button (t) category transient-button-button command magit-log:-L [back] >> 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" >>=20 >>=20 >> This appears to a corner case where previous-single-property-change >> breaks in a surprizing way. >>=20 >> 1. ;;; Evaluate the below to get a string with properties. >> (setq s >>=20 >> #("-L Trace line evolution (-L) >>=20 >> History simplification" 0 2 (face transient-blue button (t) category tra= nsient-button-button command magit-log:-L) 2 25 (button (t) category transi= ent-button-button command magit-log:-L) 25 27 (face transient-inactive-valu= e button (t) category transient-button-button command magit-log:-L) 27 28 (= button (t) category transient-button-button command magit-log:-L) 30 52 (fa= ce transient-heading))) >>=20 >>=20 >> 2.;;; Insert into a new buffer >> (switch-to-buffer "foo") >> (insert s) >>=20 >> 4. ;;; Place point on the 'H' of "history" >>=20 >> 5. ;;; eval >> (previous-single-property-change (point 'face) >>=20 >> 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? --=20 Thanks, --Raman(I Search, I Find, I Misplace, I Research) =817=A94 Id: kg:/m/0285kf1 =950=DC8