Skip to content

Commit

Permalink
honor current profile even when no list opened
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma committed Mar 15, 2013
1 parent 8827518 commit 70860a4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gist.el
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ they're posted.")
:description (or description "") :description (or description "")
:files files)) :files files))
(resp (gh-gist-new api gist))) (resp (gh-gist-new api gist)))
(gh-url-add-response-callback resp (or callback 'gist-created-callback)))) (gh-url-add-response-callback
resp
`(lambda (gist)
(let ((gh-profile-current-profile ,(oref api :profile)))
(funcall (or ,callback 'gist-created-callback) gist))))))


;;;###autoload ;;;###autoload
(defun gist-region (begin end &optional private callback) (defun gist-region (begin end &optional private callback)
Expand Down

0 comments on commit 70860a4

Please sign in to comment.