From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#23823: 25.0.95; Reset between highlight buffer/file comparisons Date: Fri, 24 Jun 2016 13:36:17 +0900 (JST) Message-ID: References: <83y45x45l1.fsf@gnu.org> <8b3c0970-72af-3f33-627a-e520c7708f51@gmail.com> <83mvmc2aji.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Trace: ger.gmane.org 1466743051 30629 80.91.229.3 (24 Jun 2016 04:37:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Jun 2016 04:37:31 +0000 (UTC) Cc: Tino Calancha , 23823@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 24 06:37:20 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bGIrh-0007ML-DB for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Jun 2016 06:37:13 +0200 Original-Received: from localhost ([::1]:40727 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGIrg-0008Ey-9o for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Jun 2016 00:37:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGIra-0008Et-C6 for bug-gnu-emacs@gnu.org; Fri, 24 Jun 2016 00:37:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGIrW-0004Vf-4u for bug-gnu-emacs@gnu.org; Fri, 24 Jun 2016 00:37:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40859) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGIrW-0004Vb-1K for bug-gnu-emacs@gnu.org; Fri, 24 Jun 2016 00:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bGIrV-0003y6-Kv for bug-gnu-emacs@gnu.org; Fri, 24 Jun 2016 00:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Jun 2016 04:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23823 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 23823-submit@debbugs.gnu.org id=B23823.146674298815213 (code B ref 23823); Fri, 24 Jun 2016 04:37:01 +0000 Original-Received: (at 23823) by debbugs.gnu.org; 24 Jun 2016 04:36:28 +0000 Original-Received: from localhost ([127.0.0.1]:53196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bGIqy-0003xH-5P for submit@debbugs.gnu.org; Fri, 24 Jun 2016 00:36:28 -0400 Original-Received: from mail-pa0-f53.google.com ([209.85.220.53]:34938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bGIqw-0003x5-9P for 23823@debbugs.gnu.org; Fri, 24 Jun 2016 00:36:27 -0400 Original-Received: by mail-pa0-f53.google.com with SMTP id hl6so33701293pac.2 for <23823@debbugs.gnu.org>; Thu, 23 Jun 2016 21:36:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=aoaNyrepZpVJfo5PmYiv1vnsBfaqJ0dSbOvKyi7T/mo=; b=usbiYjoBDLueXqr+E20XUwkBxA8w8ZclpazeJMeHAv4vcjTCP7mFqQWz688iIt/jgX y1C4void1P/k+6+T6vzoUzWrwbosymn+XJMBwHs/ubH8PcMbNJOTpTJD6cOPZollmGSz Ip7NtU8JwJz53g4T1obu8uBVKwt5I86TUFkWdSCNZBGFp4/wgwGB4rcGRHCWZNYGAXaS GJETKBsChJva/88om2mxN/jdnmvW3btY1QkPA5ySwqocCr8Mva2oK56NFMQkVBIZw643 dheoB9wu4WrTaVBlQpLWW1bc1Xh8oSIdAOB0e1Gh4Dv/u5j0qYu6oN+yIyusHctAvr6w AmKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=aoaNyrepZpVJfo5PmYiv1vnsBfaqJ0dSbOvKyi7T/mo=; b=gyhDpUDCCaB9H9rBpG+gWcR7yfe9J98Fyv1SCtpNnQmTKrr6vISbQ8NOc7ZswXCjUu K169KnV9HfKVBvV+zd9W4JMiFvfqZSjINLriOQ/3l8M2olqZz6RKh7LoqPWMD9N88yen 7u6r6SXvezC1Nw1kJjiYUrV/4OvhMLgxDAvu5bhkI3LqnHMQVMeh0gu6QKiiZzfjZjPe OG6QHAD2GTTPktovI9WmxWn6/JuR2mPt+tnaWmRu4EfiVb0xSiXDgS1pm4IoMNPxAN8e uEY/NZCsbcyNf2cnL1pIO1tAltbtcbYcFDYrFwJa1fZbQm/8tYIacDtKxNN93tNTH4u8 cWCw== X-Gm-Message-State: ALyK8tL0xCyTY5h3joTyKmnUoU2b4wK7t8++lYNc5SKyeGxvetNPQHeKoxEGI6JJwXZieA== X-Received: by 10.66.121.136 with SMTP id lk8mr3911677pab.51.1466742980410; Thu, 23 Jun 2016 21:36:20 -0700 (PDT) Original-Received: from calancha-pc (softbank126103139048.bbtec.net. [126.103.139.48]) by smtp.gmail.com with ESMTPSA id 81sm3587762pfo.74.2016.06.23.21.36.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Jun 2016 21:36:19 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: <83mvmc2aji.fsf@gnu.org> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) 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:119994 Archived-At: On Thu, 23 Jun 2016, Eli Zaretskii wrote: >> Cc: 23823@debbugs.gnu.org >> From: Tino Calancha >> Date: Thu, 23 Jun 2016 09:46:27 +0900 >> >> My point is: why don't we perform a fresh comparison in 2? > > Because the first time you call highlight-compare-with-file, it turns > on the highlight-changes-mode, which begins to mark changes, including > the replacement of 'b' with 'f'. Yeah, that sounds nice to me: the user is still somehow in the context of the first func. call. > Why does it make sense to forget all that information? Because the user called the function again: this may start a new context, i.e., reset the minor mode in that buffer. I imagine buf-a becaming a mess of colors with all those changes around. At some point the user may want to compare again the current status of buf-a with file-b.