From: Dani Moncayo <dmoncayo@gmail.com>
To: Juanma Barranquero <lekktu@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:31:58 +0100 [thread overview]
Message-ID: <CAH8Pv0jiy=quqTFGD8_Y8FDaXK26ESe=eJ=n0C3TToG-C5MM_A@mail.gmail.com> (raw)
In-Reply-To: <CAAeL0SRVBitY6skBT-9YSqWeiJ26-tQLwgauVXHBPjCU3Wc4aA@mail.gmail.com>
>> 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.
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.
--
Dani Moncayo
next prev parent reply other threads:[~2011-12-16 18:31 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
2011-12-16 18:31 ` Dani Moncayo [this message]
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='CAH8Pv0jiy=quqTFGD8_Y8FDaXK26ESe=eJ=n0C3TToG-C5MM_A@mail.gmail.com' \
--to=dmoncayo@gmail.com \
--cc=10309@debbugs.gnu.org \
--cc=lekktu@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).