summaryrefslogtreecommitdiff
path: root/org-link-edit.el
diff options
context:
space:
mode:
Diffstat (limited to 'org-link-edit.el')
-rw-r--r--org-link-edit.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/org-link-edit.el b/org-link-edit.el
index 180e289..b670f29 100644
--- a/org-link-edit.el
+++ b/org-link-edit.el
@@ -127,7 +127,7 @@ If N is negative, slurp leading words instead of trailing words."
(let ((slurped (buffer-substring-no-properties end (point))))
(setq slurped (replace-regexp-in-string "\n" " " slurped))
(when (and (= (length desc) 0)
- (string-match "^\\W*\\(\\w.*\\)" slurped))
+ (string-match "^\\s-+\\(.*\\)" slurped))
(setq slurped (match-string 1 slurped)))
(setq desc (concat desc slurped)
end (+ end (length slurped)))
@@ -167,7 +167,7 @@ words."
(point)))
(let ((slurped (buffer-substring-no-properties (point) beg)))
(when (and (= (length desc) 0)
- (string-match "\\(.*\\w\\)\\W*$" slurped))
+ (string-match "\\(.*\\)\\s-+$" slurped))
(setq slurped (match-string 1 slurped)))
(setq slurped (replace-regexp-in-string "\n" " " slurped))
(setq desc (concat slurped desc)