From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.bugs Subject: bug#10309: 24.0.92; [wishlist] Add an option to disable "auto-refining" while moving between hunks in diff mode Date: Fri, 16 Dec 2011 19:31:58 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1324060365 23826 80.91.229.12 (16 Dec 2011 18:32:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 16 Dec 2011 18:32:45 +0000 (UTC) Cc: Andreas Schwab , 10309@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 16 19:32:40 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RbcaC-0005Hx-Po for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Dec 2011 19:32:36 +0100 Original-Received: from localhost ([::1]:58786 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbcaB-0004z2-SH for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Dec 2011 13:32:35 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:49562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rbca6-0004yj-AU for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2011 13:32:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rbca2-0004iT-7x for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2011 13:32:30 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rbca2-0004iJ-1E for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2011 13:32:26 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RbcbZ-0008Kg-V5 for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2011 13:34:01 -0500 X-Loop: help-debbugs@gnu.org 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: Original-Received: via spool by 10309-submit@debbugs.gnu.org id=B10309.132406041731994 (code B ref 10309); Fri, 16 Dec 2011 18:34:01 +0000 Original-Received: (at 10309) by debbugs.gnu.org; 16 Dec 2011 18:33:37 +0000 Original-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 Original-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 Original-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= Original-Received: by 10.101.144.6 with SMTP id w6mr1917296ann.18.1324060318758; Fri, 16 Dec 2011 10:31:58 -0800 (PST) Original-Received: by 10.236.114.168 with HTTP; Fri, 16 Dec 2011 10:31:58 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 16 Dec 2011 13:34:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:55020 Archived-At: >> 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