X-Loop: don@HIDDEN Subject: bug#871: 23.0.60; diff mode inverted logic Reply-To: David Abrahams <dave@HIDDEN>, 871 <at> debbugs.gnu.org Resent-From: David Abrahams <dave@HIDDEN> Resent-To: bug-submit-list@HIDDEN Resent-CC: Emacs Bugs <bug-gnu-emacs@HIDDEN> Resent-Date: Wed, 03 Sep 2008 13:40:04 +0000 Resent-Message-ID: <handler.871.B.122044864919639@HIDDEN> Resent-Sender: don@HIDDEN X-Emacs-PR-Message: report 871 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@HIDDEN id=B.122044864919639 (code B ref -1); Wed, 03 Sep 2008 13:40:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.9 required=4.0 tests=BAYES_00,FOURLA, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 3 Sep 2008 13:30:49 +0000 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 <submit@HIDDEN>; Wed, 3 Sep 2008 06:30:45 -0700 Received: from mx10.gnu.org ([199.232.76.166]:52916) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from <dave@HIDDEN>) id 1KasPx-0001Z9-Nn for emacs-pretest-bug@HIDDEN; Wed, 03 Sep 2008 09:29:05 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from <dave@HIDDEN>) id 1KasRT-0005YL-NP for emacs-pretest-bug@HIDDEN; Wed, 03 Sep 2008 09:30:44 -0400 Received: from boost-consulting.com ([206.71.190.141]:61856) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from <dave@HIDDEN>) id 1KasRT-0005Y3-6S for emacs-pretest-bug@HIDDEN; Wed, 03 Sep 2008 09:30:39 -0400 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) From: David Abrahams <dave@HIDDEN> To: emacs-pretest-bug@HIDDEN Date: Wed, 03 Sep 2008 09:30:34 -0400 Message-ID: <8763pdcq6d.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (1) 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@HIDDEN 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-, <M-backspace> <backspace> <return> C-S-x C-S-w M-P M-P M-P M-P <return> Y Y C-S-x B B O O <tab> C-S-g C-S-x C-S-k M-< C-_ C-_ C-S-x C-S-v <return> Y E S <return> y e s <return> n C-_ C-x C-q n C-c C-r <return> 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 <tab> <backspace> <backspace> <backspace> <tab> <tab> C-g C-g C-h a b u g <return> 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 <tab> r t <tab> b u <tab> <return> 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
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) Content-Type: text/plain; charset=utf-8 X-Loop: don@HIDDEN From: help-debbugs@HIDDEN (Emacs bug Tracking System) To: David Abrahams <dave@HIDDEN> Subject: bug#871: Acknowledgement (23.0.60; diff mode inverted logic) Message-ID: <handler.871.B.122044864919639.ack@HIDDEN> References: <8763pdcq6d.fsf@HIDDEN> X-Emacs-PR-Message: ack 871 X-Emacs-PR-Package: emacs Reply-To: 871 <at> debbugs.gnu.org Thank you for filing a new bug report with Emacs. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): Emacs Bugs <bug-gnu-emacs@HIDDEN> If you wish to submit further information on this problem, please send it to 871 <at> debbugs.gnu.org, as before. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 871: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D871 Emacs Bug Tracking System Contact help-debbugs@HIDDEN with problems
Received: (at unknown) by unknown; unknown X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.8 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 24 Sep 2008 19:38:46 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8OJciAE013237 for <control@HIDDEN>; Wed, 24 Sep 2008 12:38:45 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 80BB057E189; Wed, 24 Sep 2008 15:39:11 -0400 (EDT) From: Chong Yidong <cyd@HIDDEN> To: control <at> debbugs.gnu.org Subject: Classify bugs Date: Wed, 24 Sep 2008 15:39:11 -0400 Message-ID: <87prmt9vvk.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii close 308 severity 337 wishlist tags 515 moreinfo tags 656 moreinfo severity 829 wishlist severity 871 wishlist thanks
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.