From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#8174: 24.0.50; `replace-match' doesn't work right with propertized text Date: Fri, 4 Mar 2011 21:05:32 -0800 Message-ID: References: <3DD5910E07E34DD4B7A6E4B75B340674@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1299301624 5422 80.91.229.12 (5 Mar 2011 05:07:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 5 Mar 2011 05:07:04 +0000 (UTC) Cc: 8174@debbugs.gnu.org To: "'Stefan Monnier'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 05 06:06:59 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pvjhi-0007Ci-Sr for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Mar 2011 06:06:59 +0100 Original-Received: from localhost ([127.0.0.1]:37945 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pvjhh-0001GH-PP for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Mar 2011 00:06:57 -0500 Original-Received: from [140.186.70.92] (port=33342 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pvjhc-0001GB-3z for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2011 00:06:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pvjhb-0005RY-3F for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2011 00:06:51 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60915) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pvjha-0005RT-VO for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2011 00:06:51 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Pvjgo-0000JP-CO; Sat, 05 Mar 2011 00:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Mar 2011 05:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8174 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8174-submit@debbugs.gnu.org id=B8174.12993015511182 (code B ref 8174); Sat, 05 Mar 2011 05:06:02 +0000 Original-Received: (at 8174) by debbugs.gnu.org; 5 Mar 2011 05:05:51 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pvjgd-0000J1-1A for submit@debbugs.gnu.org; Sat, 05 Mar 2011 00:05:51 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pvjga-0000Iq-PJ for 8174@debbugs.gnu.org; Sat, 05 Mar 2011 00:05:49 -0500 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p2555fVo005250 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 5 Mar 2011 05:05:43 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p2555eaT019616; Sat, 5 Mar 2011 05:05:41 GMT Original-Received: from abhmt008.oracle.com by acsmt354.oracle.com with ESMTP id 1060126771299301534; Fri, 04 Mar 2011 21:05:34 -0800 Original-Received: from dradamslap1 (/10.159.51.176) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 04 Mar 2011 21:05:34 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Acva7FfH1GNfX7KKRpmtdqSb7eovXwABd3IA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-Source-IP: acsmt353.oracle.com [141.146.40.153] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090207.4D71C4A5.0095,ss=1,fgs=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 05 Mar 2011 00:06:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:44645 Archived-At: > > (re-search-forward "tata") > > (let* ((file "@@@@@") > > (strg (apply #'propertize "AAAAAA" > > `(display ,(image-dired-get-thumbnail-image file) > > rear-nonsticky (display))))) > > (replace-match strg)))) > > First things first: (ignoring the lack of check that > re-search-forward indeed succeeded) The real code uses (when (re-search-forward... nil t)...). > the only things allowed between the string match and > the use of the match-data are a few Emacs primitives known to > leave the match-data untouched. image-dired-get-thumbnail-image > is not one of those primitives. Yes, that's the problem here, so no bug. I was not expecting to need to wrap the `(apply... )' in `save-match-data'. Usually I can pretty much tell when the match data gets modified, but I guess I should have looked closer at `image-dired-get-thumbnail-image'.