From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23823: 25.0.95; Reset between highlight buffer/file comparisons Date: Wed, 22 Jun 2016 18:16:10 +0300 Message-ID: <83y45x45l1.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1466608715 27171 80.91.229.3 (22 Jun 2016 15:18:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Jun 2016 15:18:35 +0000 (UTC) Cc: 23823@debbugs.gnu.org To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 22 17:18:24 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 1bFjv4-0002O0-Q7 for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Jun 2016 17:18:22 +0200 Original-Received: from localhost ([::1]:59032 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFjuz-0005VD-17 for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Jun 2016 11:18:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFjuq-0005Sj-PL for bug-gnu-emacs@gnu.org; Wed, 22 Jun 2016 11:18:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFjuk-00022n-7L for bug-gnu-emacs@gnu.org; Wed, 22 Jun 2016 11:18:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFjuk-00022i-4G for bug-gnu-emacs@gnu.org; Wed, 22 Jun 2016 11:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bFjuk-0005JJ-0I for bug-gnu-emacs@gnu.org; Wed, 22 Jun 2016 11:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Jun 2016 15:18: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: Original-Received: via spool by 23823-submit@debbugs.gnu.org id=B23823.146660863520355 (code B ref 23823); Wed, 22 Jun 2016 15:18:01 +0000 Original-Received: (at 23823) by debbugs.gnu.org; 22 Jun 2016 15:17:15 +0000 Original-Received: from localhost ([127.0.0.1]:51305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFjtz-0005IF-4d for submit@debbugs.gnu.org; Wed, 22 Jun 2016 11:17:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFjtx-0005I2-QY for 23823@debbugs.gnu.org; Wed, 22 Jun 2016 11:17:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFjtm-0001tW-E3 for 23823@debbugs.gnu.org; Wed, 22 Jun 2016 11:17:06 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41649) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFjtm-0001tB-Aa; Wed, 22 Jun 2016 11:17:02 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1871 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bFjti-0005z3-Dl; Wed, 22 Jun 2016 11:16:58 -0400 In-reply-to: (message from Tino Calancha on Wed, 22 Jun 2016 19:11:27 +0900 (JST)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:119936 Archived-At: > From: Tino Calancha > Date: Wed, 22 Jun 2016 19:11:27 +0900 (JST) > > ./emacs -r -Q -eval '(progn (with-temp-file "/tmp/foo" (insert "foo")) > (switch-to-buffer "bar") (insert "boo"))' > M-: (highlight-compare-with-file "/tmp/foo") RET > C-b C-b DEL f > M-: M-p RET > ;; Now current buffer content equals /tmp/foo content > ;; but foo is still displayed with face highlight-changes. What I see is 'f' in a "deleted" face. Which seems reasonable to me. Whether a change that countermands another change should count as a change is a philosophical question that AFAIK doesn't have a one-fits-all answer.