Mercurial > emacs
comparison lisp/ediff.el @ 48371:1b4ba54b52de
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.
author | Michael Kifer <kifer@cs.stonybrook.edu> |
---|---|
date | Sun, 17 Nov 2002 22:26:48 +0000 |
parents | bc3820ad92b2 |
children | 0f80cb4f9d29 |
comparison
equal
deleted
inserted
replaced
48370:3f0f00c7a374 | 48371:1b4ba54b52de |
---|---|
495 | 495 |
496 | 496 |
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 |
500 the same name in both. The third argument, REGEXP, is a regular expression | 500 the same name in both. The third argument, REGEXP, is nil or a regular |
501 that can be used to filter out certain file names." | 501 expression; 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) |
505 (list (setq f (ediff-read-file-name "Directory A to compare:" dir-A nil)) | 505 (list (setq f (ediff-read-file-name "Directory A to compare:" dir-A nil)) |
506 (ediff-read-file-name "Directory B to compare:" | 506 (ediff-read-file-name "Directory B to compare:" |
540 | 540 |
541 | 541 |
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 |
545 have the same name in all three. The last argument, REGEXP, is a regular | 545 have the same name in all three. The last argument, REGEXP, is nil or a |
546 expression that can be used to filter out certain file names." | 546 regular 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) |
550 (list (setq f (ediff-read-file-name "Directory A to compare:" dir-A nil)) | 551 (list (setq f (ediff-read-file-name "Directory A to compare:" dir-A nil)) |
551 (setq f (ediff-read-file-name "Directory B to compare:" | 552 (setq f (ediff-read-file-name "Directory B to compare:" |
569 (defalias 'edirs3 'ediff-directories3) | 570 (defalias 'edirs3 'ediff-directories3) |
570 | 571 |
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 |
574 the same name in both. The third argument, REGEXP, is a regular expression | 575 the same name in both. The third argument, REGEXP, is nil or a regular |
575 that can be used to filter out certain file names." | 576 expression; 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) |
579 (list (setq f (ediff-read-file-name "Directory A to merge:" dir-A nil)) | 580 (list (setq f (ediff-read-file-name "Directory A to merge:" dir-A nil)) |
580 (ediff-read-file-name "Directory B to merge:" | 581 (ediff-read-file-name "Directory B to merge:" |
598 &optional | 599 &optional |
599 merge-autostore-dir) | 600 merge-autostore-dir) |
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. |
601 Ediff merges files that have identical names in DIR1, DIR2. If a pair of files | 602 Ediff merges files that have identical names in DIR1, DIR2. If a pair of files |
602 in DIR1 and DIR2 doesn't have an ancestor in ANCESTOR-DIR, Ediff will merge | 603 in DIR1 and DIR2 doesn't have an ancestor in ANCESTOR-DIR, Ediff will merge |
603 without ancestor. The fourth argument, REGEXP, is a regular expression that | 604 without ancestor. The fourth argument, REGEXP, is nil or a regular expression; |
604 can be used to filter out certain file names." | 605 only 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) |
608 (list (setq f (ediff-read-file-name "Directory A to merge:" dir-A nil)) | 609 (list (setq f (ediff-read-file-name "Directory A to merge:" dir-A nil)) |
609 (setq f (ediff-read-file-name "Directory B to merge:" | 610 (setq f (ediff-read-file-name "Directory B to merge:" |
674 ;;;###autoload | 675 ;;;###autoload |
675 (defalias 'edirs-merge-with-ancestor 'ediff-merge-directories-with-ancestor) | 676 (defalias 'edirs-merge-with-ancestor 'ediff-merge-directories-with-ancestor) |
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 |
684 &optional startup-hooks | 685 &optional startup-hooks |
685 merge-autostore-dir) | 686 merge-autostore-dir) |