@@ -203,7 +203,7 @@ With a prefix argument, makes a private paste."
203
203
204
204
(defun gist-created-callback (gist )
205
205
(let ((location (oref gist :html-url )))
206
- (gist-list-reload " " t )
206
+ (gist-list-reload 'current-user t )
207
207
(message " Paste created: %s " location)
208
208
(when gist-view-gist
209
209
(browse-url location))
@@ -259,7 +259,7 @@ Copies the URL into the kill ring."
259
259
;;;### autoload
260
260
(defun gist-list-user (username &optional force-reload background )
261
261
" Displays a list of a user's gists in a new buffer. When called from
262
- a program, pass a blank string as the username to view the user's own
262
+ a program, pass 'current-user as the username to view the user's own
263
263
gists, or nil for the username and a non-nil value for force-reload to
264
264
reload the gists for the current buffer."
265
265
(interactive
@@ -276,13 +276,15 @@ Copies the URL into the kill ring."
276
276
(buffer-name ))
277
277
(format " *%s :%s gists* "
278
278
gh-profile-current-profile
279
- (if (string= " " username)
279
+ (if (or (equal " " username)
280
+ (eq 'current-user username))
280
281
" "
281
282
(format " %s 's-" username)))))
282
283
(api (gist-get-api nil ))
283
284
(username (or (and (null username) gist-list-buffer-user)
284
285
(and (not (or (null username)
285
- (string= " " username)))
286
+ (equal " " username)
287
+ (eq 'current-user username)))
286
288
username)
287
289
(gh-api-get-username api))))
288
290
(when force-reload
@@ -309,7 +311,7 @@ Copies the URL into the kill ring."
309
311
(defun gist-list (&optional force-reload background )
310
312
" Displays a list of all of the current user's gists in a new buffer."
311
313
(interactive " P" )
312
- (gist-list-user " " force-reload background))
314
+ (gist-list-user 'current-user force-reload background))
313
315
314
316
(defun gist-list-reload (&optional username background )
315
317
(interactive )
@@ -496,6 +498,7 @@ for the gist."
496
498
(gist-list-reload)))))
497
499
498
500
(defun gist-kill-current ()
501
+ (interactive )
499
502
(let* ((id (tabulated-list-get-id ))
500
503
(gist (gist-list-db-get-gist id))
501
504
(api (gist--check-perms-and-get-api
0 commit comments