From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Amann Newsgroups: gmane.emacs.bugs Subject: ediff problem with longlines-show-hard-newlines Date: Thu, 5 Jul 2007 15:14:16 +0100 Message-ID: <200707051414.l65EEGQU023789@localhost.localdomain> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1183652554 13989 80.91.229.12 (5 Jul 2007 16:22:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Jul 2007 16:22:34 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 05 18:22:29 2007 connect(): Connection refused 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 1I6U68-0005hW-Tl for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Jul 2007 18:22:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I6U68-0004C4-7C for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Jul 2007 12:22:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I6S6Y-0003fo-Ps for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2007 10:14:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I6S6Y-0003fX-8x for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2007 10:14:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I6S6Y-0003fN-4O for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2007 10:14:46 -0400 Original-Received: from nmrc.ucc.ie ([143.239.64.1]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I6S6X-0004Db-RR for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2007 10:14:46 -0400 Original-Received: from mailhost.tyndall.ie (unknown [10.1.64.4]) by nmrc.ucc.ie (Postfix) with ESMTP id 3F9BE3BC for ; Thu, 5 Jul 2007 15:14:58 +0100 (IST) Original-Received: from localhost (localhost [127.0.0.1]) by mailhost.tyndall.ie (Postfix) with ESMTP id 31CDECC for ; Thu, 5 Jul 2007 15:14:19 +0100 (IST) Original-Received: from mailhost.tyndall.ie ([127.0.0.1]) by localhost (mailhost.tyndall.ie [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 14403-10 for ; Thu, 5 Jul 2007 15:14:17 +0100 (IST) Original-Received: from localhost.localdomain (lnx0015f2465eb1.tyndall.ie [10.1.65.96]) by mailhost.tyndall.ie (Postfix) with ESMTP id 5CB2519 for ; Thu, 5 Jul 2007 15:14:17 +0100 (IST) Original-Received: from localhost.localdomain (lnx0015f2465eb1 [127.0.0.1]) by localhost.localdomain (8.13.4/8.13.4) with ESMTP id l65EEH0L023792 for ; Thu, 5 Jul 2007 15:14:17 +0100 X-Virus-Scanned: amavisd-new at tyndall.ie X-detected-kernel: Solaris 9 X-Mailman-Approved-At: Thu, 05 Jul 2007 12:21:33 -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:16085 Archived-At: 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. In GNU Emacs 22.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.6.10) of 2007-07-04 on lnx0015f2465eb1 Windowing system distributor `The X.Org Foundation', version 11.0.60802000 configured using `configure '--with-gtk' '--prefix=/home/aamann/linux-local'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_IE locale-coding-system: iso-8859-1 default-enable-multibyte-characters: t Major mode: Text Minor modes in effect: longlines-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t use-hard-newlines: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t Recent input: M-x e d i f f - b u f q y C-_ C-_ M-x r e p b u r e p p o r t Recent messages: Buffer B: Processing difference region 0 of 1 Processing difference regions ... done Quit this Ediff session? (y or n) Undo! [2 times] Making completion list... Loading help-mode...done Making completion list... [4 times] Loading emacsbug... Loading regexp-opt...done Loading emacsbug...done