Skip to content
This repository has been archived by the owner on May 18, 2020. It is now read-only.

Commit

Permalink
transport-next-link: Rename a variable for clarity
Browse files Browse the repository at this point in the history
Make it more obvious that this variable corresponds to the original
link's description, not the new description specified by the word at
point or the selected text.
  • Loading branch information
kyleam committed May 6, 2017
1 parent 57f3a61 commit 3650863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions org-link-edit.el
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,9 @@ END."
(org-link-edit--on-link-p)))
(user-error "Cannot transport next link with point on a link"))
(goto-char (or (car desc-bounds) pt))
(cl-multiple-value-bind (link-beg link-end link desc)
(cl-multiple-value-bind (link-beg link-end link orig-desc)
(org-link-edit--next-link-data previous)
(unless (or (not desc-bounds) (= (length desc) 0))
(unless (or (not desc-bounds) (= (length orig-desc) 0))
(user-error "Link already has a description"))
(delete-region link-beg link-end)
(insert (org-make-link-string
Expand Down

0 comments on commit 3650863

Please sign in to comment.