aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/pcvs.el
diff options
context:
space:
mode:
authorStefan Monnier2005-04-26 20:37:31 +0000
committerStefan Monnier2005-04-26 20:37:31 +0000
commit2231c2bc7d17080ae1a2a464afaee842542fa96a (patch)
tree395492a12cd83d9e8a60fc3077afbe0828a9fc1e /lisp/pcvs.el
parent03de06dabd9074de1c617190d5056c2c245ac735 (diff)
downloademacs-2231c2bc7d17080ae1a2a464afaee842542fa96a.tar.gz
emacs-2231c2bc7d17080ae1a2a464afaee842542fa96a.zip
Rename "full-path" -> "full-name".
Diffstat (limited to 'lisp/pcvs.el')
-rw-r--r--lisp/pcvs.el40
1 files changed, 20 insertions, 20 deletions
diff --git a/lisp/pcvs.el b/lisp/pcvs.el
index e7139d9cfba..6382705139e 100644
--- a/lisp/pcvs.el
+++ b/lisp/pcvs.el
@@ -233,7 +233,7 @@
233 nil ;don't update display while running 233 nil ;don't update display while running
234 "status" 234 "status"
235 "-v" 235 "-v"
236 (cvs-fileinfo->full-path (car marked))) 236 (cvs-fileinfo->full-name (car marked)))
237 (goto-char (point-min)) 237 (goto-char (point-min))
238 (let ((tags (cvs-status-get-tags))) 238 (let ((tags (cvs-status-get-tags)))
239 (when (listp tags) tags))))))) 239 (when (listp tags) tags)))))))
@@ -512,7 +512,7 @@ If non-nil, NEW means to create a new buffer no matter what."
512 (let* ((dir+files+rest 512 (let* ((dir+files+rest
513 (if (or (null fis) (not single-dir)) 513 (if (or (null fis) (not single-dir))
514 ;; not single-dir mode: just process the whole thing 514 ;; not single-dir mode: just process the whole thing
515 (list "" (mapcar 'cvs-fileinfo->full-path fis) nil) 515 (list "" (mapcar 'cvs-fileinfo->full-name fis) nil)
516 ;; single-dir mode: extract the same-dir-elements 516 ;; single-dir mode: extract the same-dir-elements
517 (let ((dir (cvs-fileinfo->dir (car fis)))) 517 (let ((dir (cvs-fileinfo->dir (car fis))))
518 ;; output the concerned dir so the parser can translate paths 518 ;; output the concerned dir so the parser can translate paths
@@ -611,7 +611,7 @@ If non-nil, NEW means to create a new buffer no matter what."
611 (append (cvs-flags-query 'cvs-cvs-flags nil 'noquery) 611 (append (cvs-flags-query 'cvs-cvs-flags nil 'noquery)
612 (if cvs-cvsroot (list "-d" cvs-cvsroot)) 612 (if cvs-cvsroot (list "-d" cvs-cvsroot))
613 args 613 args
614 (mapcar 'cvs-fileinfo->full-path fis)))))) 614 (mapcar 'cvs-fileinfo->full-name fis))))))
615 615
616(defun cvs-update-header (cmd add) 616(defun cvs-update-header (cmd add)
617 (let* ((hf (ewoc-get-hf cvs-cookies)) 617 (let* ((hf (ewoc-get-hf cvs-cookies))
@@ -831,7 +831,7 @@ the problem."
831 (and (or (eq (cvs-fileinfo->type fi) 'REMOVED) 831 (and (or (eq (cvs-fileinfo->type fi) 'REMOVED)
832 (and (eq (cvs-fileinfo->type fi) 'CONFLICT) 832 (and (eq (cvs-fileinfo->type fi) 'CONFLICT)
833 (eq (cvs-fileinfo->subtype fi) 'REMOVED))) 833 (eq (cvs-fileinfo->subtype fi) 'REMOVED)))
834 (file-exists-p (cvs-fileinfo->full-path fi)))) 834 (file-exists-p (cvs-fileinfo->full-name fi))))
835 835
836;; called at the following times: 836;; called at the following times:
837;; - postparse ((eq cvs-auto-remove-handled t) cvs-auto-remove-directories nil) 837;; - postparse ((eq cvs-auto-remove-handled t) cvs-auto-remove-directories nil)
@@ -1406,7 +1406,7 @@ If FILE is non-nil, directory entries won't be selected."
1406(defun cvs-mode-files (&rest -cvs-mode-files-args) 1406(defun cvs-mode-files (&rest -cvs-mode-files-args)
1407 (cvs-mode! 1407 (cvs-mode!
1408 (lambda () 1408 (lambda ()
1409 (mapcar 'cvs-fileinfo->full-path 1409 (mapcar 'cvs-fileinfo->full-name
1410 (apply 'cvs-mode-marked -cvs-mode-files-args))))) 1410 (apply 'cvs-mode-marked -cvs-mode-files-args)))))
1411 1411
1412;; 1412;;
@@ -1564,7 +1564,7 @@ With prefix argument, prompt for cvs flags."
1564 ;; find directories and look for fis needing a description 1564 ;; find directories and look for fis needing a description
1565 (dolist (fi fis) 1565 (dolist (fi fis)
1566 (cond 1566 (cond
1567 ((file-directory-p (cvs-fileinfo->full-path fi)) (push fi dirs)) 1567 ((file-directory-p (cvs-fileinfo->full-name fi)) (push fi dirs))
1568 ((eq (cvs-fileinfo->type fi) 'UNKNOWN) (setq needdesc t)))) 1568 ((eq (cvs-fileinfo->type fi) 'UNKNOWN) (setq needdesc t))))
1569 ;; prompt for description if necessary 1569 ;; prompt for description if necessary
1570 (let* ((msg (if (and needdesc 1570 (let* ((msg (if (and needdesc
@@ -1642,8 +1642,8 @@ or \"Conflict\" in the *cvs* buffer."
1642Signal an error if there is no backup file." 1642Signal an error if there is no backup file."
1643 (let ((backup-file (cvs-fileinfo->backup-file fileinfo))) 1643 (let ((backup-file (cvs-fileinfo->backup-file fileinfo)))
1644 (unless backup-file 1644 (unless backup-file
1645 (error "%s has no backup file" (cvs-fileinfo->full-path fileinfo))) 1645 (error "%s has no backup file" (cvs-fileinfo->full-name fileinfo)))
1646 (list backup-file (cvs-fileinfo->full-path fileinfo)))) 1646 (list backup-file (cvs-fileinfo->full-name fileinfo))))
1647 1647
1648;; 1648;;
1649;; Emerge support 1649;; Emerge support
@@ -1697,7 +1697,7 @@ Signal an error if there is no backup file."
1697 1697
1698(defun cvs-retrieve-revision (fileinfo rev) 1698(defun cvs-retrieve-revision (fileinfo rev)
1699 "Retrieve the given REVision of the file in FILEINFO into a new buffer." 1699 "Retrieve the given REVision of the file in FILEINFO into a new buffer."
1700 (let* ((file (cvs-fileinfo->full-path fileinfo)) 1700 (let* ((file (cvs-fileinfo->full-name fileinfo))
1701 (buffile (concat file "." rev))) 1701 (buffile (concat file "." rev)))
1702 (or (find-buffer-visiting buffile) 1702 (or (find-buffer-visiting buffile)
1703 (with-current-buffer (create-file-buffer buffile) 1703 (with-current-buffer (create-file-buffer buffile)
@@ -1729,7 +1729,7 @@ Signal an error if there is no backup file."
1729 (interactive) 1729 (interactive)
1730 (let ((fi (cvs-mode-marked 'merge nil :one t :file t))) 1730 (let ((fi (cvs-mode-marked 'merge nil :one t :file t)))
1731 (let ((merge (cvs-fileinfo->merge fi)) 1731 (let ((merge (cvs-fileinfo->merge fi))
1732 (file (cvs-fileinfo->full-path fi)) 1732 (file (cvs-fileinfo->full-name fi))
1733 (backup-file (cvs-fileinfo->backup-file fi))) 1733 (backup-file (cvs-fileinfo->backup-file fi)))
1734 (if (not (and merge backup-file)) 1734 (if (not (and merge backup-file))
1735 (let ((buf (find-file-noselect file))) 1735 (let ((buf (find-file-noselect file)))
@@ -1760,7 +1760,7 @@ Signal an error if there is no backup file."
1760 (list (or rev1 (cvs-flags-query 'cvs-idiff-version)) 1760 (list (or rev1 (cvs-flags-query 'cvs-idiff-version))
1761 rev2))) 1761 rev2)))
1762 (let ((fi (cvs-mode-marked 'diff "idiff" :one t :file t))) 1762 (let ((fi (cvs-mode-marked 'diff "idiff" :one t :file t)))
1763 (let* ((file (cvs-fileinfo->full-path fi)) 1763 (let* ((file (cvs-fileinfo->full-name fi))
1764 (rev1-buf (cvs-retrieve-revision fi (or rev1 "BASE"))) 1764 (rev1-buf (cvs-retrieve-revision fi (or rev1 "BASE")))
1765 (rev2-buf (if rev2 (cvs-retrieve-revision fi rev2))) 1765 (rev2-buf (if rev2 (cvs-retrieve-revision fi rev2)))
1766 ;; this binding is used by cvs-ediff-startup-hook 1766 ;; this binding is used by cvs-ediff-startup-hook
@@ -1778,13 +1778,13 @@ Signal an error if there is no backup file."
1778 (error "idiff-other cannot be applied to more than 2 files at a time")) 1778 (error "idiff-other cannot be applied to more than 2 files at a time"))
1779 (let* ((fi1 (car fis)) 1779 (let* ((fi1 (car fis))
1780 (rev1-buf (if rev1 (cvs-retrieve-revision fi1 rev1) 1780 (rev1-buf (if rev1 (cvs-retrieve-revision fi1 rev1)
1781 (find-file-noselect (cvs-fileinfo->full-path fi1)))) 1781 (find-file-noselect (cvs-fileinfo->full-name fi1))))
1782 rev2-buf) 1782 rev2-buf)
1783 (if (cdr fis) 1783 (if (cdr fis)
1784 (let ((fi2 (nth 1 fis))) 1784 (let ((fi2 (nth 1 fis)))
1785 (setq rev2-buf 1785 (setq rev2-buf
1786 (if rev2 (cvs-retrieve-revision fi2 rev2) 1786 (if rev2 (cvs-retrieve-revision fi2 rev2)
1787 (find-file-noselect (cvs-fileinfo->full-path fi2))))) 1787 (find-file-noselect (cvs-fileinfo->full-name fi2)))))
1788 (error "idiff-other doesn't know what other file/buffer to use")) 1788 (error "idiff-other doesn't know what other file/buffer to use"))
1789 (let* (;; this binding is used by cvs-ediff-startup-hook 1789 (let* (;; this binding is used by cvs-ediff-startup-hook
1790 (cvs-transient-buffers (list rev1-buf rev2-buf))) 1790 (cvs-transient-buffers (list rev1-buf rev2-buf)))
@@ -1799,7 +1799,7 @@ Signal an error if there is no backup file."
1799 (let (ret) 1799 (let (ret)
1800 (dolist (fi (or fis (list (cvs-create-fileinfo 'DIRCHANGE "" "." "")))) 1800 (dolist (fi (or fis (list (cvs-create-fileinfo 'DIRCHANGE "" "." ""))))
1801 (when (cvs-string-prefix-p 1801 (when (cvs-string-prefix-p
1802 (expand-file-name (cvs-fileinfo->full-path fi) dir) 1802 (expand-file-name (cvs-fileinfo->full-name fi) dir)
1803 buffer-file-name) 1803 buffer-file-name)
1804 (setq ret t))) 1804 (setq ret t)))
1805 ret))) 1805 ret)))
@@ -2002,7 +2002,7 @@ With a prefix, opens the buffer in an OTHER window."
2002 (set-buffer cvs-buf) 2002 (set-buffer cvs-buf)
2003 (setq default-directory odir)) 2003 (setq default-directory odir))
2004 (let ((buf (if rev (cvs-retrieve-revision fi rev) 2004 (let ((buf (if rev (cvs-retrieve-revision fi rev)
2005 (find-file-noselect (cvs-fileinfo->full-path fi))))) 2005 (find-file-noselect (cvs-fileinfo->full-name fi)))))
2006 (funcall (cond ((eq other 'dont-select) 'display-buffer) 2006 (funcall (cond ((eq other 'dont-select) 'display-buffer)
2007 (other 2007 (other
2008 (if view 'view-buffer-other-window 2008 (if view 'view-buffer-other-window
@@ -2093,14 +2093,14 @@ Returns a list of FIS that should be `cvs remove'd."
2093 (silent (or (not cvs-confirm-removals) 2093 (silent (or (not cvs-confirm-removals)
2094 (cvs-every (lambda (fi) 2094 (cvs-every (lambda (fi)
2095 (or (not (file-exists-p 2095 (or (not (file-exists-p
2096 (cvs-fileinfo->full-path fi))) 2096 (cvs-fileinfo->full-name fi)))
2097 (cvs-applicable-p fi 'safe-rm))) 2097 (cvs-applicable-p fi 'safe-rm)))
2098 files))) 2098 files)))
2099 (tmpbuf (cvs-temp-buffer))) 2099 (tmpbuf (cvs-temp-buffer)))
2100 (when (and (not silent) (equal cvs-confirm-removals 'list)) 2100 (when (and (not silent) (equal cvs-confirm-removals 'list))
2101 (with-current-buffer tmpbuf 2101 (with-current-buffer tmpbuf
2102 (let ((inhibit-read-only t)) 2102 (let ((inhibit-read-only t))
2103 (cvs-insert-strings (mapcar 'cvs-fileinfo->full-path fis)) 2103 (cvs-insert-strings (mapcar 'cvs-fileinfo->full-name fis))
2104 (cvs-pop-to-buffer-same-frame (current-buffer)) 2104 (cvs-pop-to-buffer-same-frame (current-buffer))
2105 (shrink-window-if-larger-than-buffer)))) 2105 (shrink-window-if-larger-than-buffer))))
2106 (if (not (or silent 2106 (if (not (or silent
@@ -2119,7 +2119,7 @@ Returns a list of FIS that should be `cvs remove'd."
2119 (progn (message "Aborting") nil) 2119 (progn (message "Aborting") nil)
2120 (dolist (fi files) 2120 (dolist (fi files)
2121 (let* ((type (cvs-fileinfo->type fi)) 2121 (let* ((type (cvs-fileinfo->type fi))
2122 (file (cvs-fileinfo->full-path fi))) 2122 (file (cvs-fileinfo->full-name fi)))
2123 (when (or all (eq type 'UNKNOWN)) 2123 (when (or all (eq type 'UNKNOWN))
2124 (when (file-exists-p file) (delete-file file)) 2124 (when (file-exists-p file) (delete-file file))
2125 (unless all (setf (cvs-fileinfo->type fi) 'DEAD) t)))) 2125 (unless all (setf (cvs-fileinfo->type fi) 'DEAD) t))))
@@ -2166,7 +2166,7 @@ With prefix argument, prompt for cvs flags."
2166 (interactive) 2166 (interactive)
2167 (let ((marked (cvs-get-marked (cvs-ignore-marks-p "byte-compile")))) 2167 (let ((marked (cvs-get-marked (cvs-ignore-marks-p "byte-compile"))))
2168 (dolist (fi marked) 2168 (dolist (fi marked)
2169 (let ((filename (cvs-fileinfo->full-path fi))) 2169 (let ((filename (cvs-fileinfo->full-name fi)))
2170 (when (string-match "\\.el\\'" filename) 2170 (when (string-match "\\.el\\'" filename)
2171 (byte-compile-file filename)))))) 2171 (byte-compile-file filename))))))
2172 2172
@@ -2237,7 +2237,7 @@ this file, or a list of arguments to send to the program."
2237 2237
2238(defun cvs-revert-if-needed (fis) 2238(defun cvs-revert-if-needed (fis)
2239 (dolist (fileinfo fis) 2239 (dolist (fileinfo fis)
2240 (let* ((file (cvs-fileinfo->full-path fileinfo)) 2240 (let* ((file (cvs-fileinfo->full-name fileinfo))
2241 (buffer (find-buffer-visiting file))) 2241 (buffer (find-buffer-visiting file)))
2242 ;; For a revert to happen the user must be editing the file... 2242 ;; For a revert to happen the user must be editing the file...
2243 (unless (or (null buffer) 2243 (unless (or (null buffer)