Skip to content

Commit 690222c

Browse files
committed
add gist-list-redisplay function
* gist.el (gist-list-redisplay): new function to redisplay without reloading
1 parent ee30c4b commit 690222c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

gist.el

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ Copies the URL into the kill ring."
343343
(interactive)
344344
(gist-list-user username t background))
345345

346+
(defun gist-list-redisplay ()
347+
(gist-list-user 'current-user))
348+
346349
(defun gist-tabulated-entry (gist)
347350
(let* ((data (gist-parse-gist gist))
348351
(repo (oref gist :id)))
@@ -632,7 +635,7 @@ put it into `kill-ring'."
632635
(if all
633636
(setq gist-list-limits nil)
634637
(pop gist-list-limits))
635-
(gist-list-user 'current-user))
638+
(gist-list-redisplay))
636639

637640
(defun gist-list-push-visibility-limit (&optional private)
638641
(interactive "P")
@@ -641,7 +644,7 @@ put it into `kill-ring'."
641644
(and (not flag) (oref g :public))))
642645
private)
643646
gist-list-limits)
644-
(gist-list-user 'current-user))
647+
(gist-list-redisplay))
645648

646649
(defun gist-parse-tags (tags)
647650
(let ((words (split-string tags))
@@ -674,7 +677,7 @@ put it into `kill-ring'."
674677
without))))
675678
with without)
676679
gist-list-limits))
677-
(gist-list-user 'current-user))
680+
(gist-list-redisplay))
678681

679682
(defun gist-list-apply-limits (gists)
680683
(condition-case nil

0 commit comments

Comments
 (0)