From 4b94f8403c7fe7df1f5f0a97c2b132b9b946c345 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 11 May 2022 20:37:11 -0700 Subject: [oni-org] Use ‘rx’ instead of ‘rx-to-string’ ‘rx’ should expand to what is needed to make sure that the right thing is done. I feel more comfortable using this than ‘rx-to-string’ while unquoting the variables I use. --- oni-org/oni-org.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el index 6d69416..34f89b8 100644 --- a/oni-org/oni-org.el +++ b/oni-org/oni-org.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2022.0424.025154 +;; Version: 2022.0508.160831 ;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org org-contrib org-bullets org-edna diminish all-the-icons olivetti mixed-pitch) ;; This program is free software; you can redistribute it and/or modify @@ -842,8 +842,10 @@ This is an around advice for ‘org-html--svg-image’ as FUN." (when (not (null current-heading-id)) (save-excursion (goto-char (point-min)) - (while (re-search-forward (rx-to-string `(or (seq "[[id:" ,current-heading-id "]") - (seq "#" ,current-heading-id "]"))) nil t) + (while (re-search-forward + (rx (or (seq "[[id:" (literal current-heading-id) "]") + (seq "#" (literal current-heading-id) "]"))) + nil t) (unless (or (oni-org-in-dblock-p) (oni-org-at-origin-property-p)) (let ((components (org-heading-components))) -- cgit v1.3-2-g0d8e