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 21:44:59 +0530 Message-ID: References: <28211825-9989-bd18-1f53-891506af9adf@yandex.ru> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c0724d452ef83054a3a6fb4 X-Trace: blaine.gmane.org 1488989785 21814 195.159.176.226 (8 Mar 2017 16:16:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 8 Mar 2017 16:16:25 +0000 (UTC) To: 25599@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 08 17:16:21 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 1cleG2-0004Rq-RZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Mar 2017 17:16:10 +0100 Original-Received: from localhost ([::1]:57183 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cleG8-0000L8-Oa for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Mar 2017 11:16:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cleFz-0000JA-So for bug-gnu-emacs@gnu.org; Wed, 08 Mar 2017 11:16:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cleFu-0008TC-Ux for bug-gnu-emacs@gnu.org; Wed, 08 Mar 2017 11:16:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48318) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cleFu-0008Sw-Id for bug-gnu-emacs@gnu.org; Wed, 08 Mar 2017 11:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cleFu-000540-5e for bug-gnu-emacs@gnu.org; Wed, 08 Mar 2017 11:16:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <28211825-9989-bd18-1f53-891506af9adf@yandex.ru> Resent-From: nitish chandra Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Mar 2017 16:16: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.148898972819418 (code B ref 25599); Wed, 08 Mar 2017 16:16:02 +0000 Original-Received: (at 25599) by debbugs.gnu.org; 8 Mar 2017 16:15:28 +0000 Original-Received: from localhost ([127.0.0.1]:46517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cleFL-000537-Tf for submit@debbugs.gnu.org; Wed, 08 Mar 2017 11:15:28 -0500 Original-Received: from mail-qk0-f180.google.com ([209.85.220.180]:36730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cleFK-00052u-00 for 25599@debbugs.gnu.org; Wed, 08 Mar 2017 11:15:26 -0500 Original-Received: by mail-qk0-f180.google.com with SMTP id 1so73204305qkl.3 for <25599@debbugs.gnu.org>; Wed, 08 Mar 2017 08:15:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Fx91Iyn4KvVziBVTldlrDSH9Ats+JRCz2qm7OyTy8P4=; b=Um2xYUE2EpIIIU2kprFXEp45DtTL1TcUBIN5FhijlKGwkN9r6o6KPPS4FVXRs1/sNX B9rwol5OZWgUhkjKfkfvpxnbyai1u7dUmwhvliYFb1ZzIqM0KaE88HKvSDHkhVkmZhO5 GpPlFrSq0+jE13f13UApzChzmDbJQ2pT/3dy9SrMQ9F/hIC16Hz1zx2djMYnSXzZGTXi 4K3lILV77nb8+2pDDPqJIidlvgWgVZ5luNFUeHE8XfeS7VL7cBuLT5wW9S5IIcGoyTAO OFQ723fv2d9GNORAPy2rk+GxS8hpjfq5Ld/I6dnsig86nO4zujdZgRo7Br9/4/cdzsCw 9Y9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Fx91Iyn4KvVziBVTldlrDSH9Ats+JRCz2qm7OyTy8P4=; b=HbjXIaVc6SKysL6yxXZHnXSm2rNb+MEzp8O9wHogfhj9zRGiuD5V/vG228+mN3ndsW BMJxTI2xEjgGXP7KDQ08StwDZCPvwNLTaflxb6wz0QoGY4I7mayydUdUYjgnTN7V3pJu sgWSDSp2CnbN+EuR1EzR+tnKnN/yCB4DQfHIvjpud/+A4Y4CAu0STRSc5xV4aUS8EmdC nSGEeW7Lna9pSZgJpXF3kFJsH9ASbBnw7FB8Lev+wf3aH0/pScijlqPFM0sUnC1zzDnz Sw6JVH7VwzbtmYwIK9eK4qf+7m84WsBsfSlzBpTCEeOQripHIsxNbim0ssRqOvHM/pRY NTiA== X-Gm-Message-State: AFeK/H1Iis4J7vearJbKc4QOxp1eAn8zSUMJmIKBJfhHI4v9z54CMnTHJPlnec/1DknqSLSQ1sXX2aEj/CAwrg== X-Received: by 10.55.169.135 with SMTP id s129mr8191697qke.91.1488989719805; Wed, 08 Mar 2017 08:15:19 -0800 (PST) Original-Received: by 10.237.32.140 with HTTP; Wed, 8 Mar 2017 08:14:59 -0800 (PST) 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:130343 Archived-At: --94eb2c0724d452ef83054a3a6fb4 Content-Type: text/plain; charset=UTF-8 In primitive-undo in simple.el, aroud line 2550 (in master) we adjust the markers after the insertion. (dolist (adj valid-marker-adjustments) (set-marker (car adj) (- (car adj) (cdr adj)))) Why is this needed? Won't insert take care of adjusting the markers? --94eb2c0724d452ef83054a3a6fb4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: base64 PGRpdiBkaXI9Imx0ciI+PGRpdj5JbiBwcmltaXRpdmUtdW5kbyBpbiBzaW1wbGUuZWwsIGFyb3Vk IGxpbmUgMjU1MCAoaW4gbWFzdGVyKSB3ZSBhZGp1c3QgdGhlIG1hcmtlcnMgYWZ0ZXIgdGhlIGlu c2VydGlvbi48YnI+PGJyPihkb2xpc3QgKGFkaiB2YWxpZC1tYXJrZXItYWRqdXN0bWVudHMpPGJy PsKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqAgKHNldC1tYXJrZXIgKGNhciBhZGopPGJyPsKg wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqAgKC0gKGNh ciBhZGopIChjZHIgYWRqKSkpKTxicj48YnI+PC9kaXY+V2h5IGlzIHRoaXMgbmVlZGVkPyBXb24m IzM5O3QgaW5zZXJ0IHRha2UgY2FyZSBvZiBhZGp1c3RpbmcgdGhlIG1hcmtlcnM/PC9kaXY+DQo= --94eb2c0724d452ef83054a3a6fb4--