unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Dani Moncayo <dmoncayo@gmail.com>
Cc: Andreas Schwab <schwab@linux-m68k.org>, 10309@debbugs.gnu.org
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	[thread overview]
Message-ID: <CAAeL0SRVBitY6skBT-9YSqWeiJ26-tQLwgauVXHBPjCU3Wc4aA@mail.gmail.com> (raw)
In-Reply-To: <CAH8Pv0iY1o6AYxKfE-Zo75Wj-m-ndX0-azDa7tvxvk2yDHsqBg@mail.gmail.com>

On Fri, Dec 16, 2011 at 18:53, Dani Moncayo <dmoncayo@gmail.com> 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:
>
>  Non-nil if Diff-Auto-Refine mode is enabled.
>  Use 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.

    Juanma





  reply	other threads:[~2011-12-16 18:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-16 12:45 bug#10309: 24.0.92; [wishlist] Add an option to disable "auto-refining" while moving between hunks in diff mode Dani Moncayo
2011-12-16 14:19 ` Andreas Schwab
2011-12-16 16:54   ` Dani Moncayo
2011-12-16 17:34     ` bug#10309: 24.0.92; [wishlist] Add an option to disable "auto-refining" while movingbetween " Drew Adams
2011-12-16 17:42     ` bug#10309: 24.0.92; [wishlist] Add an option to disable "auto-refining" while moving between " Juanma Barranquero
2011-12-16 17:53       ` Dani Moncayo
2011-12-16 18:19         ` Juanma Barranquero [this message]
2011-12-16 18:31           ` Dani Moncayo
2011-12-16 19:32       ` Eli Zaretskii
2012-01-07  8:12     ` Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAeL0SRVBitY6skBT-9YSqWeiJ26-tQLwgauVXHBPjCU3Wc4aA@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=10309@debbugs.gnu.org \
    --cc=dmoncayo@gmail.com \
    --cc=schwab@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).