From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#25599: Why edit markers after insert? Date: Sun, 14 May 2017 04:12:58 +0300 Message-ID: <13792565-9d57-7546-0a81-09aec09a7705@yandex.ru> 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: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1494724452 14314 195.159.176.226 (14 May 2017 01:14:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 14 May 2017 01:14:12 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:53.0) Gecko/20100101 Thunderbird/53.0 Cc: 25599@debbugs.gnu.org To: nitish chandra , Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 14 03:14:07 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 1d9i6o-0003aS-En for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 May 2017 03:14:06 +0200 Original-Received: from localhost ([::1]:59350 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9i6t-0000dl-N8 for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 May 2017 21:14:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9i6o-0000dU-9n for bug-gnu-emacs@gnu.org; Sat, 13 May 2017 21:14:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9i6l-0008Uk-5U for bug-gnu-emacs@gnu.org; Sat, 13 May 2017 21:14:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40745) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d9i6l-0008UO-09 for bug-gnu-emacs@gnu.org; Sat, 13 May 2017 21:14:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d9i6k-0003B2-Hz for bug-gnu-emacs@gnu.org; Sat, 13 May 2017 21:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 May 2017 01:14: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: patch Original-Received: via spool by 25599-submit@debbugs.gnu.org id=B25599.149472438812145 (code B ref 25599); Sun, 14 May 2017 01:14:02 +0000 Original-Received: (at 25599) by debbugs.gnu.org; 14 May 2017 01:13:08 +0000 Original-Received: from localhost ([127.0.0.1]:43422 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9i5s-00039o-3A for submit@debbugs.gnu.org; Sat, 13 May 2017 21:13:08 -0400 Original-Received: from mail-wr0-f196.google.com ([209.85.128.196]:35825) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9i5q-00039K-GV for 25599@debbugs.gnu.org; Sat, 13 May 2017 21:13:06 -0400 Original-Received: by mail-wr0-f196.google.com with SMTP id g12so10821131wrg.2 for <25599@debbugs.gnu.org>; Sat, 13 May 2017 18:13:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=fG/6pnddD4a8trR3hLbeZsgsj/iqH+4cFWgdLzYCew4=; b=k6TtXw5/jvcN4UzkwXEck+0yRodevkO59+/tTF2Ca+NGs3I1cYwaE+dSwgn+Udh1Su nhgTvE+xm1+awojQg7aIMTyz8lbZozcJO6i3Ac1JyXZRPIo7ixTD8UHDt9Z7WV1Yfsea jwl2Zgdego3rCMTSq8UvtK/XzWBUQoifEVqLlj2SpnDSPmWIp1o33VNZh+pIt4dMmvkS LVR6LmgPx7ooj3uU7YG6lsb13eq/xRcQd2vkHRZPmscHX3Ea0D4QG01vSm3njrC0eQf3 DJHRX0J/yvMsoU+Eip0dDpz2yhZdsNA/hjx+Hov2LW2eU5jYE/3v/d3lwoOKv3EJUetl 0jpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=fG/6pnddD4a8trR3hLbeZsgsj/iqH+4cFWgdLzYCew4=; b=n5oydje4ywN2eZ+wJF4T1rgy77obzHG6CR7oiggbm9mq3v0t8QGiVoxkq1mJGO0W3o Sl6mUmrYZpSNE9o0+JHjBzhJdqabHzmhE08HYQRpOU/n+eRP6r6rZhsyQ6DfAElcYuKL GJ8YsueYHfnFCu/pRenEwtIZChxtt6tFk3lL6oR8skg7IfgAGjfTMIlkWPzpQO3YTgQ8 S/GEPBJsWIWmdHeGebWZQTGRfglwHRW2KnGbM00we1XaxhzGsBx9ueB6ey6JE0q7Wbjb IhnVrJ+KQf9bynaQ/6djI0mHzFIw7X6n0u3zYiz/v1qFSbB+OD4j4pGqhG27dEQ1pojp ciZQ== X-Gm-Message-State: AODbwcBZgvh9Mqv1WAPYsGFaPqH6sW75YmeApsYqX8oV4bzis8TNWQTp DHKOzvOy6wEwiA== X-Received: by 10.223.182.144 with SMTP id j16mr7434917wre.64.1494724380883; Sat, 13 May 2017 18:13:00 -0700 (PDT) Original-Received: from [192.168.1.3] ([185.105.173.156]) by smtp.googlemail.com with ESMTPSA id q108sm10186274wrb.3.2017.05.13.18.12.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 May 2017 18:13:00 -0700 (PDT) In-Reply-To: Content-Language: en-US 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:132489 Archived-At: On 09.03.2017 21:39, nitish chandra wrote: > The problem is being caused by insert invalidating some of the markers. > So before adjusting the markers, we can check if the marker is valid or > not. Following is a patch that does this. Thanks, Nitish. The patch works for me. Could someone else more familiar with undo give a second opinion, please?