Skip to content
Browse files

make `gist-id' and `gist-filename' buffer-local

  • Loading branch information...
1 parent 39fa149 commit efdebf57069583fce801e0497e7eb9b73f17ec60 @sigma sigma committed Sep 16, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 gist.el
View
6 gist.el
@@ -89,8 +89,10 @@ they're posted.")
(defvar gist-list-db nil)
(defvar gist-id nil)
+(make-variable-buffer-local 'gist-id)
(defvar gist-filename nil)
+(make-variable-buffer-local 'gist-filename)
(defun gist-get-api (&optional sync)
(gh-gist-api "api" :sync sync :cache t :num-retries 1))
@@ -435,9 +437,7 @@ for the gist."
(define-minor-mode gist-mode
"Minor mode for buffers containing gists files"
:lighter " gist"
- :map 'gist-mode-map
- (make-local-variable 'gist-id)
- (make-local-variable 'gist-filename))
+ :map 'gist-mode-map)
;;; Dired integration

0 comments on commit efdebf5

Please sign in to comment.
Something went wrong with that request. Please try again.