aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/org
diff options
context:
space:
mode:
authorPaul Eggert2012-04-21 17:53:32 -0700
committerPaul Eggert2012-04-21 17:53:32 -0700
commitbbd347f5f7e99da1a559dad818b5fa8f59c0901e (patch)
tree77c1fc54c2240b08d2859109d18cac8812a8ffb1 /lisp/org
parente4ecdc9c71af4199129d5dd2db1a32ff6b725fe4 (diff)
parent9ee7d8b93cb143b473e6dffb708e777bc6fe5bd0 (diff)
downloademacs-bbd347f5f7e99da1a559dad818b5fa8f59c0901e.tar.gz
emacs-bbd347f5f7e99da1a559dad818b5fa8f59c0901e.zip
Merge from trunk.
Diffstat (limited to 'lisp/org')
-rw-r--r--lisp/org/ChangeLog46
-rw-r--r--lisp/org/ob-C.el2
-rw-r--r--lisp/org/org-agenda.el14
-rw-r--r--lisp/org/org-clock.el15
-rw-r--r--lisp/org/org-footnote.el2
-rw-r--r--lisp/org/org-pcomplete.el4
-rw-r--r--lisp/org/org-special-blocks.el12
-rw-r--r--lisp/org/org-table.el13
-rw-r--r--lisp/org/org.el40
9 files changed, 103 insertions, 45 deletions
diff --git a/lisp/org/ChangeLog b/lisp/org/ChangeLog
index 618d5753a46..86f493a0a5b 100644
--- a/lisp/org/ChangeLog
+++ b/lisp/org/ChangeLog
@@ -1,3 +1,49 @@
12012-04-14 Bastien Guerry <bzg@gnu.org>
2
3 * org.el (org-point-at-end-of-empty-headline): Only try to match
4 `org-todo-line-regexp' when the value is non-nil, e.g. in non-org
5 modes.
6 (org-fontify-meta-lines-and-blocks-1): Prevent errors when trying
7 to fontify beyond (point-max).
8
9 * org-clock.el (org-clock-task-overrun-text)
10 (org-task-overrun, org-clock-get-clock-string)
11 (org-clock-update-mode-line)
12 (org-clock-notify-once-if-expired): Rename `org-task-overrun'
13 and `org-task-overrun-text' to `org-clock-task-overrun' and
14 `org-clock-task-overrun-text' respectively.
15 (org-task-overrun-text): New alias.
16
17 * org-table.el (org-table-eval-formula): Fix bug about handling
18 remote references as durations.
19 (org-table-get-range): Fix bug: make sure references to $0 are
20 correctly handled.
21
22 * org-pcomplete.el (pcomplete/org-mode/file-option):
23 Fix bug in `pcomplete/org-mode/file-option'.
24 (org-thing-at-point): Also match line options like LATEX_CLASS
25 when pcompleting from LATEX_.
26
27 * org-agenda.el (org-agenda-filter-make-matcher)
28 (org-agenda-filter-apply): Allow filtering entries out by
29 category. Using `C-u <' from the agenda view will redisplay
30 the agenda without entries from categories of the current line.
31
322012-04-14 Eric Schulte <eric.schulte@gmx.com>
33
34 * ob-C.el (org-babel-C-ensure-main-wrap):
35 Add an explicit return to automatically generated main methods.
36
372012-04-14 Matt Lundin <mdl@imapmail.org>
38
39 * org.el (org-after-todo-state-change-hook):
40 Fix docstring to reflect name change of state to `org-state'.
41
422012-04-14 Mike Sperber <sperber@deinprogramm.de> (tiny change)
43
44 * org-footnote.el (org-footnote-normalize):
45 Correctly pass keyword arguments to `org-export-preprocess-string'.
46
12012-04-03 Bastien Guerry <bzg@gnu.org> 472012-04-03 Bastien Guerry <bzg@gnu.org>
2 48
3 * org.el (org-todo): Fix regression: rename `state' to 49 * org.el (org-todo): Fix regression: rename `state' to
diff --git a/lisp/org/ob-C.el b/lisp/org/ob-C.el
index 5f6c1cb1dd1..583510ac618 100644
--- a/lisp/org/ob-C.el
+++ b/lisp/org/ob-C.el
@@ -152,7 +152,7 @@ it's header arguments."
152 "Wrap body in a \"main\" function call if none exists." 152 "Wrap body in a \"main\" function call if none exists."
153 (if (string-match "^[ \t]*[intvod]+[ \t\n\r]*main[ \t]*(.*)" body) 153 (if (string-match "^[ \t]*[intvod]+[ \t\n\r]*main[ \t]*(.*)" body)
154 body 154 body
155 (format "int main() {\n%s\n}\n" body))) 155 (format "int main() {\n%s\nreturn(0);\n}\n" body)))
156 156
157(defun org-babel-prep-session:C (session params) 157(defun org-babel-prep-session:C (session params)
158 "This function does nothing as C is a compiled language with no 158 "This function does nothing as C is a compiled language with no
diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el
index 324ddd27f9a..3bb0fc84897 100644
--- a/lisp/org/org-agenda.el
+++ b/lisp/org/org-agenda.el
@@ -6365,7 +6365,9 @@ to switch to narrowing."
6365 (dolist (x (delete-dups 6365 (dolist (x (delete-dups
6366 (append (get 'org-agenda-category-filter 6366 (append (get 'org-agenda-category-filter
6367 :preset-filter) org-agenda-category-filter))) 6367 :preset-filter) org-agenda-category-filter)))
6368 (setq f1 (list 'equal (substring x 1) 'cat)) 6368 (if (equal "-" (substring x 0 1))
6369 (setq f1 (list 'not (list 'equal (substring x 1) 'cat)))
6370 (setq f1 (list 'equal (substring x 1) 'cat)))
6369 (push f1 f)) 6371 (push f1 f))
6370 (cons 'and (nreverse f)))) 6372 (cons 'and (nreverse f))))
6371 6373
@@ -6396,9 +6398,13 @@ If the line does not have an effort defined, return nil."
6396 (let (tags cat) 6398 (let (tags cat)
6397 (if (eq type 'tag) 6399 (if (eq type 'tag)
6398 (setq org-agenda-tag-filter filter) 6400 (setq org-agenda-tag-filter filter)
6399 (setq org-agenda-category-filter filter 6401 (setq org-agenda-category-filter filter))
6400 org-agenda-filtered-by-category t))
6401 (setq org-agenda-filter-form (org-agenda-filter-make-matcher)) 6402 (setq org-agenda-filter-form (org-agenda-filter-make-matcher))
6403 (if (and (eq type 'category)
6404 (not (equal (substring (car filter) 0 1) "-")))
6405 ;; Only set `org-agenda-filtered-by-category' to t
6406 ;; when a unique category is used as the filter
6407 (setq org-agenda-filtered-by-category t))
6402 (org-agenda-set-mode-name) 6408 (org-agenda-set-mode-name)
6403 (save-excursion 6409 (save-excursion
6404 (goto-char (point-min)) 6410 (goto-char (point-min))
@@ -6412,7 +6418,7 @@ If the line does not have an effort defined, return nil."
6412 (beginning-of-line 2)) 6418 (beginning-of-line 2))
6413 (beginning-of-line 2)))) 6419 (beginning-of-line 2))))
6414 (if (get-char-property (point) 'invisible) 6420 (if (get-char-property (point) 'invisible)
6415 (org-agenda-previous-line)))) 6421 (ignore-errors (org-agenda-previous-line)))))
6416 6422
6417(defun org-agenda-filter-hide-line (type) 6423(defun org-agenda-filter-hide-line (type)
6418 (let (ov) 6424 (let (ov)
diff --git a/lisp/org/org-clock.el b/lisp/org/org-clock.el
index 7105bfe13dc..434f6a1d5f6 100644
--- a/lisp/org/org-clock.el
+++ b/lisp/org/org-clock.el
@@ -219,7 +219,8 @@ auto Automatically, either `all', or `repeat' for repeating tasks"
219 (const :tag "All task time" all) 219 (const :tag "All task time" all)
220 (const :tag "Automatically, `all' or since `repeat'" auto))) 220 (const :tag "Automatically, `all' or since `repeat'" auto)))
221 221
222(defcustom org-task-overrun-text nil 222(defvaralias 'org-task-overrun-text 'org-clock-task-overrun-text)
223(defcustom org-clock-task-overrun-text nil
223 "The extra modeline text that should indicate that the clock is overrun. 224 "The extra modeline text that should indicate that the clock is overrun.
224The can be nil to indicate that instead of adding text, the clock time 225The can be nil to indicate that instead of adding text, the clock time
225should get a different face (`org-mode-line-clock-overrun'). 226should get a different face (`org-mode-line-clock-overrun').
@@ -495,7 +496,7 @@ pointing to it."
495 (insert (format "[%c] %-15s %s\n" i cat task)) 496 (insert (format "[%c] %-15s %s\n" i cat task))
496 (cons i marker))))) 497 (cons i marker)))))
497 498
498(defvar org-task-overrun nil 499(defvar org-clock-task-overrun nil
499 "Internal flag indicating if the clock has overrun the planned time.") 500 "Internal flag indicating if the clock has overrun the planned time.")
500(defvar org-clock-update-period 60 501(defvar org-clock-update-period 60
501 "Number of seconds between mode line clock string updates.") 502 "Number of seconds between mode line clock string updates.")
@@ -516,7 +517,7 @@ If not, show simply the clocked time like 01:50."
516 (work-done-str 517 (work-done-str
517 (org-propertize 518 (org-propertize
518 (format org-time-clocksum-format h m) 519 (format org-time-clocksum-format h m)
519 'face (if (and org-task-overrun (not org-task-overrun-text)) 520 'face (if (and org-clock-task-overrun (not org-clock-task-overrun-text))
520 'org-mode-line-clock-overrun 'org-mode-line-clock))) 521 'org-mode-line-clock-overrun 'org-mode-line-clock)))
521 (effort-str (format org-time-clocksum-format effort-h effort-m)) 522 (effort-str (format org-time-clocksum-format effort-h effort-m))
522 (clockstr (org-propertize 523 (clockstr (org-propertize
@@ -532,7 +533,7 @@ If not, show simply the clocked time like 01:50."
532(defun org-clock-update-mode-line () 533(defun org-clock-update-mode-line ()
533 (if org-clock-effort 534 (if org-clock-effort
534 (org-clock-notify-once-if-expired) 535 (org-clock-notify-once-if-expired)
535 (setq org-task-overrun nil)) 536 (setq org-clock-task-overrun nil))
536 (setq org-mode-line-string 537 (setq org-mode-line-string
537 (org-propertize 538 (org-propertize
538 (let ((clock-string (org-clock-get-clock-string)) 539 (let ((clock-string (org-clock-get-clock-string))
@@ -546,10 +547,10 @@ If not, show simply the clocked time like 01:50."
546 'local-map org-clock-mode-line-map 547 'local-map org-clock-mode-line-map
547 'mouse-face (if (featurep 'xemacs) 'highlight 'mode-line-highlight) 548 'mouse-face (if (featurep 'xemacs) 'highlight 'mode-line-highlight)
548 )) 549 ))
549 (if (and org-task-overrun org-task-overrun-text) 550 (if (and org-clock-task-overrun org-clock-task-overrun-text)
550 (setq org-mode-line-string 551 (setq org-mode-line-string
551 (concat (org-propertize 552 (concat (org-propertize
552 org-task-overrun-text 553 org-clock-task-overrun-text
553 'face 'org-mode-line-clock-overrun) org-mode-line-string))) 554 'face 'org-mode-line-clock-overrun) org-mode-line-string)))
554 (force-mode-line-update)) 555 (force-mode-line-update))
555 556
@@ -606,7 +607,7 @@ Notification is shown only once."
606 (when (org-clocking-p) 607 (when (org-clocking-p)
607 (let ((effort-in-minutes (org-duration-string-to-minutes org-clock-effort)) 608 (let ((effort-in-minutes (org-duration-string-to-minutes org-clock-effort))
608 (clocked-time (org-clock-get-clocked-time))) 609 (clocked-time (org-clock-get-clocked-time)))
609 (if (setq org-task-overrun 610 (if (setq org-clock-task-overrun
610 (if (or (null effort-in-minutes) (zerop effort-in-minutes)) 611 (if (or (null effort-in-minutes) (zerop effort-in-minutes))
611 nil 612 nil
612 (>= clocked-time effort-in-minutes))) 613 (>= clocked-time effort-in-minutes)))
diff --git a/lisp/org/org-footnote.el b/lisp/org/org-footnote.el
index 34fc31f39d6..9319e0813c0 100644
--- a/lisp/org/org-footnote.el
+++ b/lisp/org/org-footnote.el
@@ -704,7 +704,7 @@ Additional note on `org-footnote-insert-pos-for-preprocessor':
704 (org-combine-plists 704 (org-combine-plists
705 export-props 705 export-props
706 '(:todo-keywords t :tags t :priority t)))) 706 '(:todo-keywords t :tags t :priority t))))
707 (org-export-preprocess-string def parameters)) 707 (apply #'org-export-preprocess-string def parameters))
708 def) 708 def)
709 ;; Reference beginning position is a marker 709 ;; Reference beginning position is a marker
710 ;; to preserve it during further buffer 710 ;; to preserve it during further buffer
diff --git a/lisp/org/org-pcomplete.el b/lisp/org/org-pcomplete.el
index 0ca8777878c..5950d8e26da 100644
--- a/lisp/org/org-pcomplete.el
+++ b/lisp/org/org-pcomplete.el
@@ -69,7 +69,7 @@ The return value is a string naming the thing at point."
69 (re-search-backward "^[ \t]*#\\+\\([A-Z_]+\\):.*" 69 (re-search-backward "^[ \t]*#\\+\\([A-Z_]+\\):.*"
70 (line-beginning-position) t)) 70 (line-beginning-position) t))
71 (cons "file-option" (match-string-no-properties 1))) 71 (cons "file-option" (match-string-no-properties 1)))
72 ((string-match "\\`[ \t]*#\\+[a-zA-Z]*\\'" line-to-here) 72 ((string-match "\\`[ \t]*#\\+[a-zA-Z_]*\\'" line-to-here)
73 (cons "file-option" nil)) 73 (cons "file-option" nil))
74 ((equal (char-before beg) ?\[) 74 ((equal (char-before beg) ?\[)
75 (cons "link" nil)) 75 (cons "link" nil))
@@ -144,7 +144,7 @@ When completing for #+STARTUP, for example, this function returns
144 (if (string-match "^#\\+\\([A-Z_]+:?\\)" x) 144 (if (string-match "^#\\+\\([A-Z_]+:?\\)" x)
145 (match-string 1 x))) 145 (match-string 1 x)))
146 (org-split-string (org-get-current-options) "\n")) 146 (org-split-string (org-get-current-options) "\n"))
147 org-additional-option-like-keywords))))) 147 (copy-sequence org-additional-option-like-keywords))))))
148 (substring pcomplete-stub 2))) 148 (substring pcomplete-stub 2)))
149 149
150(defvar org-startup-options) 150(defvar org-startup-options)
diff --git a/lisp/org/org-special-blocks.el b/lisp/org/org-special-blocks.el
index 5bf8362357f..43b37c64016 100644
--- a/lisp/org/org-special-blocks.el
+++ b/lisp/org/org-special-blocks.el
@@ -80,17 +80,17 @@ seen. This is run after a few special cases are taken care of."
80(add-hook 'org-export-latex-after-blockquotes-hook 80(add-hook 'org-export-latex-after-blockquotes-hook
81 'org-special-blocks-convert-latex-special-cookies) 81 'org-special-blocks-convert-latex-special-cookies)
82 82
83(defvar org-special-blocks-line) 83(defvar line)
84(defun org-special-blocks-convert-html-special-cookies () 84(defun org-special-blocks-convert-html-special-cookies ()
85 "Converts the special cookies into div blocks." 85 "Converts the special cookies into div blocks."
86 ;; Uses the dynamically-bound variable `org-special-blocks-line'. 86 ;; Uses the dynamically-bound variable `line'.
87 (when (string-match "^ORG-\\(.*\\)-\\(START\\|END\\)$" org-special-blocks-line) 87 (when (string-match "^ORG-\\(.*\\)-\\(START\\|END\\)$" line)
88 (message "%s" (match-string 1)) 88 (message "%s" (match-string 1))
89 (when (equal (match-string 2 org-special-blocks-line) "START") 89 (when (equal (match-string 2 line) "START")
90 (org-close-par-maybe) 90 (org-close-par-maybe)
91 (insert "\n<div class=\"" (match-string 1 org-special-blocks-line) "\">") 91 (insert "\n<div class=\"" (match-string 1 line) "\">")
92 (org-open-par)) 92 (org-open-par))
93 (when (equal (match-string 2 org-special-blocks-line) "END") 93 (when (equal (match-string 2 line) "END")
94 (org-close-par-maybe) 94 (org-close-par-maybe)
95 (insert "\n</div>") 95 (insert "\n</div>")
96 (org-open-par)) 96 (org-open-par))
diff --git a/lisp/org/org-table.el b/lisp/org/org-table.el
index ae12cee2abe..08981b57e49 100644
--- a/lisp/org/org-table.el
+++ b/lisp/org/org-table.el
@@ -2526,8 +2526,13 @@ not overwrite the stored one."
2526 (replace-match 2526 (replace-match
2527 (save-match-data 2527 (save-match-data
2528 (org-table-make-reference 2528 (org-table-make-reference
2529 (org-table-get-remote-range 2529 (let ((rmtrng (org-table-get-remote-range
2530 (match-string 1 form) (match-string 2 form)) 2530 (match-string 1 form) (match-string 2 form))))
2531 (if duration
2532 (if (listp rmtrng)
2533 (mapcar (lambda(x) (org-table-time-string-to-seconds x)) rmtrng)
2534 (org-table-time-string-to-seconds rmtrng))
2535 rmtrng))
2531 keep-empty numbers lispp)) 2536 keep-empty numbers lispp))
2532 t t form))) 2537 t t form)))
2533 ;; Insert complex ranges 2538 ;; Insert complex ranges
@@ -2663,8 +2668,8 @@ in the buffer and column1 and column2 are table column numbers."
2663; (setq r2 (or r2 r1) c2 (or c2 c1)) 2668; (setq r2 (or r2 r1) c2 (or c2 c1))
2664 (if (not r1) (setq r1 thisline)) 2669 (if (not r1) (setq r1 thisline))
2665 (if (not r2) (setq r2 thisline)) 2670 (if (not r2) (setq r2 thisline))
2666 (if (not c1) (setq c1 col)) 2671 (if (or (not c1) (= 0 c1)) (setq c1 col))
2667 (if (not c2) (setq c2 col)) 2672 (if (or (not c2) (= 0 c2)) (setq c2 col))
2668 (if (and (not corners-only) 2673 (if (and (not corners-only)
2669 (or (not rangep) (and (= r1 r2) (= c1 c2)))) 2674 (or (not rangep) (and (= r1 r2) (= c1 c2))))
2670 ;; just one field 2675 ;; just one field
diff --git a/lisp/org/org.el b/lisp/org/org.el
index 0f13223d0c1..c2cc2354439 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -6,7 +6,7 @@
6;; Maintainer: Bastien Guerry <bzg at gnu dot org> 6;; Maintainer: Bastien Guerry <bzg at gnu dot org>
7;; Keywords: outlines, hypermedia, calendar, wp 7;; Keywords: outlines, hypermedia, calendar, wp
8;; Homepage: http://orgmode.org 8;; Homepage: http://orgmode.org
9;; Version: 7.8.08 9;; Version: 7.8.09
10;; 10;;
11;; This file is part of GNU Emacs. 11;; This file is part of GNU Emacs.
12;; 12;;
@@ -206,7 +206,7 @@ identifier."
206 206
207;;; Version 207;;; Version
208 208
209(defconst org-version "7.8.08" 209(defconst org-version "7.8.09"
210 "The version number of the file org.el.") 210 "The version number of the file org.el.")
211 211
212;;;###autoload 212;;;###autoload
@@ -2225,7 +2225,7 @@ property and include the word \"recursive\" into the value."
2225(defcustom org-after-todo-state-change-hook nil 2225(defcustom org-after-todo-state-change-hook nil
2226 "Hook which is run after the state of a TODO item was changed. 2226 "Hook which is run after the state of a TODO item was changed.
2227The new state (a string with a TODO keyword, or nil) is available in the 2227The new state (a string with a TODO keyword, or nil) is available in the
2228Lisp variable `state'." 2228Lisp variable `org-state'."
2229 :group 'org-todo 2229 :group 'org-todo
2230 :type 'hook) 2230 :type 'hook)
2231 2231
@@ -5427,7 +5427,8 @@ will be prompted for."
5427 (when (re-search-forward 5427 (when (re-search-forward
5428 (concat "^[ \t]*#\\+end" (match-string 4) "\\>.*") 5428 (concat "^[ \t]*#\\+end" (match-string 4) "\\>.*")
5429 nil t) ;; on purpose, we look further than LIMIT 5429 nil t) ;; on purpose, we look further than LIMIT
5430 (setq end (match-end 0) end1 (1- (match-beginning 0))) 5430 (setq end (min (point-max) (match-end 0))
5431 end1 (min (point-max) (1- (match-beginning 0))))
5431 (setq block-end (match-beginning 0)) 5432 (setq block-end (match-beginning 0))
5432 (when quoting 5433 (when quoting
5433 (remove-text-properties beg end 5434 (remove-text-properties beg end
@@ -5455,11 +5456,12 @@ will be prompted for."
5455 '(face org-block))) ; end of source block 5456 '(face org-block))) ; end of source block
5456 ((not org-fontify-quote-and-verse-blocks)) 5457 ((not org-fontify-quote-and-verse-blocks))
5457 ((string= block-type "quote") 5458 ((string= block-type "quote")
5458 (add-text-properties beg1 (1+ end1) '(face org-quote))) 5459 (add-text-properties beg1 (min (point-max) (1+ end1)) '(face org-quote)))
5459 ((string= block-type "verse") 5460 ((string= block-type "verse")
5460 (add-text-properties beg1 (1+ end1) '(face org-verse)))) 5461 (add-text-properties beg1 (min (point-max) (1+ end1)) '(face org-verse))))
5461 (add-text-properties beg beg1 '(face org-block-begin-line)) 5462 (add-text-properties beg beg1 '(face org-block-begin-line))
5462 (add-text-properties (1+ end) (1+ end1) '(face org-block-end-line)) 5463 (add-text-properties (min (point-max) (1+ end)) (min (point-max) (1+ end1))
5464 '(face org-block-end-line))
5463 t)) 5465 t))
5464 ((member dc1 '("title:" "author:" "email:" "date:")) 5466 ((member dc1 '("title:" "author:" "email:" "date:"))
5465 (add-text-properties 5467 (add-text-properties
@@ -5475,7 +5477,7 @@ will be prompted for."
5475 ((not (member (char-after beg) '(?\ ?\t))) 5477 ((not (member (char-after beg) '(?\ ?\t)))
5476 ;; just any other in-buffer setting, but not indented 5478 ;; just any other in-buffer setting, but not indented
5477 (add-text-properties 5479 (add-text-properties
5478 beg (1+ (match-end 0)) 5480 beg (match-end 0)
5479 '(font-lock-fontified t face org-meta-line)) 5481 '(font-lock-fontified t face org-meta-line))
5480 t) 5482 t)
5481 ((or (member dc1 '("begin:" "end:" "caption:" "label:" 5483 ((or (member dc1 '("begin:" "end:" "caption:" "label:"
@@ -13422,8 +13424,7 @@ With prefix ARG, realign all tags in headings in the current buffer."
13422 ;; Get a new set of tags from the user 13424 ;; Get a new set of tags from the user
13423 (save-excursion 13425 (save-excursion
13424 (setq table (append org-tag-persistent-alist 13426 (setq table (append org-tag-persistent-alist
13425 org-tag-alist 13427 (or org-tag-alist (org-get-buffer-tags))
13426 (org-get-buffer-tags)
13427 (and 13428 (and
13428 org-complete-tags-always-offer-all-agenda-tags 13429 org-complete-tags-always-offer-all-agenda-tags
13429 (org-global-tags-completion-table 13430 (org-global-tags-completion-table
@@ -13725,11 +13726,9 @@ Returns the new tags string, or nil to not change the current settings."
13725 (condition-case nil 13726 (condition-case nil
13726 (setq tg (org-icompleting-read 13727 (setq tg (org-icompleting-read
13727 "Tag: " 13728 "Tag: "
13728 (delete-dups 13729 (or buffer-tags
13729 (append (or buffer-tags 13730 (with-current-buffer buf
13730 (with-current-buffer buf 13731 (org-get-buffer-tags)))))
13731 (mapcar 'car (org-get-buffer-tags))))
13732 (mapcar 'car table)))))
13733 (quit (setq tg ""))) 13732 (quit (setq tg "")))
13734 (when (string-match "\\S-" tg) 13733 (when (string-match "\\S-" tg)
13735 (add-to-list 'buffer-tags (list tg)) 13734 (add-to-list 'buffer-tags (list tg))
@@ -20775,11 +20774,12 @@ This version does not only check the character property, but also
20775If the heading only contains a TODO keyword, it is still still considered 20774If the heading only contains a TODO keyword, it is still still considered
20776empty." 20775empty."
20777 (and (looking-at "[ \t]*$") 20776 (and (looking-at "[ \t]*$")
20778 (save-excursion 20777 (when org-todo-line-regexp
20779 (beginning-of-line 1) 20778 (save-excursion
20780 (let ((case-fold-search nil)) 20779 (beginning-of-line 1)
20781 (looking-at org-todo-line-regexp))) 20780 (let ((case-fold-search nil))
20782 (string= (match-string 3) ""))) 20781 (looking-at org-todo-line-regexp)
20782 (string= (match-string 3) ""))))))
20783 20783
20784(defun org-at-heading-or-item-p () 20784(defun org-at-heading-or-item-p ()
20785 (or (org-at-heading-p) (org-at-item-p))) 20785 (or (org-at-heading-p) (org-at-item-p)))