From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: question about markers, replace-match, and undo Date: Sun, 29 Apr 2007 09:08:55 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1177862958 8743 80.91.229.12 (29 Apr 2007 16:09:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Apr 2007 16:09:18 +0000 (UTC) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 29 18:09:16 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HiBxX-00015x-IE for ged-emacs-devel@m.gmane.org; Sun, 29 Apr 2007 18:09:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HiC3c-00061f-Gi for ged-emacs-devel@m.gmane.org; Sun, 29 Apr 2007 12:15:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HiC3Z-00060T-Kg for emacs-devel@gnu.org; Sun, 29 Apr 2007 12:15:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HiC3Y-0005yb-5S for emacs-devel@gnu.org; Sun, 29 Apr 2007 12:15:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HiC3Y-0005yV-3E for emacs-devel@gnu.org; Sun, 29 Apr 2007 12:15:24 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HiBxS-0004QL-1n for emacs-devel@gnu.org; Sun, 29 Apr 2007 12:09:06 -0400 Original-Received: from rgmgw3.us.oracle.com (rgmgw3.us.oracle.com [138.1.186.112]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id l3TG93ZV018315 for ; Sun, 29 Apr 2007 10:09:03 -0600 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by rgmgw3.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l3TFmo1B012410 for ; Sun, 29 Apr 2007 10:09:02 -0600 Original-Received: from dhcp-amer-csvpn-gw2-141-144-72-87.vpn.oracle.com by acsmt351.oracle.com with ESMTP id 2656067091177862937; Sun, 29 Apr 2007 09:08:57 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 In-Reply-To: Importance: Normal X-Whitelist: TRUE X-Whitelist: TRUE X-Brightmail-Tracker: AAAAAQAAAAI= X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:70366 Archived-At: > > Can you send a program to construct the test case that fails for = you? > > Then I will test my patch and make sure it fixes your problem. >=20 Johan> I tested it like this: ... What Johan did is essentially what I did, so I think this is fixed. = Thanks. What I did (see my initial report): emacs -Q type mnopqrs in a buffer C-SPC at (before) m C-SPC after s C-s mnopqrs RET (replace-match "ABC") C-_ Look at mark-ring and (mark). I also reported a bug (?) about `buffer-has-markers-at'. In this case, = even though the bugged result above is two markers before m and no = marker after s, `buffer-has-markers-at' returns t for the position after = s.