unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ivan Zakharyaschev <imz@altlinux.org>
Subject: the '-c'-check in ediff-diff.el too strict (patch; 21.2 & HEAD)
Date: Mon, 18 Nov 2002 00:12:45 +0300 (MSK)	[thread overview]
Message-ID: <Pine.LNX.4.44L.0211172347560.1468-200000@arrakis.zephyrous> (raw)

[-- Attachment #1: Type: TEXT/PLAIN, Size: 562 bytes --]

	Hello!

I'm running emacs 21.2 and have set:

ediff-diff-options's value is
"--ignore-space-change --ignore-blank-lines"

and when I run ediff-buffers, it says:

ediff-setup-diff-regions: Option `-c' is not allowed in
`ediff-diff-options'

The attached patch fixes the problem: it refines the regexp for the
check. I had a look into the CVS of Emacs, it looks like this is not
yet fixed in the HEAD either.

Regards,


-- 
Ivan Zakharyaschev
ALT Linux Team member
I'm a Sisyphus developer: it's core is GNU/Linux
http://www.altlinux.ru, http://www.altlinux.com

[-- Attachment #2: refine the cjeck for '-c' --]
[-- Type: TEXT/PLAIN, Size: 742 bytes --]

Refine the regexp for checking the options against '-c' option
to diff; make it *not* match smth like 
"--ignore-space-change --ignore-blank-lines".

imz@altlinux.ru, Nov 2002.

--- 21.2/lisp/ediff-diff.el.check-c	2002-11-17 23:46:05 +0300
+++ 21.2/lisp/ediff-diff.el	2002-11-17 23:58:26 +0300
@@ -223,7 +223,7 @@
 ;; ediff-setup-diff-regions-function, which can also have the value
 ;; ediff-setup-diff-regions3, which takes 4 arguments.
 (defun ediff-setup-diff-regions (file-A file-B file-C)
-  (if (string-match "c" ediff-diff-options)
+  (if (string-match "\\(^\\|[[:space:]]\\)-[^-]*c" ediff-diff-options)
       (error "Option `-c' is not allowed in `ediff-diff-options'"))
 						  
   ;; create, if it doesn't exist

             reply	other threads:[~2002-11-17 21:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <imz@altlinux.org>
2002-11-17 21:12 ` Ivan Zakharyaschev [this message]
2002-11-17 22:31   ` the '-c'-check in ediff-diff.el too strict (patch; 21.2 & HEAD) Michael Kifer

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=Pine.LNX.4.44L.0211172347560.1468-200000@arrakis.zephyrous \
    --to=imz@altlinux.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).