emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org d500b406fc: Merge branch 'bugfix'


From: ELPA Syncer
Subject: [elpa] externals/org d500b406fc: Merge branch 'bugfix'
Date: Wed, 30 Nov 2022 09:57:54 -0500 (EST)

branch: externals/org
commit d500b406fc0fa8aeb581f44fe9397dcde9238fc3
Merge: 4bb59b505d 7ba099a3fd
Author: Kyle Meyer <kyle@kyleam.com>
Commit: Kyle Meyer <kyle@kyleam.com>

    Merge branch 'bugfix'
---
 etc/ORG-NEWS        | 96 ++++++++++++++++++++++++++---------------------------
 lisp/org-element.el |  2 +-
 lisp/org-persist.el |  3 +-
 3 files changed, 51 insertions(+), 50 deletions(-)

diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index db0ea244ac..d01fc804a0 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -187,6 +187,40 @@ network (CDN) provider from CloudFlare to jsDelivr.  You 
can find the
 new terms of service, including the privacy policy, at
 https://www.jsdelivr.com/terms.
 
+*** List references in source block variable assignments are now proper lists
+
+List representation of named lists is now converted to a simple list
+as promised by the manual section [[info:org#Environment of a Code 
Block][org#Environment of a Code Block]].
+Previously, it was converted to a list of lists.
+
+Before:
+
+#+begin_src org
+,#+NAME: example-list
+- simple
+  - not
+  - nested
+- list
+
+,#+BEGIN_SRC emacs-lisp :var x=example-list :results value
+(format "%S" x)
+,#+END_SRC
+
+,#+RESULTS:
+: (("simple" (unordered ("not") ("nested"))) ("list"))
+#+end_src
+
+After:
+
+#+begin_src org
+,#+BEGIN_SRC emacs-lisp :var x=example-list :results value
+(format "%S" x)
+,#+END_SRC
+
+,#+RESULTS:
+: ("simple" "list")
+#+end_src
+
 ** New features
 *** Clock table can now produce quarterly reports
 
@@ -391,6 +425,13 @@ attempt to analyze the results and simply returns nil.  
This can be
 useful when the code block is used for side effects only but generates
 large outputs that may be slow to analyze for Org.
 
+*** Add Capture template hook properties
+
+Capture templates can now attach template specific hooks via the
+following properties: ~:hook~, ~:prepare-finalize~,
+~:before-finalize~, ~:after-finalize~.  These nullary functions run
+prior to their global counterparts for the selected template.
+
 ** New options
 *** A new option for custom setting ~org-refile-use-outline-path~ to show 
document title in refile targets
 
@@ -445,6 +486,13 @@ The new setting, when set to non-nil, makes Org create 
alarm at the
 event time when the alarm time is set to 0.  The default value is
 nil -- do not create alarms at the event time.
 
+*** New special value ~'attach~ for src block =:dir= option
+
+Passing the symbol ~attach~ or string ="'attach"= (with quotes) to the =:dir=
+option of a src block is now equivalent to =:dir (org-attach-dir) :mkdir yes=
+and any file results with a path descended from the attachment directory will
+use =attachment:= style links instead of the standard =file:= link type.
+
 ** New functions and changes in function arguments
 *** New function ~org-get-title~ to get =#+TITLE:= property from buffers
 
@@ -796,40 +844,6 @@ If you prefer to keep the keybinding, you can add it back 
to
 (define-key org-mode-map (kbd "C-c SPC") #'org-table-blank-field)
 #+end_src
 
-*** List references in source block variable assignments are now proper lists
-
-List representation of named lists is now converted to a simple list
-as promised by the manual section [[info:org#Environment of a Code 
Block][org#Environment of a Code Block]].
-Previously, it was converted to a list of lists.
-
-Before:
-
-#+begin_src org
-,#+NAME: example-list
-- simple
-  - not
-  - nested
-- list
-
-,#+BEGIN_SRC emacs-lisp :var x=example-list :results value
-(format "%S" x)
-,#+END_SRC
-
-,#+RESULTS:
-: (("simple" (unordered ("not") ("nested"))) ("list"))
-#+end_src
-
-After:
-
-#+begin_src org
-,#+BEGIN_SRC emacs-lisp :var x=example-list :results value
-(format "%S" x)
-,#+END_SRC
-
-,#+RESULTS:
-: ("simple" "list")
-#+end_src
-
 ** New features
 
 *** New citation engine
@@ -878,13 +892,6 @@ When exiting capture mode via ~org-capture-refile~, the 
variable
 ~org-refile-targets~ will be temporarily bound to the value of this
 template option.
 
-*** Add Capture template hook properties
-
-Capture templates can now attach template specific hooks via the
-following properties: ~:hook~, ~:prepare-finalize~,
-~:before-finalize~, ~:after-finalize~.  These nullary functions run
-prior to their global counterparts for the selected template.
-
 *** New startup options =#+startup: show<n>levels=
 
 These startup options complement the existing =overview=, =content=,
@@ -1214,13 +1221,6 @@ Finally, the closures are only evaluated if they're not 
overridden for
 a source block. This improves efficiency in cases where the result of
 a compute-expensive closure would otherwise be discarded.
 
-*** New special value ~'attach~ for src block =:dir= option
-
-Passing the symbol ~attach~ or string ="'attach"= (with quotes) to the =:dir=
-option of a src block is now equivalent to =:dir (org-attach-dir) :mkdir yes=
-and any file results with a path descended from the attachment directory will
-use =attachment:= style links instead of the standard =file:= link type.
-
 ** Miscellaneous
 *** =org-bibtex= includes =doi= and =url= entries when exporting to BiBTeX
 =doi= and =url= entries have been made optional for some publication
diff --git a/lisp/org-element.el b/lisp/org-element.el
index bc2fa0b985..a290b4121f 100644
--- a/lisp/org-element.el
+++ b/lisp/org-element.el
@@ -1040,7 +1040,7 @@ parse properties for property drawer at point."
                  (property-value (match-string-no-properties 3)))
             (cond
              ((and (plist-member properties property-name-symbol)
-                   (string-match-p "+$" property-name))
+                   (string-match-p "\\+$" property-name))
               (let ((val (plist-get properties property-name-symbol)))
                 (if (listp val)
                     (setq properties
diff --git a/lisp/org-persist.el b/lisp/org-persist.el
index 3435bef264..d60fdc657a 100644
--- a/lisp/org-persist.el
+++ b/lisp/org-persist.el
@@ -593,7 +593,8 @@ COLLECTION is the plist holding data collection."
         (mapc (lambda (collection) (org-persist--add-to-index collection 
'hash)) org-persist--index)
       (setq org-persist--index nil)
       (when (file-exists-p org-persist-directory)
-        (dolist (file (directory-files org-persist-directory 'absolute 
"^[^.][^.]"))
+        (dolist (file (directory-files org-persist-directory 'absolute
+                                       "\\`[^.][^.]"))
           (if (file-directory-p file)
               (delete-directory file t)
             (delete-file file))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]