From unknown Fri Jun 13 09:57:35 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#871 <871@debbugs.gnu.org> To: bug#871 <871@debbugs.gnu.org> Subject: Status: 23.0.60; diff mode inverted logic Reply-To: bug#871 <871@debbugs.gnu.org> Date: Fri, 13 Jun 2025 16:57:35 +0000 retitle 871 23.0.60; diff mode inverted logic reassign 871 emacs submitter 871 David Abrahams severity 871 wishlist thanks From dave@boostpro.com Wed Sep 3 06:30:49 2008 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 ; 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 ) id 1KasPx-0001Z9-Nn for emacs-pretest-bug@gnu.org; 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 ) id 1KasRT-0005YL-NP for emacs-pretest-bug@gnu.org; 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 ) id 1KasRT-0005Y3-6S for emacs-pretest-bug@gnu.org; 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 To: emacs-pretest-bug@gnu.org Subject: 23.0.60; diff mode inverted logic Date: Wed, 03 Sep 2008 09:30:34 -0400 Message-ID: <8763pdcq6d.fsf@mcbain.luannocracy.com> 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@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 From cyd@stupidchicken.com Wed Sep 24 12:38:46 2008 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 ; 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 To: control@debbugs.gnu.org Subject: Classify bugs Date: Wed, 24 Sep 2008 15:39:11 -0400 Message-ID: <87prmt9vvk.fsf@cyd.mit.edu> 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