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:47: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=001a1142315699d006054a3c2653 X-Trace: blaine.gmane.org 1488997170 22378 195.159.176.226 (8 Mar 2017 18:19:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 8 Mar 2017 18:19:30 +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:19:26 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 1clgBD-0004nw-7J for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Mar 2017 19:19:19 +0100 Original-Received: from localhost ([::1]:57776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clgBH-0003Ml-US for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Mar 2017 13:19:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clgAz-0003KN-R6 for bug-gnu-emacs@gnu.org; Wed, 08 Mar 2017 13:19:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clgAw-0003Bv-GE for bug-gnu-emacs@gnu.org; Wed, 08 Mar 2017 13:19:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48429) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1clgAw-0003Br-CU for bug-gnu-emacs@gnu.org; Wed, 08 Mar 2017 13:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1clgAw-00022A-7N for bug-gnu-emacs@gnu.org; Wed, 08 Mar 2017 13:19: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:19: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.14889970967766 (code B ref 25599); Wed, 08 Mar 2017 18:19:02 +0000 Original-Received: (at 25599) by debbugs.gnu.org; 8 Mar 2017 18:18:16 +0000 Original-Received: from localhost ([127.0.0.1]:46628 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clgAC-00021C-1I for submit@debbugs.gnu.org; Wed, 08 Mar 2017 13:18:16 -0500 Original-Received: from mail-qk0-f182.google.com ([209.85.220.182]:33047) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clgAB-000212-9i for 25599@debbugs.gnu.org; Wed, 08 Mar 2017 13:18:15 -0500 Original-Received: by mail-qk0-f182.google.com with SMTP id y76so79760732qkb.0 for <25599@debbugs.gnu.org>; Wed, 08 Mar 2017 10:18:15 -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=s/B5k7U3SaLk3qY2ehvm30NmTrPLsJo8sMFsyPlK6Lg=; b=ijOndXaqpvZ1JOD9rxTpiI+0n0iVSrBLJYh4n/4QNBrqCWGOesbtamoZjW8EAmghnN QbjAhR6R7+auHCZt5vr9sBFQWFBS0JchviJLtB6uY2ZfcBfgLrRmLCcrVgRvNZBklVej H69rKnaMhNJGQK4dfpPBxEUJ36pjf+IToThrEcE/A3Sh6r0cwS2C97/c7ObHGFyGq1a2 g6xKTo2C1XzMv5miHhpkJM2nGigriBCEzwwW53/bJEgWdCMoaOMGDMsJt0QfDJ51c8l2 7NzZHbzK2KpnKTUJO7R1OoWXNrQ8C9nxjQeZKBBcWbX37R2oDswUeFR00wnOhZKZaVjk Nmng== 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=s/B5k7U3SaLk3qY2ehvm30NmTrPLsJo8sMFsyPlK6Lg=; b=gCCJKNJo5V7WnapRBNvPbW0uoE2EhHr8vZ49Edj+9JkC5a7xbFfT7sp2A/l7SKPJ4q VoYfQrjQNvm8xGtWX9Yoy7dnflwcMX8ZJ8RWkPV9a3Ft+qG/JwFiRZRpMyHmiVsTnxJk UiolDhnQ44UIhWcpfd97CRqSsXKXUIjOQnc7lCPmYmjUSl92/IWXedTCPjOaTex4ZIsL DuXDosT0pVAJUOjMRTwdFaiwUD+pzFiN8R0Z8q+J0XNOSmggGu7I3LhzCTC6YWZcX6Pr H5wDtm9sbgQI3Auhk2jNe4dI1rVXEstWrdtXXOSdsoULZr6tkyfiFeooPsnHzZRMGggS 4MqQ== X-Gm-Message-State: AMke39kown7PWz2QQQaid2wkrte5IfIIN5441vaxpQRZXjbMH2IIwsWb0kJiXgTQCAMnxmutNCIVwXCO0bn8Gg== X-Received: by 10.237.42.98 with SMTP id k31mr9556233qtf.232.1488997089641; Wed, 08 Mar 2017 10:18:09 -0800 (PST) Original-Received: by 10.237.32.140 with HTTP; Wed, 8 Mar 2017 10:17:49 -0800 (PST) In-Reply-To: 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:130348 Archived-At: --001a1142315699d006054a3c2653 Content-Type: text/plain; charset=UTF-8 Sorry, the above process threw some warnings. I didn't notice them before: Warning (emacs): Encountered (# . -14) entry in undo list with no matching (TEXT . POS) entry On 8 March 2017 at 23:38, nitish chandra wrote: > > 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. > --001a1142315699d006054a3c2653 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Sorry, the above process threw some warnings. I didn't= notice them before:

Warning (emacs): Encountered (#<marker at 1 = in *scratch*> . -14) entry in undo list with no matching (TEXT . POS) en= try



On 8 March 2017 at 23:38, nitish chandra <nitishchandrach= inta@gmail.com> wrote:

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 th= e line
3. Undo-ed the delete

The marker is = still in the proper place. So markers in the deleted string do seem to rega= in their position properly.

--001a1142315699d006054a3c2653--