From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero 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:19:37 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1324059643 18966 80.91.229.12 (16 Dec 2011 18:20:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 16 Dec 2011 18:20:43 +0000 (UTC) Cc: Andreas Schwab , 10309@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 16 19:20:39 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 1RbcOY-0007zm-78 for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Dec 2011 19:20:34 +0100 Original-Received: from localhost ([::1]:46554 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbcOX-0003su-HI for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Dec 2011 13:20:33 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:33827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbcOU-0003sc-F3 for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2011 13:20:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RbcOQ-00032b-59 for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2011 13:20:30 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbcOQ-00032X-28 for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2011 13:20:26 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RbcPy-00083B-E8 for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2011 13:22:02 -0500 X-Loop: help-debbugs@gnu.org 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: Original-Received: via spool by 10309-submit@debbugs.gnu.org id=B10309.132405971730934 (code B ref 10309); Fri, 16 Dec 2011 18:22:02 +0000 Original-Received: (at 10309) by debbugs.gnu.org; 16 Dec 2011 18:21:57 +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 1RbcPt-00082t-35 for submit@debbugs.gnu.org; Fri, 16 Dec 2011 13:21:57 -0500 Original-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 Original-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= Original-Received: by 10.68.74.41 with SMTP id q9mr17685779pbv.129.1324059618184; Fri, 16 Dec 2011 10:20:18 -0800 (PST) Original-Received: by 10.142.202.11 with HTTP; Fri, 16 Dec 2011 10:19:37 -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:22:02 -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:55019 Archived-At: 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