[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnorb 3fb0aed 438/449: [gnorb] Fixes to link scanning,
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnorb 3fb0aed 438/449: [gnorb] Fixes to link scanning, bump to 1.6.6 |
Date: |
Fri, 27 Nov 2020 23:16:28 -0500 (EST) |
branch: externals/gnorb
commit 3fb0aed2128211b0e54409b3e3d2fe491c3c5a0f
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
[gnorb] Fixes to link scanning, bump to 1.6.6
* packages/gnorb/gnorb-utils.el (gnorb-scan-links): split-string
splits on *all* occurances of the separator -- we only wanted to split
on the first occurance.
---
gnorb-utils.el | 17 +++++++++++------
gnorb.el | 2 +-
2 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/gnorb-utils.el b/gnorb-utils.el
index fb85d54..a4fcf34 100644
--- a/gnorb-utils.el
+++ b/gnorb-utils.el
@@ -481,12 +481,17 @@ to those symbols."
(unless (= (point) bound)
(let ((alist (mapcar #'list (copy-sequence types))))
(while (re-search-forward org-link-any-re bound t)
- (pcase-let* ((`(,type ,link) (split-string
- (match-string-no-properties 2)
- ":"))
- (sym (intern-soft type)))
- (when (and sym (memq sym types))
- (push link (alist-get sym alist)))))
+ (let ((link (or
+ ;; Bracket link.
+ (match-string-no-properties 2)
+ ;; "Bare" link.
+ (match-string-no-properties 0)))
+ sym)
+ (when (string-match "\\([^:]+\\):\\(.+\\)" link)
+ (setq sym (intern-soft (match-string 1 link))
+ link (match-string 2 link))
+ (when (and sym (memq sym types))
+ (push link (alist-get sym alist))))))
alist)))
(defun gnorb-msg-id-to-link (msg-id &optional server-group)
diff --git a/gnorb.el b/gnorb.el
index 0c9edfb..8a9cf45 100644
--- a/gnorb.el
+++ b/gnorb.el
@@ -2,7 +2,7 @@
;; Copyright (C) 2018-2020 Free Software Foundation, Inc.
-;; Version: 1.6.5
+;; Version: 1.6.6
;; Package-Requires: ((cl-lib "0.5"))
;; Maintainer: Eric Abrahamsen <eric@ericabrahamsen.net>
- [elpa] externals/gnorb 71cf0ef 403/449: Allow short-circuiting the nnir search, (continued)
- [elpa] externals/gnorb 71cf0ef 403/449: Allow short-circuiting the nnir search, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 6d88203 432/449: [gnorb] Add a gnus-shutdown to clean up gnorb hooks, bump to 1.6.4, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 2ca09f4 421/449: gnorb: Fix link following, bump to 1.5.6, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 86b870f 429/449: [gnorb] Replace gnus-buffer-exists-p with gnus-buffer-live-p, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 4bb8cd2 413/449: [gnorb] Check message-alternative-emails in helm registry search, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 840093b 411/449: [gnorb] Don't use string-trim with optional args, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 5e8b0c2 414/449: [gnorb] Fix handling of region-bounds return value, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 183cf9c 435/449: [gnorb] Fix dumb typo in 07214d9e4, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb f383a7e 416/449: [gnorb] Require gnorb-org within gnorb-trigger-todo-action, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 9adc9dd 427/449: [gnorb] Add nnselect method of getting an article's "real" group, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 3fb0aed 438/449: [gnorb] Fixes to link scanning, bump to 1.6.6,
Stefan Monnier <=
- [elpa] externals/gnorb 5692b47 448/449: [gnorb] Finish refactoring for nnselect, bump to 1.6.9, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 6174d5a 410/449: [gnorb] More little tweaks to registry searching, bump to 1.5.2, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 46b72b2 415/449: [gnorb] Bump version to 1.5.3, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb c4aa1d5 441/449: [gnorb] Improve customization type for gnorb-gnus-sent-groups, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 056a767 442/449: [gnorb] Improvements to gnorb-org-setup-message, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb b2138dd 437/449: [gnorb] Update to use org-link-any-re, bump to 1.6.5, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb a0f32ad 444/449: [gnorb] Don't allow creation of new headings for incoming trigger, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 78fe298 426/449: [gnorb] Move location of gnorb-gnus-summary-mode-hook, bump to 1.6.1, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 3940f46 431/449: [gnorb] Fix to previous commit, bump to 1.6.3, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 5f9611b 449/449: Fix some quoting problems in doc strings, Stefan Monnier, 2020/11/27