From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Calling Ediff which ignores whitespaces from VC Dir
Date: Thu, 01 Aug 2013 11:37:21 -0400 [thread overview]
Message-ID: <jwv38qtjufz.fsf-monnier+gmane.emacs.help@gnu.org> (raw)
In-Reply-To: 8661vph4dl.fsf@somewhere.org
> Debugger entered--Lisp error: (wrong-number-of-arguments (1 . 2) 0)
0 is the number of args you have provided. (1 . 2) is the min and max
number of args expected by the function.
> With no certainty, I've tried to copy the parameters of `vc-ediff':
> --8<---------------cut here---------------start------------->8---
> (defun vc-ediff-ignore-whitespace (historic &optional not-urgent)
> "Ignore regions that differ in white space & line breaks only."
> (interactive (list current-prefix-arg t))
> (let ((ediff-ignore-similar-regions t))
> (vc-ediff historic not-urgent)))
You could also use (call-interactively 'vc-ediff) instead.
> call-interactively: Symbol's value as variable is void:
> ediff-ignore-similar-regions
That's because ediff was (auto)loaded while ediff-ignore-similar-regions
was let-bound. So at the end of the let, ediff-ignore-similar-regions
was reset to its previous value (i.e. unbound).
That's a long standing problem. To work around such issues, you want to
explicitly load ediff before doing the let.
Stefan
next prev parent reply other threads:[~2013-08-01 15:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-01 14:28 Calling Ediff which ignores whitespaces from VC Dir Sebastien Vauban
2013-08-01 15:37 ` Stefan Monnier [this message]
[not found] ` <mailman.2315.1375371479.12400.help-gnu-emacs@gnu.org>
2013-08-02 9:11 ` Sebastien Vauban
2013-08-02 14:39 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv38qtjufz.fsf-monnier+gmane.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=help-gnu-emacs@gnu.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.