Changeset - 4321de37c54f
[Not reviewed]
0 1 0
Sergey Pashinin - 13 years ago 2013-05-06 20:04:53
sergey@pashinin.com
only "try" to load Magit feature
1 file changed with 7 insertions and 8 deletions:
0 comments (0 inline, 0 general)
src/workgroups-specialbufs.el
Show inline comments
 
@@ -78,14 +78,13 @@ Since `help-mode' is used by many buffers that aren't actually
 

	
 
(defun wg-deserialize-magit-buffer (buf)
 
  ""
 
  (require 'magit)
 
  (if (boundp 'magit-status-mode-map)
 
      (wg-dbind (this-function dir) (wg-buf-special-data buf)
 
        (let ((default-directory (car dir)))
 
          (if (file-exists-p default-directory)
 
              (magit-status default-directory))
 
          (current-buffer)
 
          ))))
 
  (if (require 'magit nil 'noerror)
 
      (if (fboundp 'magit-status)
 
          (wg-dbind (this-function dir) (wg-buf-special-data buf)
 
            (let ((default-directory (car dir)))
 
              (if (file-exists-p default-directory)
 
                  (magit-status default-directory))
 
              (current-buffer))))))
 

	
 
(defun wg-serialize-magit-buffer (buffer)
 
  ""
0 comments (0 inline, 0 general)