From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: nitish chandra Newsgroups: gmane.emacs.bugs Subject: bug#25599: Why edit markers after insert? Date: Wed, 8 Mar 2017 23:38:49 +0530 Message-ID: References: <28211825-9989-bd18-1f53-891506af9adf@yandex.ru> <8737en1xdg.fsf@linux-m68k.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11473f9674757f054a3c06be X-Trace: blaine.gmane.org 1488996622 17617 195.159.176.226 (8 Mar 2017 18:10:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 8 Mar 2017 18:10:22 +0000 (UTC) Cc: 25599@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 08 19:10:18 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clg2P-0003JN-7Z for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Mar 2017 19:10:13 +0100 Original-Received: from localhost ([::1]:57734 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clg2S-0000Y8-0V for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Mar 2017 13:10:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clg2I-0000V8-I8 for bug-gnu-emacs@gnu.org; Wed, 08 Mar 2017 13:10:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clg2F-00089p-1k for bug-gnu-emacs@gnu.org; Wed, 08 Mar 2017 13:10:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48414) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1clg2E-00089j-Tw for bug-gnu-emacs@gnu.org; Wed, 08 Mar 2017 13:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1clg2E-0001oz-Gl for bug-gnu-emacs@gnu.org; Wed, 08 Mar 2017 13:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: nitish chandra Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Mar 2017 18:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25599 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25599-submit@debbugs.gnu.org id=B25599.14889965576945 (code B ref 25599); Wed, 08 Mar 2017 18:10:02 +0000 Original-Received: (at 25599) by debbugs.gnu.org; 8 Mar 2017 18:09:17 +0000 Original-Received: from localhost ([127.0.0.1]:46613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clg1V-0001nw-LW for submit@debbugs.gnu.org; Wed, 08 Mar 2017 13:09:17 -0500 Original-Received: from mail-qk0-f175.google.com ([209.85.220.175]:33393) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clg1U-0001nj-7G for 25599@debbugs.gnu.org; Wed, 08 Mar 2017 13:09:16 -0500 Original-Received: by mail-qk0-f175.google.com with SMTP id y76so79315220qkb.0 for <25599@debbugs.gnu.org>; Wed, 08 Mar 2017 10:09:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=hhDC5jbu6wU7rgNn6aDJcyj0ICm5e7bkfamL510AidM=; b=TtWedJFQj+PS20R8jaDfz+Vdt9SfqFRuc7HcdfD9ClmDQlvnG6F06ahSYFAe0C83Gc jU2Dtiz0KqgRLExYGBrBNDRusEUGoN8h7gnxCyQ2aGEynzyGKRIOc3F2+ubxKrPpLlew l9rPqIQsp11NcDseNQAkPyHo5mmUSooVQv1zz7rcZinSnqxIGPuvkGEuHGMN10bbdI0c VTOxYGoTYbOL1N60+g3EdlkwjXxTBI/Ez1mQkPf86bXvjpnuaAG5ybhPOmXNJBJdFfom SLWICkqBuRaaS14gz4+xkEPzfBH9F2/Ab3CtHbk2HNVapwo6gLDausuIZKVjC4jagrWa gFHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=hhDC5jbu6wU7rgNn6aDJcyj0ICm5e7bkfamL510AidM=; b=XlopjKqrBp4kVpfMA710clr30rBJYZiZiP4qH2CqtM0HQZG1pwr8jvdAkLubchdFdA LGB2zJXyomUPuVQBlXNhacp9/tAAlJXI6YcsbcHf0s2G1FfiuHh4lM6S2A/dQU+mp03i TsCLb+B0Hv7QLe5aUkaWMgfolHvxfpjHKiijClu0TGAExwCu33JVowCeSpetnT5sVbb7 ewRNlDqrK32/7LFYUgbhNcSu2SpYKu346LiK5jFG79W1LJ1TvzvjXC/Y1xTXB6MGTsSG ybjus8K3kZ0Aei6shoqWaWiZKQpyOSnVK0ntzA/rxLIl602o750PQkbCP+VAcJxT1hHm ucFw== X-Gm-Message-State: AMke39kw+gDU6Q/guwUQUjO76ReTDerzfI6XjTWFQpvLwY2XREdqt8kp+DTpLNPpTw55jQSHLJFvor+QyB0zdg== X-Received: by 10.55.41.232 with SMTP id p101mr8364625qkp.186.1488996550333; Wed, 08 Mar 2017 10:09:10 -0800 (PST) Original-Received: by 10.237.32.140 with HTTP; Wed, 8 Mar 2017 10:08:49 -0800 (PST) In-Reply-To: <8737en1xdg.fsf@linux-m68k.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:130347 Archived-At: --001a11473f9674757f054a3c06be Content-Type: text/plain; charset=UTF-8 > Only marker originally pointing inside the deleted region were recorded > here, and this is to make sure they regain their previous position after > the reinsertion. > I removed this part of the code to see what changes. 1. I put a marker in a line 2. Deleted the line 3. Undo-ed the delete The marker is still in the proper place. So markers in the deleted string do seem to regain their position properly. --001a11473f9674757f054a3c06be Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

=
Only marker originally pointing inside the deleted region were recorded
here, and this is to make sure they regain their previous position after the reinsertion.

I removed th= is part of the code to see what changes.

1. I put a mark= er in a line
2. Deleted the line
3. Undo-ed the= delete

The marker is still in the proper place. So marke= rs in the deleted string do seem to regain their position properly.
--001a11473f9674757f054a3c06be--