Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: defunkt/gist.el
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.4.0
Choose a base ref
...
head repository: defunkt/gist.el
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 6 commits
  • 2 files changed
  • 4 contributors

Commits on Nov 20, 2017

  1. Allow getting URL from gist buffers

    `gist-current-url` now works from both the `gist-list` buffer, and any buffer
    belonging to an open gist.
    
    This closes #103
    sigma committed Nov 20, 2017
    Copy the full SHA
    9520484 View commit details

Commits on Nov 28, 2017

  1. Copy the full SHA
    738fc32 View commit details
  2. Copy the full SHA
    d01c6c9 View commit details
  3. Merge pull request #107 from drvink/patch-1

    Fix yanking URL from gist-list buffer
    sigma authored Nov 28, 2017
    Copy the full SHA
    b2712a6 View commit details

Commits on Apr 1, 2018

  1. Indent -> Intend

    Fixes minor typo
    wpcarro authored Apr 1, 2018
    Copy the full SHA
    e61d8ca View commit details
  2. Merge pull request #112 from wpcarro/patch-1

    Indent -> Intend
    sigma authored Apr 1, 2018
    Copy the full SHA
    314fe6a View commit details
Showing with 6 additions and 2 deletions.
  1. +1 −1 README.md
  2. +5 −1 gist.el
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ gist.el -- Emacs integration for gist.github.com
Uses your local GitHub config if it can find it.

Go to your [GitHub Settings](https://github.com/settings/tokens) and generate
a personal access token with at least `gist` scope. If you indent to use more
a personal access token with at least `gist` scope. If you intend to use more
of the underlying `gh.el` library, it's recommended you also add the `user` and
`repo` scopes.

6 changes: 5 additions & 1 deletion gist.el
Original file line number Diff line number Diff line change
@@ -538,7 +538,11 @@ for the gist."

(defun gist-current-url ()
"Helper function to fetch current gist url"
(let* ((id (tabulated-list-get-id))
(let* ((id (or (and (eq major-mode 'gist-list-mode)
(tabulated-list-get-id))
(and (boundp 'gist-mode)
gist-mode
gist-id)))
(gist (gist-list-db-get-gist id)))
(oref gist :html-url)))