From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Abrahams Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#871: 23.0.60; diff mode inverted logic Date: Wed, 03 Sep 2008 09:30:34 -0400 Message-ID: <8763pdcq6d.fsf@mcbain.luannocracy.com> Reply-To: David Abrahams , 871@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220498877 16383 80.91.229.12 (4 Sep 2008 03:27:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Sep 2008 03:27:57 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 04 05:28:51 2008 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 1Kb5Wb-0004im-Mm for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Sep 2008 05:28:50 +0200 Original-Received: from localhost ([127.0.0.1]:59218 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kb5Vc-0007cF-6v for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Sep 2008 23:27:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kashr-0004OJ-9n for bug-gnu-emacs@gnu.org; Wed, 03 Sep 2008 09:47:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kashp-0004Nx-W9 for bug-gnu-emacs@gnu.org; Wed, 03 Sep 2008 09:47:34 -0400 Original-Received: from [199.232.76.173] (port=57896 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kashp-0004Nu-QQ for bug-gnu-emacs@gnu.org; Wed, 03 Sep 2008 09:47:33 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:39729) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kashq-0007po-1Z for bug-gnu-emacs@gnu.org; Wed, 03 Sep 2008 09:47:34 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m83DlUes025137; Wed, 3 Sep 2008 06:47:31 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m83De4ij022109; Wed, 3 Sep 2008 06:40:04 -0700 X-Loop: don@donarmstrong.com Resent-From: David Abrahams Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 03 Sep 2008 13:40:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 871 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122044864919639 (code B ref -1); Wed, 03 Sep 2008 13:40:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 3 Sep 2008 13:30:49 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m83DUikL019633 for ; Wed, 3 Sep 2008 06:30:45 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:52916) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KasPx-0001Z9-Nn for emacs-pretest-bug@gnu.org; Wed, 03 Sep 2008 09:29:05 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KasRT-0005YL-NP for emacs-pretest-bug@gnu.org; Wed, 03 Sep 2008 09:30:44 -0400 Original-Received: from boost-consulting.com ([206.71.190.141]:61856) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KasRT-0005Y3-6S for emacs-pretest-bug@gnu.org; Wed, 03 Sep 2008 09:30:39 -0400 Original-Received: from mcbain.luannocracy.com.boostpro.com (207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com [207.172.223.249]) (Authenticated sender: dave) by boost-consulting.com (Postfix) with ESMTPSA id 319D61CC1E; Wed, 3 Sep 2008 06:24:23 -0700 (PDT) X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (1) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Wed, 03 Sep 2008 09:47:34 -0400 X-Mailman-Approved-At: Wed, 03 Sep 2008 23:27:44 -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:20119 gmane.emacs.pretest.bugs:22961 Archived-At: Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: diff -dur directory1 directory2 > changes.diff `C-x C-f changes.diff' `C-x C-q' ;; to make the buffer read-only, if it isn't already `N' `C-c C-a' The diff described above generates a patch that can be used to transform directory1 so that it is identical to directory2. However, using diff-mode with default settings to actually perform that transformation is unaccountably awkward. First of all, if you use diff mode in the most obvious way, it wants to modify directory2 instead of directory1. The only way I know of to get it to operate on directory1 instead is to invert the direction of the diffs with `C-c C-r'. But then every time I apply a diff, I am told that it has already been applied and asked if I want to undo it. I can say yes and get the behavior I want, but as I noted, it's awkward at best. Hmm, I just discovered diff-jump-to-old-file, which defaults to nil, and corrects this problem! What use case is made easier by its default setting? If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/local/share/emacs/23.0.60/etc/DEBUG for instructions. In GNU Emacs 23.0.60.2 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2008-05-03 on mcbain Windowing system distributor `The X.Org Foundation', version 11.0.10400090 configured using `configure '--with-x-toolkit=gtk' '--prefix=/usr/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_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Diff Minor modes in effect: shell-dirtrack-mode: t show-paren-mode: t global-auto-revert-mode: t delete-selection-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-n C-n C-n C-n C-n C-n C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p M-< M-! M-p C-. C-. C-. C-. C-. C-. C-. C-, C-S-x C-S-w M-P M-P M-P M-P Y Y C-S-x B B O O C-S-g C-S-x C-S-k M-< C-_ C-_ C-S-x C-S-v Y E S y e s n C-_ C-x C-q n C-c C-r C-x C-f C-g C-x C-n C-c C-a y C-h m C-x C-p C-s b u g C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-s C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-x C-k C-x C-n M-x e m a c s - b u C-g C-g C-h a b u g C-x C-p C-s r e p o r t C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-x C-k C-x C-n M-x r e p o r t b u Recent messages: Mark set Hunk has already been applied; undo it? (y or n) Hunk undone Type C-x 4 C-o RET to restore the other window, C-M-v to scroll help. Mark saved where search started Making completion list... Quit [2 times] Type C-x 4 C-o RET to restore the other window. Mark saved where search started Making completion list... -- Dave Abrahams BoostPro Computing http://www.boostpro.com