Skip to content

Commit

Permalink
add gist-list-redisplay function
Browse files Browse the repository at this point in the history
* gist.el (gist-list-redisplay): new function to redisplay without reloading
  • Loading branch information
sigma committed Jun 4, 2017
1 parent ee30c4b commit 690222c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions gist.el
Expand Up @@ -343,6 +343,9 @@ Copies the URL into the kill ring."
(interactive)
(gist-list-user username t background))

(defun gist-list-redisplay ()
(gist-list-user 'current-user))

(defun gist-tabulated-entry (gist)
(let* ((data (gist-parse-gist gist))
(repo (oref gist :id)))
Expand Down Expand Up @@ -632,7 +635,7 @@ put it into `kill-ring'."
(if all
(setq gist-list-limits nil)
(pop gist-list-limits))
(gist-list-user 'current-user))
(gist-list-redisplay))

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

(defun gist-parse-tags (tags)
(let ((words (split-string tags))
Expand Down Expand Up @@ -674,7 +677,7 @@ put it into `kill-ring'."
without))))
with without)
gist-list-limits))
(gist-list-user 'current-user))
(gist-list-redisplay))

(defun gist-list-apply-limits (gists)
(condition-case nil
Expand Down

0 comments on commit 690222c

Please sign in to comment.