|
@@ -5710,11 +5710,19 @@ This should be called after the variable `org-link-parameters' has changed."
|
|
|
(not (and (equal marker "+")
|
|
|
(org-match-line
|
|
|
"[ \t]*\\(|[-+]+|?\\|\\+[-+]+\\+\\)[ \t]*$")))
|
|
|
+ ;; Do not match headline stars. Do not consider
|
|
|
+ ;; stars of a headline as closing marker for bold
|
|
|
+ ;; markup either.
|
|
|
+ (not (and (equal marker "*")
|
|
|
+ (save-excursion
|
|
|
+ (forward-char)
|
|
|
+ (skip-chars-backward "*")
|
|
|
+ (looking-at-p org-outline-regexp-bol))))
|
|
|
;; Match full emphasis markup regexp.
|
|
|
(looking-at (if verbatim? org-verbatim-re org-emph-re))
|
|
|
;; Do not span over paragraph boundaries.
|
|
|
(not (string-match-p org-element-paragraph-separate
|
|
|
- (match-string 0)))
|
|
|
+ (match-string 2)))
|
|
|
;; Do not span over cells in table rows.
|
|
|
(not (and (save-match-data (org-match-line "[ \t]*|"))
|
|
|
(string-match-p "|" (match-string 4))))))
|
|
@@ -14330,7 +14338,7 @@ it as a time string and apply `float-time' to it. If S is nil, just return 0."
|
|
|
((numberp s) s)
|
|
|
((stringp s)
|
|
|
(condition-case nil
|
|
|
- (float-time (apply #'encode-time (org-parse-time-string s nil t)))
|
|
|
+ (float-time (apply #'encode-time (org-parse-time-string s)))
|
|
|
(error 0.)))
|
|
|
(t 0.)))
|
|
|
|
|
@@ -17079,8 +17087,8 @@ both scheduled and deadline timestamps."
|
|
|
'timestamp)
|
|
|
(org-at-planning-p))
|
|
|
(time-less-p
|
|
|
- (org-time-string-to-time match t)
|
|
|
- (org-time-string-to-time d t)))))))
|
|
|
+ (org-time-string-to-time match)
|
|
|
+ (org-time-string-to-time d)))))))
|
|
|
(message "%d entries before %s"
|
|
|
(org-occur regexp nil callback)
|
|
|
d)))
|
|
@@ -17101,8 +17109,8 @@ both scheduled and deadline timestamps."
|
|
|
'timestamp)
|
|
|
(org-at-planning-p))
|
|
|
(not (time-less-p
|
|
|
- (org-time-string-to-time match t)
|
|
|
- (org-time-string-to-time d t))))))))
|
|
|
+ (org-time-string-to-time match)
|
|
|
+ (org-time-string-to-time d))))))))
|
|
|
(message "%d entries after %s"
|
|
|
(org-occur regexp nil callback)
|
|
|
d)))
|
|
@@ -17125,11 +17133,11 @@ both scheduled and deadline timestamps."
|
|
|
'timestamp)
|
|
|
(org-at-planning-p))
|
|
|
(not (time-less-p
|
|
|
- (org-time-string-to-time match t)
|
|
|
- (org-time-string-to-time start-date t)))
|
|
|
+ (org-time-string-to-time match)
|
|
|
+ (org-time-string-to-time start-date)))
|
|
|
(time-less-p
|
|
|
- (org-time-string-to-time match t)
|
|
|
- (org-time-string-to-time end-date t))))))))
|
|
|
+ (org-time-string-to-time match)
|
|
|
+ (org-time-string-to-time end-date))))))))
|
|
|
(message "%d entries between %s and %s"
|
|
|
(org-occur regexp nil callback) start-date end-date)))
|
|
|
|
|
@@ -17214,19 +17222,13 @@ days in order to avoid rounding problems."
|
|
|
(push m l))
|
|
|
(apply 'format fmt (nreverse l))))
|
|
|
|
|
|
-(defun org-time-string-to-time (s &optional zone)
|
|
|
- "Convert timestamp string S into internal time.
|
|
|
-The optional ZONE is omitted or nil for Emacs local time, t for
|
|
|
-Universal Time, ‘wall’ for system wall clock time, or a string as
|
|
|
-in the TZ environment variable."
|
|
|
- (apply #'encode-time (org-parse-time-string s nil zone)))
|
|
|
+(defun org-time-string-to-time (s)
|
|
|
+ "Convert timestamp string S into internal time."
|
|
|
+ (apply #'encode-time (org-parse-time-string s)))
|
|
|
|
|
|
-(defun org-time-string-to-seconds (s &optional zone)
|
|
|
- "Convert a timestamp string S into a number of seconds.
|
|
|
-The optional ZONE is omitted or nil for Emacs local time, t for
|
|
|
-Universal Time, ‘wall’ for system wall clock time, or a string as
|
|
|
-in the TZ environment variable."
|
|
|
- (float-time (org-time-string-to-time s zone)))
|
|
|
+(defun org-time-string-to-seconds (s)
|
|
|
+ "Convert a timestamp string S into a number of seconds."
|
|
|
+ (float-time (org-time-string-to-time s)))
|
|
|
|
|
|
(org-define-error 'org-diary-sexp-no-match "Unable to match diary sexp")
|
|
|
|
|
@@ -17443,17 +17445,13 @@ day number."
|
|
|
(list (nth 4 d) (nth 3 d) (nth 5 d))))
|
|
|
((listp d) (list (nth 4 d) (nth 3 d) (nth 5 d)))))
|
|
|
|
|
|
-(defun org-parse-time-string (s &optional nodefault zone)
|
|
|
+(defun org-parse-time-string (s &optional nodefault)
|
|
|
"Parse the standard Org time string.
|
|
|
|
|
|
This should be a lot faster than the normal `parse-time-string'.
|
|
|
|
|
|
If time is not given, defaults to 0:00. However, with optional
|
|
|
-NODEFAULT, hour and minute fields will be nil if not given.
|
|
|
-
|
|
|
-The optional ZONE is omitted or nil for Emacs local time, t for
|
|
|
-Universal Time, ‘wall’ for system wall clock time, or a string as
|
|
|
-in the TZ environment variable."
|
|
|
+NODEFAULT, hour and minute fields will be nil if not given."
|
|
|
(cond ((string-match org-ts-regexp0 s)
|
|
|
(list 0
|
|
|
(when (or (match-beginning 8) (not nodefault))
|
|
@@ -17463,7 +17461,7 @@ in the TZ environment variable."
|
|
|
(string-to-number (match-string 4 s))
|
|
|
(string-to-number (match-string 3 s))
|
|
|
(string-to-number (match-string 2 s))
|
|
|
- nil nil zone))
|
|
|
+ nil nil nil))
|
|
|
((string-match "^<[^>]+>$" s)
|
|
|
;; FIXME: `decode-time' needs to be called with ZONE as its
|
|
|
;; second argument. However, this requires at least Emacs
|