From unknown Tue Aug 19 07:26:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10309: 24.0.92; [wishlist] Add an option to disable "auto-refining" while moving between hunks in diff mode Resent-From: Dani Moncayo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Dec 2011 12:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10309 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 10309@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.132403967430722 (code B ref -1); Fri, 16 Dec 2011 12:48:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Dec 2011 12:47:54 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RbXCc-0007zT-2r for submit@debbugs.gnu.org; Fri, 16 Dec 2011 07:47:54 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RbXCZ-0007zL-RO for submit@debbugs.gnu.org; Fri, 16 Dec 2011 07:47:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RbXAy-000629-NH for submit@debbugs.gnu.org; Fri, 16 Dec 2011 07:46:16 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([140.186.70.17]:58284) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbXAy-000625-Lm for submit@debbugs.gnu.org; Fri, 16 Dec 2011 07:46:12 -0500 Received: from eggs.gnu.org ([140.186.70.92]:44465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbXAu-0002N0-AD for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2011 07:46:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RbXAm-00060g-Ii for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2011 07:46:08 -0500 Received: from mail-yw0-f41.google.com ([209.85.213.41]:63392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbXAm-00060b-Bj for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2011 07:46:00 -0500 Received: by yhgm50 with SMTP id m50so1406915yhg.0 for ; Fri, 16 Dec 2011 04:45:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=rSFLLYy4WuKBvbRfEl3NOUicAuF2ZOmbRkSVgoK8qF8=; b=XvqqM06nb4FCIYPH6yX9Hyulffp45WtOKVa6bnx1I8Q28lHHF9955XA7FV/7/JUNk0 w1yBP31sjMXtCWZ1yNdiEg5QU6JHnEP/M5FRN3Mw5s/mDFRB4lujnoWCPfYUB0KJk3Iw l7c/wLBXagHWabYORKlqq4Jd59Di5M0F/cjbM= MIME-Version: 1.0 Received: by 10.236.189.104 with SMTP id b68mr12704805yhn.21.1324039559825; Fri, 16 Dec 2011 04:45:59 -0800 (PST) Received: by 10.236.114.168 with HTTP; Fri, 16 Dec 2011 04:45:59 -0800 (PST) Date: Fri, 16 Dec 2011 13:45:59 +0100 Message-ID: From: Dani Moncayo Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.9 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.9 (----) Severity: wishlist In diff mode, the commands bound to M-n/M-p move the point to the next/previous hunk, but they do one more thing: they also refine the hunk where point jumps to. I'd like to have the option to control (enable/disable) that automatic refining, because: * Sometimes I don't _need_ it (so my browsing could be faster). * Sometimes I don't _want_ it (when the hunk contains many changed lines, the refined hunk looks confusing). TIA. In GNU Emacs 24.0.92.1 (i386-mingw-nt5.1.2600) of 2011-12-10 on DANI-PC Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.6) --no-opt --cflags -fno-omit-frame-pointer' -- Dani Moncayo From unknown Tue Aug 19 07:26:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10309: 24.0.92; [wishlist] Add an option to disable "auto-refining" while moving between hunks in diff mode Resent-From: Andreas Schwab Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Dec 2011 14:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10309 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dani Moncayo Cc: 10309@debbugs.gnu.org Received: via spool by 10309-submit@debbugs.gnu.org id=B10309.13240452716560 (code B ref 10309); Fri, 16 Dec 2011 14:22:02 +0000 Received: (at 10309) by debbugs.gnu.org; 16 Dec 2011 14:21:11 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RbYes-0001hk-PV for submit@debbugs.gnu.org; Fri, 16 Dec 2011 09:21:10 -0500 Received: from mail-out.m-online.net ([212.18.0.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RbYeq-0001hc-6g for 10309@debbugs.gnu.org; Fri, 16 Dec 2011 09:21:09 -0500 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3A5251802318; Fri, 16 Dec 2011 15:19:30 +0100 (CET) X-Auth-Info: HJ0u7oIFyRR/H1Xq6IW9XWVhkmsi0u2gZ7wpna+87pA= Received: from igel.home (ppp-88-217-106-189.dynamic.mnet-online.de [88.217.106.189]) by mail.mnet-online.de (Postfix) with ESMTPA id 4D3601C0005C; Fri, 16 Dec 2011 15:19:31 +0100 (CET) Received: by igel.home (Postfix, from userid 501) id 4DD17CA29C; Fri, 16 Dec 2011 15:19:30 +0100 (CET) From: Andreas Schwab References: X-Yow: Spreading peanut butter reminds me of opera!! I wonder why? Date: Fri, 16 Dec 2011 15:19:29 +0100 In-Reply-To: (Dani Moncayo's message of "Fri, 16 Dec 2011 13:45:59 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Dani Moncayo writes: > I'd like to have the option to control (enable/disable) that automatic > refining, because: diff-auto-refine-mode Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From unknown Tue Aug 19 07:26:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10309: 24.0.92; [wishlist] Add an option to disable "auto-refining" while moving between hunks in diff mode Resent-From: Dani Moncayo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Dec 2011 16:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10309 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andreas Schwab Cc: 10309@debbugs.gnu.org Received: via spool by 10309-submit@debbugs.gnu.org id=B10309.132405456220326 (code B ref 10309); Fri, 16 Dec 2011 16:57:01 +0000 Received: (at 10309) by debbugs.gnu.org; 16 Dec 2011 16:56:02 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rbb4k-0005Hn-MQ for submit@debbugs.gnu.org; Fri, 16 Dec 2011 11:56:02 -0500 Received: from mail-gy0-f172.google.com ([209.85.160.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rbb4i-0005HO-2s for 10309@debbugs.gnu.org; Fri, 16 Dec 2011 11:56:00 -0500 Received: by ghrr16 with SMTP id r16so2398318ghr.3 for <10309@debbugs.gnu.org>; Fri, 16 Dec 2011 08:54:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6CDLGtcZmzJIn3FBbjbugNJIupVqsprqxeMSo+H+QE4=; b=f0NPdal3QMrX8KqOJfhB+p7c/LlEwiYBdCQAUywJE9iDdJVBjiJ6pbc3N69HYhjP7K QxOLyEzb69ikV2y5O9nSZzUyX/HFhlSUQ/Kmyv8t/KpBsnCjpygKmZLf/qida4QSWnSq wxn/xdu1YLMiPktWx+xnKf4rfAKL4dxAOOaGk= MIME-Version: 1.0 Received: by 10.101.127.1 with SMTP id e1mr342815ann.42.1324054463441; Fri, 16 Dec 2011 08:54:23 -0800 (PST) Received: by 10.236.114.168 with HTTP; Fri, 16 Dec 2011 08:54:23 -0800 (PST) In-Reply-To: References: Date: Fri, 16 Dec 2011 17:54:23 +0100 Message-ID: From: Dani Moncayo Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -3.7 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.7 (---) >> I'd like to have the option to control (enable/disable) that automatic >> refining, because: > > diff-auto-refine-mode Ok, thanks. Then: 1) I'd like to control whether that minor mode is enabled by default after invoking the `diff' command. Currently it is, and I'd like it wasn't. 2) IMO, the info node "(emacs)Diff Mode" should explain the concept of "refined hunks" and also the `diff-auto-refine' minor mode. -- Dani Moncayo From unknown Tue Aug 19 07:26:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10309: 24.0.92; [wishlist] Add an option to disable "auto-refining" while movingbetween hunks in diff mode Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Dec 2011 17:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10309 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "'Dani Moncayo'" , "'Andreas Schwab'" Cc: 10309@debbugs.gnu.org Received: via spool by 10309-submit@debbugs.gnu.org id=B10309.132405697923892 (code B ref 10309); Fri, 16 Dec 2011 17:37:01 +0000 Received: (at 10309) by debbugs.gnu.org; 16 Dec 2011 17:36:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rbbhi-0006DJ-Ml for submit@debbugs.gnu.org; Fri, 16 Dec 2011 12:36:18 -0500 Received: from acsinet15.oracle.com ([141.146.126.227]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rbbhg-0006DA-O1 for 10309@debbugs.gnu.org; Fri, 16 Dec 2011 12:36:17 -0500 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pBGHYceL022554 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 16 Dec 2011 17:34:39 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id pBGHYbli017649 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 16 Dec 2011 17:34:38 GMT Received: from abhmt101.oracle.com (abhmt101.oracle.com [141.146.116.53]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id pBGHYbx8018751; Fri, 16 Dec 2011 11:34:37 -0600 Received: from dradamslap1 (/10.159.43.212) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 16 Dec 2011 09:34:36 -0800 From: "Drew Adams" References: Date: Fri, 16 Dec 2011 09:34:33 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Acy8E4sK9L0A4RBzTHi67n1SitGe2gABSzbQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090208.4EEB812F.00FF,ss=1,re=0.000,fgs=0 X-Spam-Score: -6.2 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) > IMO, the info node "(emacs)Diff Mode" should explain the concept of > "refined hunks" and also the `diff-auto-refine' minor mode. +1. And instead of just saying "make it writable first", say "make it writable first (`C-x C-q')" to let newbies know how to do that. That costs only a few extra characters and does not interrupt the flow. From unknown Tue Aug 19 07:26:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10309: 24.0.92; [wishlist] Add an option to disable "auto-refining" while moving between hunks in diff mode Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Dec 2011 17:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10309 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dani Moncayo Cc: 10309@debbugs.gnu.org, Andreas Schwab Received: via spool by 10309-submit@debbugs.gnu.org id=B10309.132405748524724 (code B ref 10309); Fri, 16 Dec 2011 17:45:02 +0000 Received: (at 10309) by debbugs.gnu.org; 16 Dec 2011 17:44:45 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rbbps-0006Qh-II for submit@debbugs.gnu.org; Fri, 16 Dec 2011 12:44:45 -0500 Received: from mail-pz0-f44.google.com ([209.85.210.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rbbpp-0006QY-73 for 10309@debbugs.gnu.org; Fri, 16 Dec 2011 12:44:42 -0500 Received: by dajz8 with SMTP id z8so2459771daj.3 for <10309@debbugs.gnu.org>; Fri, 16 Dec 2011 09:43:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=zJEDbAdAr2aDjZE+iBD/9ok6IsV0K0dPPyRWP3d0B3k=; b=NzYKguTM/M1RoVIfIOEgF2lYS2jZDa+qw8PIXVbclgF5fvoYRUjktnmo5O6s+tzljA i4wOC9qnHRcW9P76eP82zfYj7T24wmsKakHrh1dJkDIcYcZt1Jvdq9i9MBqSUu7oGHh2 rqY+VTBmNAnhKxB0wpHj5yB5iepv9RhN3lCgM= Received: by 10.68.197.138 with SMTP id iu10mr17639242pbc.27.1324057383638; Fri, 16 Dec 2011 09:43:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.202.11 with HTTP; Fri, 16 Dec 2011 09:42:22 -0800 (PST) In-Reply-To: References: From: Juanma Barranquero Date: Fri, 16 Dec 2011 18:42:22 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.4 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.4 (---) On Fri, Dec 16, 2011 at 17:54, Dani Moncayo wrote: > 1) I'd like to control whether that minor mode is enabled by default > after invoking the `diff' command. =C2=A0Currently it is, and I'd like it > wasn't. What about (setq-default diff-auto-refine-mode nil) in your .emacs? =C2=A0 =C2=A0 Juanma From unknown Tue Aug 19 07:26:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10309: 24.0.92; [wishlist] Add an option to disable "auto-refining" while moving between hunks in diff mode Resent-From: Dani Moncayo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Dec 2011 17:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10309 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juanma Barranquero Cc: 10309@debbugs.gnu.org, Andreas Schwab Received: via spool by 10309-submit@debbugs.gnu.org id=B10309.132405811728470 (code B ref 10309); Fri, 16 Dec 2011 17:56:01 +0000 Received: (at 10309) by debbugs.gnu.org; 16 Dec 2011 17:55:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rbc05-0007P8-56 for submit@debbugs.gnu.org; Fri, 16 Dec 2011 12:55:17 -0500 Received: from mail-yx0-f172.google.com ([209.85.213.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rbc02-0007P0-Vq for 10309@debbugs.gnu.org; Fri, 16 Dec 2011 12:55:15 -0500 Received: by yenm7 with SMTP id m7so2394003yen.3 for <10309@debbugs.gnu.org>; Fri, 16 Dec 2011 09:53:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=L+MEYdL2HkIiDH3aGE59yX4e/M43Z6DRM9y7v/+5PdU=; b=m299BY972K0Evr8pNRD1W+5exmz6ZT9kcOgH+kjcfuKg84M8Nlw9nE6BkZUI/pGWb3 GjyuraiQozH7uGYheM+KNFBs9JTTwr+jeMBR6+aKBaL3jJkSGs7B2n5WY+Tg9Hyfdhha uFDMjourdESPQCy4wHBkOcb8neKrP+NxfDQVQ= MIME-Version: 1.0 Received: by 10.236.183.133 with SMTP id q5mr13257838yhm.38.1324058018064; Fri, 16 Dec 2011 09:53:38 -0800 (PST) Received: by 10.236.114.168 with HTTP; Fri, 16 Dec 2011 09:53:38 -0800 (PST) In-Reply-To: References: Date: Fri, 16 Dec 2011 18:53:38 +0100 Message-ID: From: Dani Moncayo Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.7 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.7 (---) >> 1) I'd like to control whether that minor mode is enabled by default >> after invoking the `diff' command. =A0Currently it is, and I'd like it >> wasn't. > > What about > > =A0(setq-default diff-auto-refine-mode nil) > > in your .emacs? I thought it too, and it seems to work, but I saw the docstring of that variable, and it seem to advise against changing the variable at user-level: Non-nil if Diff-Auto-Refine mode is enabled. Use the command `diff-auto-refine-mode' to change this variable. Why? --=20 Dani Moncayo From unknown Tue Aug 19 07:26:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10309: 24.0.92; [wishlist] Add an option to disable "auto-refining" while moving between hunks in diff mode Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Dec 2011 18:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10309 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dani Moncayo Cc: 10309@debbugs.gnu.org, Andreas Schwab Received: via spool by 10309-submit@debbugs.gnu.org id=B10309.132405971730934 (code B ref 10309); Fri, 16 Dec 2011 18:22:02 +0000 Received: (at 10309) by debbugs.gnu.org; 16 Dec 2011 18:21:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RbcPt-00082t-35 for submit@debbugs.gnu.org; Fri, 16 Dec 2011 13:21:57 -0500 Received: from mail-pz0-f44.google.com ([209.85.210.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RbcPr-00082n-JJ for 10309@debbugs.gnu.org; Fri, 16 Dec 2011 13:21:56 -0500 Received: by dajz8 with SMTP id z8so2481532daj.3 for <10309@debbugs.gnu.org>; Fri, 16 Dec 2011 10:20:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=P3q/eUiio+PTQCf7PzKgqGjcXyCuFY6qo9h+pt9+T6o=; b=BrVeKfRqGnKUy9GQzmBi7Y0jrbFDyeacOuYLxBLlmciWQDOkBouU+tRd/KOAvxf/v2 ljGKp5wThtsWv4bipUK+jJs54o3QGVJw44Bs+wUr3yp/m3oYv4eGzn3xjs/wl/K5Huhh Swzsei6J0CjGe9aOZab9UsUSVr2TpacMkDRhQ= Received: by 10.68.74.41 with SMTP id q9mr17685779pbv.129.1324059618184; Fri, 16 Dec 2011 10:20:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.202.11 with HTTP; Fri, 16 Dec 2011 10:19:37 -0800 (PST) In-Reply-To: References: From: Juanma Barranquero Date: Fri, 16 Dec 2011 19:19:37 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.4 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.4 (---) On Fri, Dec 16, 2011 at 18:53, Dani Moncayo wrote: > I thought it too, and it seems to work, but I saw the docstring of > that variable, and it seem to advise against changing the variable at > user-level: > > =C2=A0Non-nil if Diff-Auto-Refine mode is enabled. > =C2=A0Use the command `diff-auto-refine-mode' to change this variable. > > Why? Usually, every minor mode as as associated variable, but obviously the work is done by the function (the variable just acts as a flag to know whether the minor mode is active or not). In this case, the minor mode is defined with ":init-value t", so it defaults to active. If you check the macroexpansion of the minor-mode definition, you'll see it does (defvar diff-auto-refine-mode t "Non-nil if Diff-Auto-Refine mode is enabled. Use the command `diff-auto-refine-mode' to change this variable.") (make-variable-buffer-local 'diff-auto-refine-mode) so if you want it to default to disabled, you have to set it so. =C2=A0 =C2=A0 Juanma From unknown Tue Aug 19 07:26:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10309: 24.0.92; [wishlist] Add an option to disable "auto-refining" while moving between hunks in diff mode Resent-From: Dani Moncayo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Dec 2011 18:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10309 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juanma Barranquero Cc: 10309@debbugs.gnu.org, Andreas Schwab Received: via spool by 10309-submit@debbugs.gnu.org id=B10309.132406041731994 (code B ref 10309); Fri, 16 Dec 2011 18:34:01 +0000 Received: (at 10309) by debbugs.gnu.org; 16 Dec 2011 18:33:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RbcbB-0008Jz-75 for submit@debbugs.gnu.org; Fri, 16 Dec 2011 13:33:37 -0500 Received: from mail-gy0-f172.google.com ([209.85.160.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rbcb9-0008Jt-LL for 10309@debbugs.gnu.org; Fri, 16 Dec 2011 13:33:36 -0500 Received: by ghrr16 with SMTP id r16so2477592ghr.3 for <10309@debbugs.gnu.org>; Fri, 16 Dec 2011 10:31:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=6SCZsxogpA8kZ0pX/S3rGQqqi2NXIlzayKshJ5NfLSo=; b=KfNRRxwUvAyZ288nMcFN7Sk/pA7NcKmrlbvpllShrOB8J4KaDuNnTmBo5UIz+l/Tu0 SP/BAN8OgkmJhQSOMTmaIYs4PyQ+cTpS451ei+sBsxRFXDJzgb3tZaIp1+4YgGrhWv2A 89PwD4foo8axWyfDcGGPDfTHcQ4FT8RYAtTFc= MIME-Version: 1.0 Received: by 10.101.144.6 with SMTP id w6mr1917296ann.18.1324060318758; Fri, 16 Dec 2011 10:31:58 -0800 (PST) Received: by 10.236.114.168 with HTTP; Fri, 16 Dec 2011 10:31:58 -0800 (PST) In-Reply-To: References: Date: Fri, 16 Dec 2011 19:31:58 +0100 Message-ID: From: Dani Moncayo Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.7 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.7 (---) >> I thought it too, and it seems to work, but I saw the docstring of >> that variable, and it seem to advise against changing the variable at >> user-level: >> >> =A0Non-nil if Diff-Auto-Refine mode is enabled. >> =A0Use the command `diff-auto-refine-mode' to change this variable. >> >> Why? > > Usually, every minor mode as as associated variable, but obviously the > work is done by the function (the variable just acts as a flag to know > whether the minor mode is active or not). > > In this case, the minor mode is defined with ":init-value t", so it > defaults to active. If you check the macroexpansion of the minor-mode > definition, you'll see it does > > =A0(defvar diff-auto-refine-mode t > =A0 =A0"Non-nil if Diff-Auto-Refine mode is enabled. > =A0Use the command `diff-auto-refine-mode' to change this variable.") > =A0(make-variable-buffer-local 'diff-auto-refine-mode) > > so if you want it to default to disabled, you have to set it so. I understand. So, in the info node I mentioned before, please also explain this, i.e., that the diff-auto-refine minor mode can be turned off by default by setting the default value of `diff-auto-refine-mode' to `nil'. Thank you. --=20 Dani Moncayo From unknown Tue Aug 19 07:26:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10309: 24.0.92; [wishlist] Add an option to disable "auto-refining" while moving between hunks in diff mode Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Dec 2011 19:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10309 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juanma Barranquero Cc: 10309@debbugs.gnu.org, schwab@linux-m68k.org, dmoncayo@gmail.com Reply-To: Eli Zaretskii Received: via spool by 10309-submit@debbugs.gnu.org id=B10309.13240640614854 (code B ref 10309); Fri, 16 Dec 2011 19:35:02 +0000 Received: (at 10309) by debbugs.gnu.org; 16 Dec 2011 19:34:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RbdXx-0001GF-Aw for submit@debbugs.gnu.org; Fri, 16 Dec 2011 14:34:21 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RbdXu-0001G7-5E for 10309@debbugs.gnu.org; Fri, 16 Dec 2011 14:34:19 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LWB00000A6M6W00@a-mtaout20.012.net.il> for 10309@debbugs.gnu.org; Fri, 16 Dec 2011 21:32:39 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.39.203]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LWB00M8NAAEKIG0@a-mtaout20.012.net.il>; Fri, 16 Dec 2011 21:32:39 +0200 (IST) Date: Fri, 16 Dec 2011 21:32:42 +0200 From: Eli Zaretskii In-reply-to: Message-id: <83iplg1fdx.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: QUOTED-PRINTABLE X-012-Sender: halo1@inter.net.il References: X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > From: Juanma Barranquero > Date: Fri, 16 Dec 2011 18:42:22 +0100 > Cc: Andreas Schwab , 10309@debbugs.gnu.org >=20 > On Fri, Dec 16, 2011 at 17:54, Dani Moncayo wr= ote: >=20 > > 1) I'd like to control whether that minor mode is enabled by defa= ult > > after invoking the `diff' command. =C2=A0Currently it is, and I'd= like it > > wasn't. >=20 > What about >=20 > (setq-default diff-auto-refine-mode nil) >=20 > in your .emacs? Or turn diff-auto-refine-mode off in the diff-mode-hook. From unknown Tue Aug 19 07:26:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10309: 24.0.92; [wishlist] Add an option to disable "auto-refining" while moving between hunks in diff mode Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Jan 2012 08:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10309 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dani Moncayo Cc: 10309@debbugs.gnu.org, Andreas Schwab Received: via spool by 10309-submit@debbugs.gnu.org id=B10309.132592399115374 (code B ref 10309); Sat, 07 Jan 2012 08:14:01 +0000 Received: (at 10309) by debbugs.gnu.org; 7 Jan 2012 08:13:11 +0000 Received: from localhost ([127.0.0.1]:47680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RjROo-0003zt-GZ for submit@debbugs.gnu.org; Sat, 07 Jan 2012 03:13:11 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:35577 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RjROm-0003zm-Fb for 10309@debbugs.gnu.org; Sat, 07 Jan 2012 03:13:09 -0500 Received: from bb220-255-176-96.singnet.com.sg ([220.255.176.96]:47719 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RjROj-0002gQ-Qa; Sat, 07 Jan 2012 03:13:06 -0500 From: Chong Yidong References: Date: Sat, 07 Jan 2012 16:12:56 +0800 In-Reply-To: (Dani Moncayo's message of "Fri, 16 Dec 2011 17:54:23 +0100") Message-ID: <878vlkkk1j.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Dani Moncayo writes: > 2) IMO, the info node "(emacs)Diff Mode" should explain the concept of > "refined hunks" and also the `diff-auto-refine' minor mode. Done. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 07 03:14:47 2012 Received: (at control) by debbugs.gnu.org; 7 Jan 2012 08:14:47 +0000 Received: from localhost ([127.0.0.1]:47684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RjRQM-00042C-Og for submit@debbugs.gnu.org; Sat, 07 Jan 2012 03:14:47 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:35598 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RjRQL-000426-Og for control@debbugs.gnu.org; Sat, 07 Jan 2012 03:14:46 -0500 Received: from bb220-255-176-96.singnet.com.sg ([220.255.176.96]:47721 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RjRQH-0002md-O9 for control@debbugs.gnu.org; Sat, 07 Jan 2012 03:14:44 -0500 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 10309 Date: Sat, 07 Jan 2012 16:14:34 +0800 Message-ID: <87hb0853px.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) close 10309 thanks