Permalink
Browse files

Allow for tramp-list-remote-buffers-to-not-exist

Credit: http://github.com/engineyard/emacs-starter-kit/commit/bb13cc37e4ecd8cdb4579a4cf17551677331565c#comment_40339

On older versions of Emacs (like 22), there's no such function.
  • Loading branch information...
1 parent e3d337d commit e66f72df978ca89f4c808ed93b5fd7034f72e187 @jadeforrest jadeforrest committed with Dec 30, 2009
Showing with 5 additions and 3 deletions.
  1. +5 −3 starter-kit-ruby.el
View
@@ -84,9 +84,11 @@ exec-to-string command, but it works and seems fast"
(file-writable-p
(file-name-directory buffer-file-name))
(file-writable-p buffer-file-name)
- (not (subsetp
- (list (current-buffer))
- (tramp-list-remote-buffers))))
+ (if (fboundp 'tramp-list-remote-buffers)
+ (not (subsetp
+ (list (current-buffer))
+ (tramp-list-remote-buffers)))
+ t))
(local-set-key (kbd "C-c d")
'flymake-display-err-menu-for-current-line)
(flymake-mode t))))))

0 comments on commit e66f72d

Please sign in to comment.