summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-04-20Drop an org-link-unescape callKyle Meyer
This is a port of cc7c4a673 (Rationalize `org-link-(un)escape', 2019-02-27) from the Org mode repository, which I should have taken in at the same time I ported other changes in 819a6a3. Discussion of the link encoding change is at <https://yhetil.org/orgmode/87tvguyohn.fsf@nicolasgoaziou.fr/>.
2020-04-20Use https for link in docstrings and testsKyle Meyer
While this of course doesn't really matter, the docstring changes were already made as part of a tree-wide substitution in Org's b289a65be (Use https for links to orgmode.org, 2018-01-16).
2020-04-18Release 1.2.0v1.2.0Kyle Meyer
2020-04-18Update copyright yearsKyle Meyer
2020-04-16README: RewriteKyle Meyer
2020-04-16README: Drop .md extensionKyle Meyer
2020-04-16Add COPYING fileKyle Meyer
I shouldn't rely on the license notice at the top of the files.
2020-04-14README: Link to newer sr.ht send-email tutorialKyle Meyer
2020-04-14Update links for repository location changeKyle Meyer
2019-12-10Replace compatibility kludge with org-element-lineageKyle Meyer
Org v9.3 is now the minimum requirement.
2019-12-10Update obsolete names with for ol- variantsKyle Meyer
Many link-related names changed in a486d9cbd (Move link-related core functions out of "org.el", 2018-11-27).
2019-12-10Port Org mode's 2b00d6281 and bump Org dependencyKyle Meyer
2b00d6281 (Change bracket link escape syntax, 2019-03-09) updated a match group in org-link-edit--link-data for a change in org-bracket-link-regexp. Apply the change here. That commit is included in the recently released v9.3. Set that as the minimum requirement because the new value will not work with earlier releases.
2019-01-24transport: Let caller overwrite previous descriptionKyle Meyer
The existing description may not be of interest to the caller, especially if it was automatically generated by org-store-link.
2019-01-24transport: Fix a docstring typoKyle Meyer
2019-01-24transport: Test point-bounds interaction for non-interactive callKyle Meyer
2019-01-24tests: Drop pointless buffer-string callsKyle Meyer
These are cruft left from copying the (should-error ...) sexps from a (should (string= ...) one.
2019-01-24tests: Fix typos in Org snippetsKyle Meyer
2019-01-24tests: Reflow a testKyle Meyer
2019-01-24Use https for license linksKyle Meyer
2019-01-24Update copyright yearsKyle Meyer
2019-01-14README: Add contributing sectionKyle Meyer
2019-01-14Move main repo to sr.htKyle Meyer
2017-05-05Bump versionKyle Meyer
2017-05-05Merge branch 'km/transport-whitespace'Kyle Meyer
2017-05-05transport-next-link: Keep original description when on whitespaceKyle Meyer
A to-be-transported link is allowed to have a description if a new description isn't specified by the word at point or the selected text. In this case, don't drop the original description during transport.
2017-05-05transport-next-link: Rename a variable for clarityKyle Meyer
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.
2017-05-05transport-next-link: Fix error on whitespaceKyle Meyer
When point is on whitespace, there are no description bounds because there is no text to use for the description. Avoid a type error in this case by navigating to the initial location of point rather than the left description bound.
2017-05-05tests/transport-next-link: Check "description exists" errorKyle Meyer
2017-05-05tests/transport-next-link: Specify error typesKyle Meyer
2017-05-05tests: Don't wrap a single error type in a listKyle Meyer
The function should-error allows "(list 'error)" to be shortened to "'error".
2017-05-05tests/transport-next-link: Describe test casesKyle Meyer
2017-05-05tests: Welcome back a stranded parenKyle Meyer
2017-03-31Bump versionKyle Meyer
2017-03-03Merge branch 'km/transport'Kyle Meyer
2017-03-03Add org-link-edit-transport-next-link commandKyle Meyer
2017-03-03Add a separate function for testing if point is on a linkKyle Meyer
The slurping and barfing commands are interested in point being on a link, so it is sufficient for them to use org-link-edit--get-link-data and get a user-error when point is not on a link. But an upcoming command will want to know that point is _not_ in a link.
2017-03-03org-link-edit--get-link-data: Rename to drop "get"Kyle Meyer
2017-03-03Add NEWS fileKyle Meyer
2017-03-03barf: Fix edge cases where point is beyond linkKyle Meyer
When a point is on a blank space beyond the link but before the next element, org-element-context considers point to be a part of the link. This leads to incorrect behavior (shown in the added tests) when either barfing backward or forward. Avoid these issues by moving point to the beginning of the link before deleting the old link and inserting a new one. As a bonus, this makes some of the later goto-char calculations unnecessary.
2017-03-03Specify Org 8.2.10, not 8.2, as oldest supported versionKyle Meyer
Most of the tests fail when running them with 8.2 checked out from the Org repo. So far, it hasn't been too much extra work supporting 8.2.10 [*], but I'd rather not deal with the headache of trying to support anything older. [*] This is the version that shipped with Emacs 25.1. The current Org version is 9.0.5.
2017-03-03Use save-match-data around org-link-unescapeKyle Meyer
Before Org 8.3 (specifically before aea374680), org-link-unescape called string-match, which changes the match data and interferes with extracting the description. (I noticed this because the slurp/barf round-trip test failed with Org 8.2.10, but not on newer versions.) Save the match data before calling org-link-unescape.
2017-03-02Update copyright yearsKyle Meyer
2016-06-04Update header URLKyle Meyer
2016-03-08Bump versionKyle Meyer
2016-03-08org-link-edit--get-link-data: Unescape link textKyle Meyer
org-make-link-string will escape the link again when it's reinserted.
2015-12-24Enable lexical bindingKyle Meyer
2015-12-24Makefile: SimplifyKyle Meyer
2015-11-17README.md: Mention contribKyle Meyer
2015-08-08Bump versionKyle Meyer
2015-08-08slurp: Reduce new line stretches to single spaceKyle Meyer
... instead of replacing each new line with a space.