summaryrefslogtreecommitdiff
path: root/test-org-link-edit.el
AgeCommit message (Collapse)Author
2015-08-08Clean up some spacing in testsKyle Meyer
2015-02-14Don't use words as unit for slurping and barfingKyle Meyer
Using words as the unit for slurping can give confusing results. For example, slurping forward with The [http://orgmode.org] Org-mode site results in The [[http://orgmode.org][Org]]-mode site This is somewhat inconvenient because the intended slurp here is most likely 'Org-mode'. However, given that the command clearly says that it works at the level of words, this shouldn't be too surprising. The problem is that, unless the user is displaying the full link (e.g., using org-toggle-link-display), the entire text 'Org-mode' is highlighted as though it's part of the link. If the user then tried to slurp again to get 'site', '-mode' would actually be slurped, and it would appear like nothing happened. Instead of words, make blocks of non-whitespace characters, referred to as blobs, the unit for slurping and barfing. When slurping forward, don't consider trailing punctuation as part of a blob.
2015-02-14split-{first,last}-words: Use Org syntax tableKyle Meyer
Fix the test that should have caught this.
2015-02-14Add tests for round trip exceptionsKyle Meyer
2015-02-14Trim only whitespace from slurped stringsKyle Meyer
2015-02-14backward-slurp-word: Fix whitespace checkKyle Meyer
Don't fail when there is no description and the slurped word isn't separated by a non-word character.
2015-02-12SlurpKyle Meyer