summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2019-12-10 20:26:58 -0500
committerKyle Meyer <kyle@kyleam.com>2019-12-10 20:39:15 -0500
commit819a6a3fdfcb42df14fb48fd9f1ce1cf20d32f43 (patch)
tree7a5d0658352d790521d1bd568ce8ba6f7447e567
parent9f0209543318c331c5a4051750ea817370d234f6 (diff)
downloadorg-link-edit-819a6a3fdfcb42df14fb48fd9f1ce1cf20d32f43.tar.gz
Port Org mode's 2b00d6281 and bump Org dependency
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.
-rw-r--r--NEWS2
-rw-r--r--org-link-edit.el6
2 files changed, 4 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index 159441f..306d0a5 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,8 @@ Org Link Edit NEWS -- history of user-visible changes -*- mode: org; -*-
* Unreleased
+Org Link Edit now requires at least Org mode v9.3.
+
** New features
- If the target link already has a description,
diff --git a/org-link-edit.el b/org-link-edit.el
index 200ddb9..8500f2a 100644
--- a/org-link-edit.el
+++ b/org-link-edit.el
@@ -6,7 +6,7 @@
;; URL: https://git.sr.ht/~kyleam/org-link-edit
;; Keywords: convenience
;; Version: 1.1.1
-;; Package-Requires: ((cl-lib "0.5") (org "8.2.10"))
+;; Package-Requires: ((cl-lib "0.5") (org "9.3"))
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -95,9 +95,7 @@ The list includes
(match-end 0)
(save-match-data
(org-link-unescape (match-string-no-properties 1)))
- (or (and (match-end 3)
- (match-string-no-properties 3))
- "")))
+ (or (match-string-no-properties 2) "")))
((looking-at org-plain-link-re)
(list (match-beginning 0)
(match-end 0)