@@ -296,7 +296,7 @@ Copies the URL into the kill ring."
296
296
(lambda (gists )
297
297
(with-current-buffer (get-buffer-create buffer)
298
298
(setq gist-list-buffer-user username)
299
- (gist-lists-retrieved-callback gists username background)))))
299
+ (gist-lists-retrieved-callback gists background)))))
300
300
(gh-url-add-response-callback
301
301
resp
302
302
(lexical-let ((profile (oref api :profile ))
@@ -320,15 +320,16 @@ Copies the URL into the kill ring."
320
320
(repo (oref gist :id )))
321
321
(list repo (apply 'vector data))))
322
322
323
- (defun gist-lists-retrieved-callback (gists username &optional background )
323
+ (defun gist-lists-retrieved-callback (gists &optional background )
324
324
" Called when the list of gists has been retrieved. Displays
325
325
the list."
326
- (dolist (g (gethash username gist-list-db-by-user))
326
+ (dolist (g (gethash gist-list-buffer-user gist-list-db-by-user))
327
327
(remhash (oref g :id ) gist-list-db))
328
328
(dolist (g gists)
329
329
(puthash (oref g :id ) g gist-list-db))
330
- (puthash username gists gist-list-db-by-user)
331
- (gist-list-render (gethash username gist-list-db-by-user) background))
330
+ (puthash gist-list-buffer-user gists gist-list-db-by-user)
331
+ (gist-list-render (gethash gist-list-buffer-user gist-list-db-by-user)
332
+ background))
332
333
333
334
(defun gist--get-time (gist )
334
335
(let* ((date (timezone-parse-date (oref gist :date )))
@@ -429,7 +430,7 @@ for the gist."
429
430
(select-window win)))
430
431
431
432
(defun gist--check-perms-and-get-api (gist errormsg apiflg )
432
- (let* ((api (gist-get-api t ))
433
+ (let* ((api (gist-get-api apiflg ))
433
434
(username (gh-api-get-username api))
434
435
(gs (gethash username gist-list-db-by-user)))
435
436
(if (not (memq gist gs))
0 commit comments