emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/pcvs-info.el


From: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/lisp/pcvs-info.el
Date: Tue, 26 Apr 2005 16:35:43 -0400

Index: emacs/lisp/pcvs-info.el
diff -c emacs/lisp/pcvs-info.el:1.21 emacs/lisp/pcvs-info.el:1.22
*** emacs/lisp/pcvs-info.el:1.21        Fri Apr  8 14:26:13 2005
--- emacs/lisp/pcvs-info.el     Tue Apr 26 20:35:42 2005
***************
*** 41,51 ****
  ;;;; config variables
  ;;;;
  
! (defcustom cvs-display-full-path t
!   "*Specifies how the filenames should look like in the listing.
! If t, their full path name will be displayed, else only the filename."
    :group 'pcl-cvs
    :type '(boolean))
  
  (defcustom cvs-allow-dir-commit nil
    "*Allow `cvs-mode-commit' on directories.
--- 41,53 ----
  ;;;; config variables
  ;;;;
  
! (defcustom cvs-display-full-name t
!   "*Specifies how the filenames should be displayed in the listing.
! If non-nil, their full filename name will be displayed, else only the
! non-directory part."
    :group 'pcl-cvs
    :type '(boolean))
+ (define-obsolete-variable-alias 'cvs-display-full-path 'cvs-display-full-name)
  
  (defcustom cvs-allow-dir-commit nil
    "*Allow `cvs-mode-commit' on directories.
***************
*** 165,171 ****
    ;; In addition to the above, the following values can be extracted:
  
    ;; handled    ;; t if this file doesn't require further action.
!   ;; full-path  ;; The complete relative filename.
    ;; pp-name    ;; The printed file name
    ;; backup-file;; For MERGED and CONFLICT files after a \"cvs update\",
                  ;; this is a full path to the backup file where the
--- 167,173 ----
    ;; In addition to the above, the following values can be extracted:
  
    ;; handled    ;; t if this file doesn't require further action.
!   ;; full-name  ;; The complete relative filename.
    ;; pp-name    ;; The printed file name
    ;; backup-file;; For MERGED and CONFLICT files after a \"cvs update\",
                  ;; this is a full path to the backup file where the
***************
*** 201,207 ****
  
  ;; Fake selectors:
  
! (defun cvs-fileinfo->full-path (fileinfo)
    "Return the full path for the file that is described in FILEINFO."
    (let ((dir (cvs-fileinfo->dir fileinfo)))
      (if (eq (cvs-fileinfo->type fileinfo) 'DIRCHANGE)
--- 203,209 ----
  
  ;; Fake selectors:
  
! (defun cvs-fileinfo->full-name (fileinfo)
    "Return the full path for the file that is described in FILEINFO."
    (let ((dir (cvs-fileinfo->dir fileinfo)))
      (if (eq (cvs-fileinfo->type fileinfo) 'DIRCHANGE)
***************
*** 209,219 ****
        ;; Here, I use `concat' rather than `expand-file-name' because I want
        ;; the resulting path to stay relative if `dir' is relative.
        (concat dir (cvs-fileinfo->file fileinfo)))))
  
  (defun cvs-fileinfo->pp-name (fi)
    "Return the filename of FI as it should be displayed."
!   (if cvs-display-full-path
!       (cvs-fileinfo->full-path fi)
      (cvs-fileinfo->file fi)))
  
  (defun cvs-fileinfo->backup-file (fileinfo)
--- 211,222 ----
        ;; Here, I use `concat' rather than `expand-file-name' because I want
        ;; the resulting path to stay relative if `dir' is relative.
        (concat dir (cvs-fileinfo->file fileinfo)))))
+ (define-obsolete-function-alias 'cvs-fileinfo->full-path 
'cvs-fileinfo->full-name)
  
  (defun cvs-fileinfo->pp-name (fi)
    "Return the filename of FI as it should be displayed."
!   (if cvs-display-full-name
!       (cvs-fileinfo->full-name fi)
      (cvs-fileinfo->file fi)))
  
  (defun cvs-fileinfo->backup-file (fileinfo)
***************
*** 225,234 ****
                                 (concat "\\`" (regexp-quote cvs-bakprefix)
                                         (regexp-quote file) 
"\\(\\.[0-9]+\\.[0-9]+\\)+\\'")))
         bf)
!     (dolist (f files bf)
        (when (and (file-readable-p f)
                 (or (null bf) (file-newer-than-file-p f bf)))
!       (setq bf (concat dir f))))))
  
  ;; (defun cvs-fileinfo->handled (fileinfo)
  ;;   "Tell if this requires further action"
--- 228,238 ----
                                 (concat "\\`" (regexp-quote cvs-bakprefix)
                                         (regexp-quote file) 
"\\(\\.[0-9]+\\.[0-9]+\\)+\\'")))
         bf)
!     (dolist (f files)
        (when (and (file-readable-p f)
                 (or (null bf) (file-newer-than-file-p f bf)))
!       (setq bf f)))
!     (concat dir bf)))
  
  ;; (defun cvs-fileinfo->handled (fileinfo)
  ;;   "Tell if this requires further action"
***************
*** 327,333 ****
      (insert
       (case type
         (DIRCHANGE (concat "In directory "
!                         (cvs-add-face (cvs-fileinfo->full-path fileinfo)
                                        'cvs-header-face t
                                        'cvs-goal-column t)
                          ":"))
--- 331,337 ----
      (insert
       (case type
         (DIRCHANGE (concat "In directory "
!                         (cvs-add-face (cvs-fileinfo->full-name fileinfo)
                                        'cvs-header-face t
                                        'cvs-goal-column t)
                          ":"))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]