aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMichael Kifer <[email protected]>2006-02-22 06:50:17 +0000
committerMichael Kifer <[email protected]>2006-02-22 06:50:17 +0000
commit608c89a921fa0f2bf13a588f110826990446432f (patch)
tree2368c0635c123712b49129f45d92d31eb0ca1894 /lisp
parenta1b24e137f75b9f5fdbd5526947a70c462c5e5bf (diff)
2006-02-21 Michael Kifer <[email protected]>
* ediff-diff.el (ediff-setup-diff-regions, ediff-setup-diff-regions3): fix the regular expressions.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/ediff-diff.el5
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f5d8756270..c032b42436 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2006-02-21 Michael Kifer <[email protected]>
+
+ * ediff-diff.el (ediff-setup-diff-regions, ediff-setup-diff-regions3):
+ fix the regular expressions.
+
2006-02-21 Richard M. Stallman <[email protected]>
* progmodes/sh-script.el (sh-mode): Set shell type based on file name
diff --git a/lisp/ediff-diff.el b/lisp/ediff-diff.el
index 62a6386584..013ed9073d 100644
--- a/lisp/ediff-diff.el
+++ b/lisp/ediff-diff.el
@@ -251,7 +251,8 @@ one optional arguments, diff-number to refine.")
;; ediff-setup-diff-regions3, which takes 4 arguments.
(defun ediff-setup-diff-regions (file-A file-B file-C)
;; looking for '-c', '-i', or a 'c', 'i' among clustered non-long options
- (if (string-match "^-[ci]\\| -[ci]\\|-[^- ]+[ci]" ediff-diff-options)
+ (if (string-match "^-[ci]\\| -[ci]\\|\\(^\\| \\)-[^- ]+[ci]"
+ ediff-diff-options)
(error "Options `-c' and `-i' are not allowed in `ediff-diff-options'"))
;; create, if it doesn't exist
@@ -1215,7 +1216,7 @@ delimiter regions"))
;; or it is the ancestor file.
(defun ediff-setup-diff-regions3 (file-A file-B file-C)
;; looking for '-i' or a 'i' among clustered non-long options
- (if (string-match "^-i\\| -i\\|-[^- ]+i" ediff-diff-options)
+ (if (string-match "^-i\\| -i\\|\\(^\\| \\)-[^- ]+i" ediff-diff-options)
(error "Option `-i' is not allowed in `ediff-diff3-options'"))
(or (ediff-buffer-live-p ediff-diff-buffer)