From 819a6a3fdfcb42df14fb48fd9f1ce1cf20d32f43 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Tue, 10 Dec 2019 20:26:58 -0500 Subject: 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. --- NEWS | 2 ++ org-link-edit.el | 6 ++---- 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) -- cgit v1.2.3