From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kifer@cs.sunysb.edu (Michael Kifer) Newsgroups: gmane.emacs.bugs Subject: Re: [andreas.amann@web.de: ediff problem with longlines-show-hard-newlines] Date: Mon, 09 Jul 2007 12:49:13 -0400 Message-ID: <12238.1183999753@cs.sunysb.edu> References: NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1184001277 8348 80.91.229.12 (9 Jul 2007 17:14:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 9 Jul 2007 17:14:37 +0000 (UTC) Cc: Chong Yidong , bug-gnu-emacs@gnu.org, rms@gnu.org To: andreas.amann@web.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 09 19:14:34 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I7wok-0003CL-GN for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Jul 2007 19:14:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I7woj-0000dv-P1 for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Jul 2007 13:14:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I7wQP-0007hn-28 for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2007 12:49:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I7wQM-0007g3-El for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2007 12:49:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I7wQM-0007g0-CC for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2007 12:49:22 -0400 Original-Received: from sbcs.cs.sunysb.edu ([130.245.1.15]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I7wQJ-0007XE-I2; Mon, 09 Jul 2007 12:49:19 -0400 Original-Received: from localhost (compserv1 [130.245.1.44]) by sbcs.cs.sunysb.edu (8.13.6/8.12.11) with ESMTP id l69GnBmJ009234; Mon, 9 Jul 2007 12:49:12 -0400 (EDT) Original-Received: from [127.0.0.1]:10025 (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id 92D9174058; Mon, 9 Jul 2007 12:49:13 -0400 (EDT) In-Reply-To: Message from Richard Stallman of "Fri, 06 Jul 2007 00:39:03 EDT." X-Mailer: MH-E 8.0.3; nmh 1.1; GNU Emacs 22.1.50 X-detected-kernel: Solaris 10 (1203?) X-Mailman-Approved-At: Mon, 09 Jul 2007 13:13:59 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16113 Archived-At: > Date: Thu, 5 Jul 2007 15:14:16 +0100 > From: Andreas Amann > To: bug-gnu-emacs@gnu.org > Subject: ediff problem with longlines-show-hard-newlines > > > entering ediff-buffers and leaving it immediately sets the modified > flags of the visited buffers, even if no editing was done. This only > happens if longlines-show-hard-newlines is set to true. > > > Minimal test case: > >cat ~/.emacs > (require 'longlines) > (add-hook 'text-mode-hook (lambda () (longlines-mode 1))) > (setq longlines-show-hard-newlines t) > > >cat testcase_ediff.txt > A C > > >cat testcase_ediff2.txt > A B C > > >emacs -no-site-file testcase_ediff.txt testcase_ediff2.txt > "M-x ediff-buffers" and select the two loaded buffers > "q" to quit ediff ("yes" to confirm) > > now the modified flags "**" are set for both buffers although no > editing was done. This is because with your settings: (require 'longlines) (add-hook 'text-mode-hook (lambda () (longlines-mode 1))) (setq longlines-show-hard-newlines t) executing (longlines-mode 0) marks text buffers as modified. It seems to me a problem with longlines-mode rather than with ediff. I am copying this to the maintainer of longlines.el for clarifications.