summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <me@ypei.me>2021-07-26 15:49:25 +1000
committerYuchen Pei <me@ypei.me>2021-07-26 15:49:25 +1000
commite1ee48a18a1926779d271f787c0fd9b608bdee97 (patch)
tree5a32c041c872bd55be3cec4c14661e406516f2b7
parentb601ed675fa6ff247e61b8907dbbd41bbd32bcdd (diff)
Adding functionality to store link in ticket viewer mode
-rw-r--r--rt-liberation-org.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/rt-liberation-org.el b/rt-liberation-org.el
index 1e59f15..4896851 100644
--- a/rt-liberation-org.el
+++ b/rt-liberation-org.el
@@ -51,7 +51,9 @@
"Stores an rt link in ticket-browser mode."
(require 'rt-liberation)
(let* (
- (ticket (get-text-property (point) 'rt-ticket))
+ (ticket (or (get-text-property (point) 'rt-ticket)
+ rt-liber-ticket-local
+ ))
(link (concat "rt:id:" (rt-liber-ticket-id-only ticket)))
(subject (cdr (assoc "Subject" ticket)))
)