[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 4c93442 01/11: Backport commit 46394dff7 from Emacs
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 4c93442 01/11: Backport commit 46394dff7 from Emacs |
Date: |
Sun, 14 Feb 2021 18:57:12 -0500 (EST) |
branch: externals/org
commit 4c934424d6e45daa30d2e5a2b3217181216d4e37
Author: Mattias EngdegÄrd <mattiase@acm.org>
Commit: Kyle Meyer <kyle@kyleam.com>
Backport commit 46394dff7 from Emacs
* lisp/ob-core.el (org-babel--string-to-number): Put hyphen last in
alternative.
* lisp/org-agenda.el (org-agenda-filter): Escape '+' correctly.
Follow good regexp practice
46394dff7f01e7fe4af06a6c344e151af5c3eef4
Mattias EngdegÄrd
Fri Dec 18 14:35:09 2020 +0100
---
lisp/ob-core.el | 2 +-
lisp/org-agenda.el | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lisp/ob-core.el b/lisp/ob-core.el
index b1aee1b..1343410 100644
--- a/lisp/ob-core.el
+++ b/lisp/ob-core.el
@@ -2995,7 +2995,7 @@ situations in which is it not appropriate."
"If STRING represents a number return its value.
Otherwise return nil."
(unless (or (string-match-p "\\s-" (org-trim string))
- (not (string-match-p "^[0-9-e.+ ]+$" string)))
+ (not (string-match-p "^[0-9e.+ -]+$" string)))
(let ((interned-string (ignore-errors (read string))))
(when (numberp interned-string)
interned-string))))
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index dedf7e5..6fa6e0f 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -7734,9 +7734,9 @@ the variable `org-agenda-auto-exclude-function'."
(negate (equal strip-or-accumulate '(4)))
(cf (mapconcat #'identity org-agenda-category-filter ""))
(tf (mapconcat #'identity org-agenda-tag-filter ""))
- (rpl-fn (lambda (c) (replace-regexp-in-string "^\+" "" (or (car c)
""))))
- (ef (replace-regexp-in-string "^\+" "" (or (car
org-agenda-effort-filter) "")))
- (rf (replace-regexp-in-string "^\+" "" (or (car
org-agenda-regexp-filter) "")))
+ (rpl-fn (lambda (c) (replace-regexp-in-string "^\\+" "" (or (car c)
""))))
+ (ef (replace-regexp-in-string "^\\+" "" (or (car
org-agenda-effort-filter) "")))
+ (rf (replace-regexp-in-string "^\\+" "" (or (car
org-agenda-regexp-filter) "")))
(ff (concat cf tf ef (when (not (equal rf "")) (concat "/" rf "/"))))
(f-string (completing-read
(concat
- [elpa] externals/org updated (ff1e8f3 -> e0fb233), ELPA Syncer, 2021/02/14
- [elpa] externals/org ec52bfe 02/11: Backport commit 64d97212f from Emacs, ELPA Syncer, 2021/02/14
- [elpa] externals/org 4c93442 01/11: Backport commit 46394dff7 from Emacs,
ELPA Syncer <=
- [elpa] externals/org ce22aa1 03/11: Backport commit 5ab5c3898 from Emacs, ELPA Syncer, 2021/02/14
- [elpa] externals/org 4aa4ae8 08/11: Backport commit bbe88cd82 from Emacs, ELPA Syncer, 2021/02/14
- [elpa] externals/org d904f9e 04/11: Backport commit f88a7897a from Emacs, ELPA Syncer, 2021/02/14
- [elpa] externals/org 263d385 05/11: Backport commit 34a73666d from Emacs, ELPA Syncer, 2021/02/14
- [elpa] externals/org a633d9a 06/11: Backport commit dd662fc97 from Emacs, ELPA Syncer, 2021/02/14
- [elpa] externals/org d8e8a97 07/11: Backport commit a8caa6690 from Emacs, ELPA Syncer, 2021/02/14
- [elpa] externals/org b7b52aa 09/11: Backport commit ce35760b1 from Emacs, ELPA Syncer, 2021/02/14
- [elpa] externals/org e0fb233 11/11: Merge branch 'km/from-emacs-master', ELPA Syncer, 2021/02/14
- [elpa] externals/org 7dd1cfb 10/11: Backport commit f8dbefbaa from Emacs, ELPA Syncer, 2021/02/14