aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kifer2002-11-17 22:26:48 +0000
committerMichael Kifer2002-11-17 22:26:48 +0000
commit6dfd1bcc543f505d8bbc579c6b358744b5e7cfd6 (patch)
tree3361e9e3e2d260207745631f527150686267fb8f
parentd283d229dc1ca3383a1d34a8d283232ad6297f2e (diff)
downloademacs-6dfd1bcc543f505d8bbc579c6b358744b5e7cfd6.tar.gz
emacs-6dfd1bcc543f505d8bbc579c6b358744b5e7cfd6.zip
2002-11-17 Michael Kifer <kifer@cs.stonybrook.edu>
* ediff-diff.el (ediff-setup-diff-regions): change regexp. * ediff-mult.el: comments. * ediff.el: comments.
-rw-r--r--lisp/ediff-diff.el3
-rw-r--r--lisp/ediff-mult.el3
-rw-r--r--lisp/ediff.el21
3 files changed, 15 insertions, 12 deletions
diff --git a/lisp/ediff-diff.el b/lisp/ediff-diff.el
index f6c6a850329..37ac8c0e13d 100644
--- a/lisp/ediff-diff.el
+++ b/lisp/ediff-diff.el
@@ -225,7 +225,8 @@ one optional arguments, diff-number to refine.")
225;; ediff-setup-diff-regions-function, which can also have the value 225;; ediff-setup-diff-regions-function, which can also have the value
226;; ediff-setup-diff-regions3, which takes 4 arguments. 226;; ediff-setup-diff-regions3, which takes 4 arguments.
227(defun ediff-setup-diff-regions (file-A file-B file-C) 227(defun ediff-setup-diff-regions (file-A file-B file-C)
228 (if (string-match "c" ediff-diff-options) 228 ;; looking either for '-c' or a 'c' in a set of clustered non-long options
229 (if (string-match "^-c\\| -c\\|-[^- ]+c" ediff-diff-options)
229 (error "Option `-c' is not allowed in `ediff-diff-options'")) 230 (error "Option `-c' is not allowed in `ediff-diff-options'"))
230 231
231 ;; create, if it doesn't exist 232 ;; create, if it doesn't exist
diff --git a/lisp/ediff-mult.el b/lisp/ediff-mult.el
index 8e526c03659..a96450c9cf4 100644
--- a/lisp/ediff-mult.el
+++ b/lisp/ediff-mult.el
@@ -505,7 +505,8 @@ behavior."
505;; DIR1, DIR2, DIR3 are directories. DIR3 can be nil. 505;; DIR1, DIR2, DIR3 are directories. DIR3 can be nil.
506;; OUTPUT-DIR is a directory for auto-storing the results of merge jobs. 506;; OUTPUT-DIR is a directory for auto-storing the results of merge jobs.
507;; Can be nil. 507;; Can be nil.
508;; REGEXP is a regexp used to filter out files in the directories. 508;; REGEXP is nil or a filter regexp; only file names that match the regexp
509;; are considered.
509;; If a file is a directory in dir1 but not dir2 (or vice versa), it is not 510;; If a file is a directory in dir1 but not dir2 (or vice versa), it is not
510;; included in the intersection. However, a regular file that is a dir in dir3 511;; included in the intersection. However, a regular file that is a dir in dir3
511;; is included, since dir3 files are supposed to be ancestors for merging. 512;; is included, since dir3 files are supposed to be ancestors for merging.
diff --git a/lisp/ediff.el b/lisp/ediff.el
index 5b0f85d05cd..44eac2d7abd 100644
--- a/lisp/ediff.el
+++ b/lisp/ediff.el
@@ -497,8 +497,8 @@ If this file is a backup, `ediff' it with its original."
497;;;###autoload 497;;;###autoload
498(defun ediff-directories (dir1 dir2 regexp) 498(defun ediff-directories (dir1 dir2 regexp)
499 "Run Ediff on a pair of directories, DIR1 and DIR2, comparing files that have 499 "Run Ediff on a pair of directories, DIR1 and DIR2, comparing files that have
500the same name in both. The third argument, REGEXP, is a regular expression 500the same name in both. The third argument, REGEXP, is nil or a regular
501that can be used to filter out certain file names." 501expression; only file names that match the regexp are considered."
502 (interactive 502 (interactive
503 (let ((dir-A (ediff-get-default-directory-name)) 503 (let ((dir-A (ediff-get-default-directory-name))
504 f) 504 f)
@@ -542,8 +542,9 @@ names. Only the files that are under revision control are taken into account."
542;;;###autoload 542;;;###autoload
543(defun ediff-directories3 (dir1 dir2 dir3 regexp) 543(defun ediff-directories3 (dir1 dir2 dir3 regexp)
544 "Run Ediff on three directories, DIR1, DIR2, and DIR3, comparing files that 544 "Run Ediff on three directories, DIR1, DIR2, and DIR3, comparing files that
545have the same name in all three. The last argument, REGEXP, is a regular 545have the same name in all three. The last argument, REGEXP, is nil or a
546expression that can be used to filter out certain file names." 546regular expression; only file names that match the regexp are considered."
547
547 (interactive 548 (interactive
548 (let ((dir-A (ediff-get-default-directory-name)) 549 (let ((dir-A (ediff-get-default-directory-name))
549 f) 550 f)
@@ -571,8 +572,8 @@ expression that can be used to filter out certain file names."
571;;;###autoload 572;;;###autoload
572(defun ediff-merge-directories (dir1 dir2 regexp &optional merge-autostore-dir) 573(defun ediff-merge-directories (dir1 dir2 regexp &optional merge-autostore-dir)
573 "Run Ediff on a pair of directories, DIR1 and DIR2, merging files that have 574 "Run Ediff on a pair of directories, DIR1 and DIR2, merging files that have
574the same name in both. The third argument, REGEXP, is a regular expression 575the same name in both. The third argument, REGEXP, is nil or a regular
575that can be used to filter out certain file names." 576expression; only file names that match the regexp are considered."
576 (interactive 577 (interactive
577 (let ((dir-A (ediff-get-default-directory-name)) 578 (let ((dir-A (ediff-get-default-directory-name))
578 f) 579 f)
@@ -600,8 +601,8 @@ that can be used to filter out certain file names."
600 "Merge files in directories DIR1 and DIR2 using files in ANCESTOR-DIR as ancestors. 601 "Merge files in directories DIR1 and DIR2 using files in ANCESTOR-DIR as ancestors.
601Ediff merges files that have identical names in DIR1, DIR2. If a pair of files 602Ediff merges files that have identical names in DIR1, DIR2. If a pair of files
602in DIR1 and DIR2 doesn't have an ancestor in ANCESTOR-DIR, Ediff will merge 603in DIR1 and DIR2 doesn't have an ancestor in ANCESTOR-DIR, Ediff will merge
603without ancestor. The fourth argument, REGEXP, is a regular expression that 604without ancestor. The fourth argument, REGEXP, is nil or a regular expression;
604can be used to filter out certain file names." 605only file names that match the regexp are considered."
605 (interactive 606 (interactive
606 (let ((dir-A (ediff-get-default-directory-name)) 607 (let ((dir-A (ediff-get-default-directory-name))
607 f) 608 f)
@@ -676,8 +677,8 @@ names. Only the files that are under revision control are taken into account."
676 677
677;; Run ediff-action (ediff-files, ediff-merge, ediff-merge-with-ancestors) 678;; Run ediff-action (ediff-files, ediff-merge, ediff-merge-with-ancestors)
678;; on a pair of directories (three directories, in case of ancestor). 679;; on a pair of directories (three directories, in case of ancestor).
679;; The third argument, REGEXP, is a regular expression that can be used to 680;; The third argument, REGEXP, is nil or a regular expression;
680;; filter out certain file names. 681;; only file names that match the regexp are considered.
681;; JOBNAME is the symbol indicating the meta-job to be performed. 682;; JOBNAME is the symbol indicating the meta-job to be performed.
682;; MERGE-AUTOSTORE-DIR is the directory in which to store merged files. 683;; MERGE-AUTOSTORE-DIR is the directory in which to store merged files.
683(defun ediff-directories-internal (dir1 dir2 dir3 regexp action jobname 684(defun ediff-directories-internal (dir1 dir2 dir3 regexp action jobname