aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/org
diff options
context:
space:
mode:
authorAlan Mackenzie2022-01-22 11:02:50 +0000
committerAlan Mackenzie2022-01-22 11:02:50 +0000
commit14d64a8adcc866deecd758b898e8ef2d836b354a (patch)
tree83cff9669e266f8e283ccb8cd7518e909240f1e1 /lisp/org
parentbdd9b5b8a0d37dd09ee530c1dab3a44bee09e0f8 (diff)
parentebe334cdc234de2897263aed4c05ac7088c11857 (diff)
downloademacs-scratch/correct-warning-pos.tar.gz
emacs-scratch/correct-warning-pos.zip
Merge branch 'master' into scratch/correct-warning-posscratch/correct-warning-pos
Diffstat (limited to 'lisp/org')
-rw-r--r--lisp/org/ob-gnuplot.el25
-rw-r--r--lisp/org/org-agenda.el5
-rw-r--r--lisp/org/org-version.el2
-rw-r--r--lisp/org/org.el20
-rw-r--r--lisp/org/ox-ascii.el6
5 files changed, 31 insertions, 27 deletions
diff --git a/lisp/org/ob-gnuplot.el b/lisp/org/ob-gnuplot.el
index 69a5f5f91bd..895738822de 100644
--- a/lisp/org/ob-gnuplot.el
+++ b/lisp/org/ob-gnuplot.el
@@ -129,6 +129,7 @@ code."
129 (title (cdr (assq :title params))) 129 (title (cdr (assq :title params)))
130 (lines (cdr (assq :line params))) 130 (lines (cdr (assq :line params)))
131 (sets (cdr (assq :set params))) 131 (sets (cdr (assq :set params)))
132 (missing (cdr (assq :missing params)))
132 (x-labels (cdr (assq :xlabels params))) 133 (x-labels (cdr (assq :xlabels params)))
133 (y-labels (cdr (assq :ylabels params))) 134 (y-labels (cdr (assq :ylabels params)))
134 (timefmt (cdr (assq :timefmt params))) 135 (timefmt (cdr (assq :timefmt params)))
@@ -138,6 +139,7 @@ code."
138 (file-name-directory (buffer-file-name)))) 139 (file-name-directory (buffer-file-name))))
139 (add-to-body (lambda (text) (setq body (concat text "\n" body))))) 140 (add-to-body (lambda (text) (setq body (concat text "\n" body)))))
140 ;; append header argument settings to body 141 ;; append header argument settings to body
142 (when missing (funcall add-to-body (format "set datafile missing '%s'" missing)))
141 (when title (funcall add-to-body (format "set title '%s'" title))) 143 (when title (funcall add-to-body (format "set title '%s'" title)))
142 (when lines (mapc (lambda (el) (funcall add-to-body el)) lines)) 144 (when lines (mapc (lambda (el) (funcall add-to-body el)) lines))
143 (when sets 145 (when sets
@@ -288,21 +290,14 @@ Pass PARAMS through to `orgtbl-to-generic' when exporting TABLE."
288 (with-temp-file data-file 290 (with-temp-file data-file
289 (insert (let ((org-babel-gnuplot-timestamp-fmt 291 (insert (let ((org-babel-gnuplot-timestamp-fmt
290 (or (plist-get params :timefmt) "%Y-%m-%d-%H:%M:%S"))) 292 (or (plist-get params :timefmt) "%Y-%m-%d-%H:%M:%S")))
291 (replace-regexp-in-string 293 (orgtbl-to-generic
292 ;; org export backend adds "|" at the beginning/end of 294 table
293 ;; the table lines. Strip those. 295 (org-combine-plists
294 "^|\\(.+\\)|$" 296 '( :sep "\t" :fmt org-babel-gnuplot-quote-tsv-field
295 "\\1" 297 ;; Two setting below are needed to make :fmt work.
296 (orgtbl-to-generic 298 :raw t
297 table 299 :backend ascii)
298 (org-combine-plists 300 params)))))
299 '( :sep "\t" :fmt org-babel-gnuplot-quote-tsv-field
300 ;; Two setting below are needed to make :fmt work.
301 :raw t
302 ;; Use `org', not `ascii' because `ascii' may
303 ;; sometimes mishandle quoted strings.
304 :backend org)
305 params))))))
306 data-file) 301 data-file)
307 302
308(provide 'ob-gnuplot) 303(provide 'ob-gnuplot)
diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el
index fed36ac9b63..94aea1b0a32 100644
--- a/lisp/org/org-agenda.el
+++ b/lisp/org/org-agenda.el
@@ -86,6 +86,8 @@
86(declare-function org-capture "org-capture" (&optional goto keys)) 86(declare-function org-capture "org-capture" (&optional goto keys))
87(declare-function org-clock-modify-effort-estimate "org-clock" (&optional value)) 87(declare-function org-clock-modify-effort-estimate "org-clock" (&optional value))
88 88
89(declare-function org-element-type "org-element" (&optional element))
90
89(defvar calendar-mode-map) 91(defvar calendar-mode-map)
90(defvar org-clock-current-task) 92(defvar org-clock-current-task)
91(defvar org-current-tag-alist) 93(defvar org-current-tag-alist)
@@ -5729,7 +5731,8 @@ displayed in agenda view."
5729 (org-at-planning-p) 5731 (org-at-planning-p)
5730 (org-before-first-heading-p) 5732 (org-before-first-heading-p)
5731 (and org-agenda-include-inactive-timestamps 5733 (and org-agenda-include-inactive-timestamps
5732 (org-at-clock-log-p))) 5734 (org-at-clock-log-p))
5735 (not (eq 'timestamp (org-element-type (org-element-context)))))
5733 (throw :skip nil)) 5736 (throw :skip nil))
5734 (org-agenda-skip)) 5737 (org-agenda-skip))
5735 (let* ((pos (match-beginning 0)) 5738 (let* ((pos (match-beginning 0))
diff --git a/lisp/org/org-version.el b/lisp/org/org-version.el
index 1053bbe22cc..5337d9df746 100644
--- a/lisp/org/org-version.el
+++ b/lisp/org/org-version.el
@@ -11,7 +11,7 @@ Inserted by installing Org mode or when a release is made."
11(defun org-git-version () 11(defun org-git-version ()
12 "The Git version of Org mode. 12 "The Git version of Org mode.
13Inserted by installing Org or when a release is made." 13Inserted by installing Org or when a release is made."
14 (let ((org-git-version "release_9.5.2-3-geb9f34")) 14 (let ((org-git-version "release_9.5.2-9-g7ba24c"))
15 org-git-version)) 15 org-git-version))
16 16
17(provide 'org-version) 17(provide 'org-version)
diff --git a/lisp/org/org.el b/lisp/org/org.el
index fba45caabe6..f5d4df3d9c6 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -18731,17 +18731,19 @@ With prefix arg UNCOMPILED, load the uncompiled versions."
18731 "Is S an ID created by UUIDGEN?" 18731 "Is S an ID created by UUIDGEN?"
18732 (string-match "\\`[0-9a-f]\\{8\\}-[0-9a-f]\\{4\\}-[0-9a-f]\\{4\\}-[0-9a-f]\\{4\\}-[0-9a-f]\\{12\\}\\'" (downcase s))) 18732 (string-match "\\`[0-9a-f]\\{8\\}-[0-9a-f]\\{4\\}-[0-9a-f]\\{4\\}-[0-9a-f]\\{4\\}-[0-9a-f]\\{12\\}\\'" (downcase s)))
18733 18733
18734(defun org-in-src-block-p (&optional inside) 18734(defun org-in-src-block-p (&optional inside element)
18735 "Whether point is in a code source block. 18735 "Whether point is in a code source block.
18736When INSIDE is non-nil, don't consider we are within a source 18736When INSIDE is non-nil, don't consider we are within a source
18737block when point is at #+BEGIN_SRC or #+END_SRC." 18737block when point is at #+BEGIN_SRC or #+END_SRC.
18738 (let ((case-fold-search t)) 18738When ELEMENT is provided, it is considered to be element at point."
18739 (or (and (eq (get-char-property (point) 'src-block) t)) 18739 (save-match-data (setq element (or element (org-element-at-point))))
18740 (and (not inside) 18740 (when (eq 'src-block (org-element-type element))
18741 (save-match-data 18741 (or (not inside)
18742 (save-excursion 18742 (not (or (= (line-beginning-position)
18743 (beginning-of-line) 18743 (org-element-property :post-affiliated element))
18744 (looking-at ".*#\\+\\(begin\\|end\\)_src"))))))) 18744 (= (1+ (line-end-position))
18745 (- (org-element-property :end element)
18746 (org-element-property :post-blank element))))))))
18745 18747
18746(defun org-context () 18748(defun org-context ()
18747 "Return a list of contexts of the current cursor position. 18749 "Return a list of contexts of the current cursor position.
diff --git a/lisp/org/ox-ascii.el b/lisp/org/ox-ascii.el
index c22bb13b6dd..38b2a5772c1 100644
--- a/lisp/org/ox-ascii.el
+++ b/lisp/org/ox-ascii.el
@@ -1929,7 +1929,11 @@ a communication channel."
1929 (org-export-table-cell-alignment table-cell info))))) 1929 (org-export-table-cell-alignment table-cell info)))))
1930 (setq contents 1930 (setq contents
1931 (concat data 1931 (concat data
1932 (make-string (- width (string-width (or data ""))) ?\s)))) 1932 ;; FIXME: If CONTENTS was transformed by filters,
1933 ;; the whole width calculation can be wrong.
1934 ;; At least, make sure that we do not throw error
1935 ;; when CONTENTS is larger than width.
1936 (make-string (max 0 (- width (string-width (or data "")))) ?\s))))
1933 ;; Return cell. 1937 ;; Return cell.
1934 (concat (format " %s " contents) 1938 (concat (format " %s " contents)
1935 (when (memq 'right (org-export-table-cell-borders table-cell info)) 1939 (when (memq 'right (org-export-table-cell-borders table-cell info))