Changeset 6932 for lang/elisp

Show
Ignore:
Timestamp:
02/19/08 19:17:53 (9 months ago)
Author:
kentaro
Message:

lang/elisp/auto-save-buffers-enhanced:

  • added git support.
  • fixed a bug: this package didn't work with SVN and CVS if use-svk-flag is non-nil.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/elisp/auto-save-buffers-enhanced/auto-save-buffers-enhanced.el

    r3001 r6932  
    5555;; svk, put the code below into your .emacs: 
    5656;; 
    57 ;;   ;; If you're using CVS or Subversion 
     57;;   ;; If you're using CVS or Subversion or git 
    5858;;   (require 'auto-save-buffers-enhanced) 
    5959;;   (auto-save-buffers-enhanced-include-only-checkout-path t) 
    6060;;   (auto-save-buffers-enhanced t) 
    6161;; 
    62 ;;   ;; If you're using svk 
     62;;   ;; If you're using also svk 
    6363;;   (require 'auto-save-buffers-enhanced) 
    6464;;   (setq auto-save-buffers-enhanced-use-svk-flag t) 
     
    8686;;; Change Log: 
    8787 
     88;; 2008-02-19: 
     89;;  * added git support. 
     90;;  * fixed a bug: this package didn't work with SVN and CVS if 
     91;;    use-svk-flag is non-nil. 
     92;; 
    8893;; 2007-12-10: 
    8994;;  * added a command, `auto-save-buffers-enhanced-reload-svk'. 
     
    142147    (progn 
    143148      (setq auto-save-buffers-enhanced-include-regexps nil) 
    144       (if auto-save-buffers-enhanced-use-svk-flag 
    145           (auto-save-buffers-enhanced-add-svk-checkout-path-into-include-regexps) 
    146         (add-hook 'find-file-hook 
    147                   'auto-save-buffers-enhanced-add-checkout-path-into-include-regexps))))) 
     149      (when auto-save-buffers-enhanced-use-svk-flag 
     150        (auto-save-buffers-enhanced-add-svk-checkout-path-into-include-regexps)) 
     151      (add-hook 'find-file-hook 
     152                'auto-save-buffers-enhanced-add-checkout-path-into-include-regexps)))) 
    148153 
    149154;;;; Command 
     
    216221      (while t 
    217222        (if (or (file-exists-p ".svn") 
    218                 (file-exists-p ".cvs")) 
     223                (file-exists-p ".cvs") 
     224                (file-exists-p ".git")) 
    219225            (setq checkout-path default-directory)) 
    220226        (cd "..")