aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Dominik2006-03-07 10:03:55 +0000
committerCarsten Dominik2006-03-07 10:03:55 +0000
commit7204b00e0e5526b50fe76e031f15a609fe950b3d (patch)
tree97d07f24b9b80af3dbb6f74c1a28c536b5975cb7
parent9b1dbf7d72be948622ea023b52dd16c1503e147d (diff)
downloademacs-7204b00e0e5526b50fe76e031f15a609fe950b3d.tar.gz
emacs-7204b00e0e5526b50fe76e031f15a609fe950b3d.zip
Move defvars out of eval-when-compile. Use
buffer-file-name variable. (org-agenda-file-to-end, org-agenda-file-to-front): Remove unused arg `file'. (org-level-faces): Remove startup dependency. (org-cycle, org-map-tree, org-scan-tags) (org-remember-handler): Don't call `outline-level' directly. (org-mhe-search-all-folders): New option. (org-mhe-get-message-folder-from-index, org-mhe-get-message-folder): Fix indexing search. (org-format-agenda-item): Handle nil TAGS argument. (org-cleaned-string-for-export, org-activate-target-links) (org-make-target-link-regexp): Deal with empty radio target list. (org-tag): New face. (org-get-level-face): New function. (org-set-font-lock-defaults): Simplify setup for headlines. (org-complete): Pass common substring to `display-completion-list'.
-rw-r--r--etc/ChangeLog4
-rw-r--r--lisp/ChangeLog21
-rw-r--r--lisp/textmodes/org.el340
-rw-r--r--man/ChangeLog4
4 files changed, 203 insertions, 166 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog
index d8679559497..22558d050e8 100644
--- a/etc/ChangeLog
+++ b/etc/ChangeLog
@@ -1,3 +1,7 @@
12006-03-07 Carsten Dominik <dominik@science.uva.nl>
2
3 * orgcard.tex: Version number change only.
4
12006-03-05 Bill Wohler <wohler@newt.com> 52006-03-05 Bill Wohler <wohler@newt.com>
2 6
3 Release MH-E version 7.93. 7 Release MH-E version 7.93.
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a3c19b5e1f3..341771a5640 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,24 @@
12006-03-07 Carsten Dominik <dominik@science.uva.nl>
2
3 * textmodes/org.el: Move defvars out of eval-when-compile. Use
4 buffer-file-name variable.
5 (org-agenda-file-to-end, org-agenda-file-to-front): Remove unused
6 arg `file'.
7 (org-level-faces): Remove startup dependency.
8 (org-cycle, org-map-tree, org-scan-tags)
9 (org-remember-handler): Don't call `outline-level' directly.
10 (org-mhe-search-all-folders): New option.
11 (org-mhe-get-message-folder-from-index,
12 org-mhe-get-message-folder): Fix indexing search.
13 (org-format-agenda-item): Handle nil TAGS argument.
14 (org-cleaned-string-for-export, org-activate-target-links)
15 (org-make-target-link-regexp): Deal with empty radio target list.
16 (org-tag): New face.
17 (org-get-level-face): New function.
18 (org-set-font-lock-defaults): Simplify setup for headlines.
19 (org-complete): Pass common substring to
20 `display-completion-list'.
21
12006-03-06 David Ponce <david@dponce.com> 222006-03-06 David Ponce <david@dponce.com>
2 23
3 * tree-widget.el: Update Commentary header. 24 * tree-widget.el: Update Commentary header.
diff --git a/lisp/textmodes/org.el b/lisp/textmodes/org.el
index cc822ddb436..717455edc61 100644
--- a/lisp/textmodes/org.el
+++ b/lisp/textmodes/org.el
@@ -5,7 +5,7 @@
5;; Author: Carsten Dominik <dominik at science dot uva dot nl> 5;; Author: Carsten Dominik <dominik at science dot uva dot nl>
6;; Keywords: outlines, hypermedia, calendar, wp 6;; Keywords: outlines, hypermedia, calendar, wp
7;; Homepage: http://www.astro.uva.nl/~dominik/Tools/org/ 7;; Homepage: http://www.astro.uva.nl/~dominik/Tools/org/
8;; Version: 4.07 8;; Version: 4.08
9;; 9;;
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
11;; 11;;
@@ -81,6 +81,9 @@
81;; 81;;
82;; Changes since version 4.00: 82;; Changes since version 4.00:
83;; --------------------------- 83;; ---------------------------
84;; Version 4.08
85;;
86;;
84;; Version 4.07 87;; Version 4.07
85;; - Bug fixes. 88;; - Bug fixes.
86;; - Leading stars in headlines can be hidden, so make the outline look 89;; - Leading stars in headlines can be hidden, so make the outline look
@@ -136,7 +139,7 @@
136 139
137;;; Customization variables 140;;; Customization variables
138 141
139(defvar org-version "4.07" 142(defvar org-version "4.08"
140 "The version number of the file org.el.") 143 "The version number of the file org.el.")
141(defun org-version () 144(defun org-version ()
142 (interactive) 145 (interactive)
@@ -796,7 +799,7 @@ as possible."
796(defcustom org-level-color-stars-only nil 799(defcustom org-level-color-stars-only nil
797 "Non-nil means fontify only the stars in each headline. 800 "Non-nil means fontify only the stars in each headline.
798When nil, the entire headline is fontified. 801When nil, the entire headline is fontified.
799Changing it requires restart of Emacs to become effective." 802Changing it requires restart of `font-lock-mode' to become effective."
800 :group 'org-structure 803 :group 'org-structure
801 :type 'boolean) 804 :type 'boolean)
802 805
@@ -806,7 +809,7 @@ This works by using the face `org-hide' for these stars. This
806face is white for a light background, and black for a dark 809face is white for a light background, and black for a dark
807background. You may have to customize the face `org-hide' to 810background. You may have to customize the face `org-hide' to
808make this work. 811make this work.
809Changing the variable requires restart of Emacs to become effective." 812Changing it requires restart of `font-lock-mode' to become effective."
810 :group 'org-structure 813 :group 'org-structure
811 :type 'boolean) 814 :type 'boolean)
812 815
@@ -814,7 +817,9 @@ Changing the variable requires restart of Emacs to become effective."
814 "Non-nil means, skip even levels and only use odd levels for the outline. 817 "Non-nil means, skip even levels and only use odd levels for the outline.
815This has the effect that two stars are being added/taken away in 818This has the effect that two stars are being added/taken away in
816promotion/demotion commands. It also influences how levels are 819promotion/demotion commands. It also influences how levels are
817handled by the exporters." 820handled by the exporters.
821Changing it requires restart of `font-lock-mode' to become effective
822for fontification."
818 :group 'org-structure 823 :group 'org-structure
819 :type 'boolean) 824 :type 'boolean)
820 825
@@ -1157,6 +1162,14 @@ For more examples, see the system specific constants
1157 (string :tag "Command") 1162 (string :tag "Command")
1158 (sexp :tag "Lisp form"))))) 1163 (sexp :tag "Lisp form")))))
1159 1164
1165(defcustom org-mhe-search-all-folders nil
1166 "Non-nil means, that the search for the mh-message will be extended to
1167all folders if the message cannot be found in the folder given in the link.
1168Searching all folders is very effective with one of the search engines
1169supported by MH-E, but will be slow with pick."
1170 :group 'org-link
1171 :type 'boolean)
1172
1160(defgroup org-remember nil 1173(defgroup org-remember nil
1161 "Options concerning interaction with remember.el." 1174 "Options concerning interaction with remember.el."
1162 :tag "Org Remember" 1175 :tag "Org Remember"
@@ -1855,6 +1868,14 @@ When this is non-nil, the headline after the keyword is set to the
1855 "Face for links." 1868 "Face for links."
1856 :group 'org-faces) 1869 :group 'org-faces)
1857 1870
1871(defface org-tag
1872 '((((type tty) (class color)) (:foreground "cyan" :weight bold))
1873 (((class color) (background light)) (:foreground "Purple" :weight bold))
1874 (((class color) (background dark)) (:foreground "Cyan" :weight bold))
1875 (t (:bold t)))
1876 "Face for links."
1877 :group 'org-faces)
1878
1858(defface org-done ;; font-lock-type-face 1879(defface org-done ;; font-lock-type-face
1859 '((((type tty) (class color)) (:foreground "green")) 1880 '((((type tty) (class color)) (:foreground "green"))
1860 (((class color) (background light)) (:foreground "ForestGreen" :bold t)) 1881 (((class color) (background light)) (:foreground "ForestGreen" :bold t))
@@ -1879,25 +1900,10 @@ When this is non-nil, the headline after the keyword is set to the
1879 "Face used for time grids." 1900 "Face used for time grids."
1880 :group 'org-faces) 1901 :group 'org-faces)
1881 1902
1882(defvar org-level-faces nil) 1903(defvar org-level-faces
1883 1904 '(org-level-1 org-level-2 org-level-3 org-level-4
1884(when (not org-level-faces) 1905 org-level-5 org-level-6 org-level-7 org-level-8
1885 (setq org-level-faces 1906 ))
1886 '(
1887 org-level-1
1888 org-level-2
1889 org-level-3
1890 org-level-4
1891 org-level-5
1892 org-level-6
1893 org-level-7
1894 org-level-8
1895 ))
1896 (when org-odd-levels-only
1897 (setq org-level-faces (apply 'append (mapcar (lambda (x) (list x x))
1898 org-level-faces)))
1899 (setq org-level-faces (append (cdr org-level-faces) (list 'org-level-1)))))
1900
1901(defvar org-n-levels (length org-level-faces)) 1907(defvar org-n-levels (length org-level-faces))
1902 1908
1903(defun org-set-regexps-and-options () 1909(defun org-set-regexps-and-options ()
@@ -1985,48 +1991,48 @@ When this is non-nil, the headline after the keyword is set to the
1985 1991
1986;; Tell the compiler about dynamically scoped variables, 1992;; Tell the compiler about dynamically scoped variables,
1987;; and variables from other packages 1993;; and variables from other packages
1988(eval-when-compile 1994(defvar zmacs-regions)
1989 (defvar zmacs-regions) 1995(defvar original-date)
1990 (defvar original-date) 1996(defvar org-transient-mark-mode)
1991 (defvar org-transient-mark-mode) 1997(defvar org-old-auto-fill-inhibit-regexp)
1992 (defvar org-old-auto-fill-inhibit-regexp) 1998(defvar orgtbl-mode-menu)
1993 (defvar orgtbl-mode-menu) 1999(defvar org-html-entities)
1994 (defvar org-html-entities) 2000(defvar org-goto-start-pos)
1995 (defvar org-goto-start-pos) 2001(defvar org-cursor-color)
1996 (defvar org-cursor-color) 2002(defvar org-time-was-given)
1997 (defvar org-time-was-given) 2003(defvar org-ts-what)
1998 (defvar org-ts-what) 2004(defvar mark-active)
1999 (defvar mark-active) 2005(defvar timecnt)
2000 (defvar timecnt) 2006(defvar levels-open)
2001 (defvar levels-open) 2007(defvar title)
2002 (defvar title) 2008(defvar author)
2003 (defvar author) 2009(defvar email)
2004 (defvar email) 2010(defvar text)
2005 (defvar text) 2011(defvar entry)
2006 (defvar entry) 2012(defvar date)
2007 (defvar date) 2013(defvar language)
2008 (defvar language) 2014(defvar options)
2009 (defvar options) 2015(defvar ans1)
2010 (defvar ans1) 2016(defvar ans2)
2011 (defvar ans2) 2017(defvar starting-day)
2012 (defvar starting-day) 2018(defvar include-all-loc)
2013 (defvar include-all-loc) 2019(defvar vm-message-pointer)
2014 (defvar vm-message-pointer) 2020(defvar vm-folder-directory)
2015 (defvar vm-folder-directory) 2021(defvar wl-summary-buffer-elmo-folder)
2016 (defvar wl-summary-buffer-elmo-folder) 2022(defvar wl-summary-buffer-folder-name)
2017 (defvar wl-summary-buffer-folder-name) 2023(defvar gnus-group-name)
2018 (defvar gnus-group-name) 2024(defvar gnus-article-current)
2019 (defvar gnus-article-current) 2025(defvar w3m-current-url)
2020 (defvar w3m-current-url) 2026(defvar mh-progs)
2021 (defvar mh-progs) 2027(defvar mh-current-folder)
2022 (defvar mh-current-folder) 2028(defvar mh-show-folder-buffer)
2023 (defvar mh-show-folder-buffer) 2029(defvar mh-index-folder)
2024 (defvar mh-index-folder) 2030(defvar mh-searcher)
2025 (defvar org-selected-point) 2031(defvar org-selected-point)
2026 (defvar calendar-mode-map) 2032(defvar calendar-mode-map)
2027 (defvar remember-save-after-remembering) 2033(defvar remember-save-after-remembering)
2028 (defvar remember-data-file) 2034(defvar remember-data-file)
2029 (defvar last-arg)) 2035(defvar last-arg)
2030 2036
2031;;; Define the mode 2037;;; Define the mode
2032 2038
@@ -2216,7 +2222,7 @@ The following commands are available:
2216 2222
2217(defun org-activate-target-links (limit) 2223(defun org-activate-target-links (limit)
2218 "Run through the buffer and add overlays to target matches." 2224 "Run through the buffer and add overlays to target matches."
2219 (when org-radio-targets 2225 (when (and org-radio-targets org-target-link-regexp)
2220 (let ((case-fold-search t)) 2226 (let ((case-fold-search t))
2221 (if (re-search-forward org-target-link-regexp limit t) 2227 (if (re-search-forward org-target-link-regexp limit t)
2222 (progn 2228 (progn
@@ -2253,16 +2259,17 @@ With optional argument RADIO, only find radio targets."
2253 "Make regular expression matching all strings in TARGETS. 2259 "Make regular expression matching all strings in TARGETS.
2254The regular expression finds the targets also if there is a line break 2260The regular expression finds the targets also if there is a line break
2255between words." 2261between words."
2256 (concat 2262 (and targets
2257 "\\<\\(" 2263 (concat
2258 (mapconcat 2264 "\\<\\("
2259 (lambda (x) 2265 (mapconcat
2260 (while (string-match " +" x) 2266 (lambda (x)
2261 (setq x (replace-match "\\s-+" t t x))) 2267 (while (string-match " +" x)
2262 x) 2268 (setq x (replace-match "\\s-+" t t x)))
2263 targets 2269 x)
2264 "\\|") 2270 targets
2265 "\\)\\>")) 2271 "\\|")
2272 "\\)\\>")))
2266 2273
2267(defvar org-camel-regexp "\\*?\\<[A-Z]+[a-z]+[A-Z][a-zA-Z]*\\>" 2274(defvar org-camel-regexp "\\*?\\<[A-Z]+[a-z]+[A-Z][a-zA-Z]*\\>"
2268 "Matches CamelCase words, possibly with a star before it.") 2275 "Matches CamelCase words, possibly with a star before it.")
@@ -2302,12 +2309,14 @@ between words."
2302(defun org-set-font-lock-defaults () 2309(defun org-set-font-lock-defaults ()
2303 (let ((org-font-lock-extra-keywords 2310 (let ((org-font-lock-extra-keywords
2304 (list 2311 (list
2312 '("^\\(\\**\\)\\(\\*\\)\\(.*\\)" (1 (org-get-level-face 1))
2313 (2 (org-get-level-face 2)) (3 (org-get-level-face 3)))
2305 '(org-activate-links (0 'org-link t)) 2314 '(org-activate-links (0 'org-link t))
2306 '(org-activate-links2 (0 'org-link t)) 2315 '(org-activate-links2 (0 'org-link t))
2307 '(org-activate-target-links (0 'org-link t)) 2316 '(org-activate-target-links (0 'org-link t))
2308 '(org-activate-dates (0 'org-link t)) 2317 '(org-activate-dates (0 'org-link t))
2309 '(org-activate-camels (0 'org-link t)) 2318 '(org-activate-camels (0 'org-link t))
2310 '(org-activate-tags (1 'org-link t)) 2319 '(org-activate-tags (1 'org-tag t))
2311 (list (concat "^\\*+[ \t]*" org-not-done-regexp) 2320 (list (concat "^\\*+[ \t]*" org-not-done-regexp)
2312 '(1 'org-warning t)) 2321 '(1 'org-warning t))
2313 (list (concat "\\[#[A-Z]\\]") '(0 'org-special-keyword t)) 2322 (list (concat "\\[#[A-Z]\\]") '(0 'org-special-keyword t))
@@ -2334,30 +2343,28 @@ between words."
2334 '("^[ \t]*\\(:.*\\)" (1 'org-table t)) 2343 '("^[ \t]*\\(:.*\\)" (1 'org-table t))
2335 '("| *\\(:?=[^|\n]*\\)" (1 'org-formula t)) 2344 '("| *\\(:?=[^|\n]*\\)" (1 'org-formula t))
2336 '("^[ \t]*| *\\([#!$*_^]\\) *|" (1 'org-formula t)) 2345 '("^[ \t]*| *\\([#!$*_^]\\) *|" (1 'org-formula t))
2337 )) 2346 )))
2338 (exp 2347
2339 ;; The font-lock expression for headlines is complicated. It depends
2340 ;; on two user options, and it needs to determine the level in
2341 ;; order to compute the level.
2342 (cond
2343 ((and org-level-color-stars-only (not org-hide-leading-stars))
2344 '("^\\(\\*+\\).*" 1 (nth (% (- (match-end 1) (match-beginning 1) 1) org-n-levels) org-level-faces) nil t))
2345 ((and (not org-level-color-stars-only) org-hide-leading-stars)
2346 '("^\\(\\**\\)\\(\\*.*\\)" (1 'org-hide) (2 (nth (% (- (match-end 1) (match-beginning 1)) org-n-levels) org-level-faces) nil t)))
2347 ((and org-level-color-stars-only org-hide-leading-stars)
2348 '("^\\(\\**\\)\\(\\*\\).*" (1 'org-hide) (2 (nth (% (- (match-end 1) (match-beginning 1)) org-n-levels) org-level-faces) nil t)))
2349 (t
2350 '("^\\(\\*+\\).*" 0 (nth (% (- (match-end 1) (match-beginning 1) 1) org-n-levels) org-level-faces) nil t)))))
2351
2352 ;; Now set the full font-lock-keywords 2348 ;; Now set the full font-lock-keywords
2353 (set (make-local-variable 'org-font-lock-keywords) 2349 (set (make-local-variable 'org-font-lock-keywords)
2354 (append 2350 org-font-lock-extra-keywords)
2355 (if org-xemacs-p (list exp) (list (cons 'eval (list 'quote exp))))
2356 org-font-lock-extra-keywords))
2357 (set (make-local-variable 'font-lock-defaults) 2351 (set (make-local-variable 'font-lock-defaults)
2358 '(org-font-lock-keywords t nil nil backward-paragraph)) 2352 '(org-font-lock-keywords t nil nil backward-paragraph))
2359 (kill-local-variable 'font-lock-keywords) nil)) 2353 (kill-local-variable 'font-lock-keywords) nil))
2360 2354
2355(defvar org-m nil)
2356(defvar org-l nil)
2357(defvar org-f nil)
2358(defun org-get-level-face (n)
2359 "Get the right face for match N in font-lock matching of healdines."
2360 (setq org-l (- (match-end 2) (match-beginning 1)))
2361 (if org-odd-levels-only (setq org-l (1+ (/ org-l 2))))
2362 (setq org-f (nth (1- (% org-l org-n-levels)) org-level-faces))
2363 (cond
2364 ((eq n 1) (if org-hide-leading-stars 'org-hide org-f))
2365 ((eq n 2) org-f)
2366 (t (if org-level-color-stars-only nil org-f))))
2367
2361(defun org-unfontify-region (beg end &optional maybe_loudly) 2368(defun org-unfontify-region (beg end &optional maybe_loudly)
2362 "Remove fontification and activation overlays from links." 2369 "Remove fontification and activation overlays from links."
2363 (font-lock-default-unfontify-region beg end) 2370 (font-lock-default-unfontify-region beg end)
@@ -2463,7 +2470,7 @@ between words."
2463 (save-excursion 2470 (save-excursion
2464 (org-back-to-heading) 2471 (org-back-to-heading)
2465 (outline-up-heading (if (< arg 0) (- arg) 2472 (outline-up-heading (if (< arg 0) (- arg)
2466 (- (outline-level) arg))) 2473 (- (funcall outline-level) arg)))
2467 (org-show-subtree))) 2474 (org-show-subtree)))
2468 2475
2469 ((save-excursion (beginning-of-line 1) (looking-at outline-regexp)) 2476 ((save-excursion (beginning-of-line 1) (looking-at outline-regexp))
@@ -2820,7 +2827,7 @@ in the region."
2820(defun org-map-tree (fun) 2827(defun org-map-tree (fun)
2821 "Call FUN for every heading underneath the current one." 2828 "Call FUN for every heading underneath the current one."
2822 (org-back-to-heading) 2829 (org-back-to-heading)
2823 (let ((level (outline-level))) 2830 (let ((level (funcall outline-level)))
2824 (save-excursion 2831 (save-excursion
2825 (funcall fun) 2832 (funcall fun)
2826 (while (and (progn 2833 (while (and (progn
@@ -3301,7 +3308,7 @@ heading be marked DONE, and the current time will be added."
3301 (if (string-match "\\(.*\\)::\\(.*\\)" org-archive-location) 3308 (if (string-match "\\(.*\\)::\\(.*\\)" org-archive-location)
3302 (progn 3309 (progn
3303 (setq file (format (match-string 1 org-archive-location) 3310 (setq file (format (match-string 1 org-archive-location)
3304 (file-name-nondirectory (buffer-file-name))) 3311 (file-name-nondirectory buffer-file-name))
3305 heading (match-string 2 org-archive-location))) 3312 heading (match-string 2 org-archive-location)))
3306 (error "Invalid `org-archive-location'")) 3313 (error "Invalid `org-archive-location'"))
3307 (if (> (length file) 0) 3314 (if (> (length file) 0)
@@ -3468,7 +3475,10 @@ At all other locations, this simply calls `ispell-complete-word'."
3468 (message "Making completion list...") 3475 (message "Making completion list...")
3469 (let ((list (sort (all-completions pattern table) 'string<))) 3476 (let ((list (sort (all-completions pattern table) 'string<)))
3470 (with-output-to-temp-buffer "*Completions*" 3477 (with-output-to-temp-buffer "*Completions*"
3471 (display-completion-list list))) 3478 (condition-case nil
3479 ;; Protection needed for XEmacs and emacs 21
3480 (display-completion-list list pattern)
3481 (error (display-completion-list list)))))
3472 (message "Making completion list...%s" "done")))))) 3482 (message "Making completion list...%s" "done"))))))
3473 3483
3474;;; Comments, TODO and DEADLINE 3484;;; Comments, TODO and DEADLINE
@@ -4491,7 +4501,7 @@ first press `1' to indicate that the agenda should be temporarily (until the
4491next use of \\[org-agenda]) restricted to the current file." 4501next use of \\[org-agenda]) restricted to the current file."
4492 (interactive "P") 4502 (interactive "P")
4493 (catch 'exit 4503 (catch 'exit
4494 (let ((restrict-ok (and (buffer-file-name) (eq major-mode 'org-mode))) 4504 (let ((restrict-ok (and buffer-file-name (eq major-mode 'org-mode)))
4495 (custom org-agenda-custom-commands) 4505 (custom org-agenda-custom-commands)
4496 c entry key type string) 4506 c entry key type string)
4497 (put 'org-agenda-files 'org-restrict nil) 4507 (put 'org-agenda-files 'org-restrict nil)
@@ -4526,7 +4536,7 @@ C Configure your own agenda commands")
4526 (message "") 4536 (message "")
4527 (when (equal c ?1) 4537 (when (equal c ?1)
4528 (if restrict-ok 4538 (if restrict-ok
4529 (put 'org-agenda-files 'org-restrict (list (buffer-file-name))) 4539 (put 'org-agenda-files 'org-restrict (list buffer-file-name))
4530 (error "Cannot restrict agenda to current buffer")) 4540 (error "Cannot restrict agenda to current buffer"))
4531 (message "Press key for agenda command%s" 4541 (message "Press key for agenda command%s"
4532 (if restrict-ok " (restricted to current file)" "")) 4542 (if restrict-ok " (restricted to current file)" ""))
@@ -4650,8 +4660,8 @@ dates."
4650 (dotodo include-all) 4660 (dotodo include-all)
4651 (doclosed org-agenda-show-log) 4661 (doclosed org-agenda-show-log)
4652 (org-agenda-keep-modes keep-modes) 4662 (org-agenda-keep-modes keep-modes)
4653 (entry (buffer-file-name)) 4663 (entry buffer-file-name)
4654 (org-agenda-files (list (buffer-file-name))) 4664 (org-agenda-files (list buffer-file-name))
4655 (date (calendar-current-date)) 4665 (date (calendar-current-date))
4656 (win (selected-window)) 4666 (win (selected-window))
4657 (pos1 (point)) 4667 (pos1 (point))
@@ -5178,7 +5188,7 @@ date. It also removes lines that contain only whitespace."
5178 "Make the position visible." 5188 "Make the position visible."
5179 (if (and org-disable-agenda-to-diary ;; called from org-agenda 5189 (if (and org-disable-agenda-to-diary ;; called from org-agenda
5180 (stringp string) 5190 (stringp string)
5181 (buffer-file-name)) 5191 buffer-file-name)
5182 (setq string (org-modify-diary-entry-string string)))))) 5192 (setq string (org-modify-diary-entry-string string))))))
5183 5193
5184(defun org-modify-diary-entry-string (string) 5194(defun org-modify-diary-entry-string (string)
@@ -5190,7 +5200,7 @@ date. It also removes lines that contain only whitespace."
5190 'help-echo 5200 'help-echo
5191 (format 5201 (format
5192 "mouse-2 or RET jump to diary file %s" 5202 "mouse-2 or RET jump to diary file %s"
5193 (abbreviate-file-name (buffer-file-name))) 5203 (abbreviate-file-name buffer-file-name))
5194 'org-agenda-diary-link t 5204 'org-agenda-diary-link t
5195 'org-marker (org-agenda-new-marker (point-at-bol))) 5205 'org-marker (org-agenda-new-marker (point-at-bol)))
5196 string) 5206 string)
@@ -5212,7 +5222,7 @@ If the current buffer visits an agenda file, find the next one in the list.
5212If the current buffer does not, find the first agenda file." 5222If the current buffer does not, find the first agenda file."
5213 (interactive) 5223 (interactive)
5214 (let ((files (append org-agenda-files (list (car org-agenda-files)))) 5224 (let ((files (append org-agenda-files (list (car org-agenda-files))))
5215 (tcf (if (buffer-file-name) (file-truename (buffer-file-name)))) 5225 (tcf (if buffer-file-name (file-truename buffer-file-name)))
5216 file) 5226 file)
5217 (unless files (error "No agenda files")) 5227 (unless files (error "No agenda files"))
5218 (catch 'exit 5228 (catch 'exit
@@ -5223,14 +5233,14 @@ If the current buffer does not, find the first agenda file."
5223 (throw 'exit t)))) 5233 (throw 'exit t))))
5224 (find-file (car org-agenda-files))))) 5234 (find-file (car org-agenda-files)))))
5225 5235
5226(defun org-agenda-file-to-end (&optional file) 5236(defun org-agenda-file-to-end ()
5227 "Move/add the current file to the end of the agenda file list. 5237 "Move/add the current file to the end of the agenda file list.
5228If the file is not present in the list, it is appended to the list. If it is 5238If the file is not present in the list, it is appended to the list. If it is
5229present, it is moved there." 5239present, it is moved there."
5230 (interactive) 5240 (interactive)
5231 (org-agenda-file-to-front 'to-end file)) 5241 (org-agenda-file-to-front 'to-end))
5232 5242
5233(defun org-agenda-file-to-front (&optional to-end file) 5243(defun org-agenda-file-to-front (&optional to-end)
5234 "Move/add the current file to the top of the agenda file list. 5244 "Move/add the current file to the top of the agenda file list.
5235If the file is not present in the list, it is added to the front. If it is 5245If the file is not present in the list, it is added to the front. If it is
5236present, it is moved there. With optional argument TO-END, add/move to the 5246present, it is moved there. With optional argument TO-END, add/move to the
@@ -5239,11 +5249,11 @@ end of the list."
5239 (let ((file-alist (mapcar (lambda (x) 5249 (let ((file-alist (mapcar (lambda (x)
5240 (cons (file-truename x) x)) 5250 (cons (file-truename x) x))
5241 org-agenda-files)) 5251 org-agenda-files))
5242 (ctf (file-truename (buffer-file-name))) 5252 (ctf (file-truename buffer-file-name))
5243 x had) 5253 x had)
5244 (setq x (assoc ctf file-alist) had x) 5254 (setq x (assoc ctf file-alist) had x)
5245 5255
5246 (if (not x) (setq x (cons ctf (abbreviate-file-name (buffer-file-name))))) 5256 (if (not x) (setq x (cons ctf (abbreviate-file-name buffer-file-name))))
5247 (if to-end 5257 (if to-end
5248 (setq file-alist (append (delq x file-alist) (list x))) 5258 (setq file-alist (append (delq x file-alist) (list x)))
5249 (setq file-alist (cons x (delq x file-alist)))) 5259 (setq file-alist (cons x (delq x file-alist))))
@@ -5259,7 +5269,7 @@ end of the list."
5259These are the files which are being checked for agenda entries. 5269These are the files which are being checked for agenda entries.
5260Optional argument FILE means, use this file instead of the current." 5270Optional argument FILE means, use this file instead of the current."
5261 (interactive) 5271 (interactive)
5262 (let* ((file (or file (buffer-file-name))) 5272 (let* ((file (or file buffer-file-name))
5263 (true-file (file-truename file)) 5273 (true-file (file-truename file))
5264 (afile (abbreviate-file-name file)) 5274 (afile (abbreviate-file-name file))
5265 (files (delq nil (mapcar 5275 (files (delq nil (mapcar
@@ -5383,9 +5393,9 @@ function from a program - use `org-agenda-get-day-entries' instead."
5383 (cond 5393 (cond
5384 ((null org-category) 5394 ((null org-category)
5385 (setq org-category 5395 (setq org-category
5386 (if (buffer-file-name) 5396 (if buffer-file-name
5387 (file-name-sans-extension 5397 (file-name-sans-extension
5388 (file-name-nondirectory (buffer-file-name))) 5398 (file-name-nondirectory buffer-file-name))
5389 "???"))) 5399 "???")))
5390 ((symbolp org-category) (symbol-name org-category)) 5400 ((symbolp org-category) (symbol-name org-category))
5391 (t org-category)) 5401 (t org-category))
@@ -5482,7 +5492,7 @@ the documentation of `org-diary'."
5482 'keymap org-agenda-keymap 5492 'keymap org-agenda-keymap
5483 'help-echo 5493 'help-echo
5484 (format "mouse-2 or RET jump to org file %s" 5494 (format "mouse-2 or RET jump to org file %s"
5485 (abbreviate-file-name (buffer-file-name))))) 5495 (abbreviate-file-name buffer-file-name))))
5486 (regexp (concat "[\n\r]\\*+ *\\(" 5496 (regexp (concat "[\n\r]\\*+ *\\("
5487 (if org-select-this-todo-keyword 5497 (if org-select-this-todo-keyword
5488 (concat "\\<\\(" org-select-this-todo-keyword 5498 (concat "\\<\\(" org-select-this-todo-keyword
@@ -5524,7 +5534,7 @@ the documentation of `org-diary'."
5524 'keymap org-agenda-keymap 5534 'keymap org-agenda-keymap
5525 'help-echo 5535 'help-echo
5526 (format "mouse-2 or RET jump to org file %s" 5536 (format "mouse-2 or RET jump to org file %s"
5527 (abbreviate-file-name (buffer-file-name))))) 5537 (abbreviate-file-name buffer-file-name))))
5528 (regexp (regexp-quote 5538 (regexp (regexp-quote
5529 (substring 5539 (substring
5530 (format-time-string 5540 (format-time-string
@@ -5601,7 +5611,7 @@ the documentation of `org-diary'."
5601 'keymap org-agenda-keymap 5611 'keymap org-agenda-keymap
5602 'help-echo 5612 'help-echo
5603 (format "mouse-2 or RET jump to org file %s" 5613 (format "mouse-2 or RET jump to org file %s"
5604 (abbreviate-file-name (buffer-file-name))))) 5614 (abbreviate-file-name buffer-file-name))))
5605 (regexp (concat 5615 (regexp (concat
5606 "\\<" org-closed-string " *\\[" 5616 "\\<" org-closed-string " *\\["
5607 (regexp-quote 5617 (regexp-quote
@@ -5657,7 +5667,7 @@ the documentation of `org-diary'."
5657 'keymap org-agenda-keymap 5667 'keymap org-agenda-keymap
5658 'help-echo 5668 'help-echo
5659 (format "mouse-2 or RET jump to org file %s" 5669 (format "mouse-2 or RET jump to org file %s"
5660 (abbreviate-file-name (buffer-file-name))))) 5670 (abbreviate-file-name buffer-file-name))))
5661 (regexp org-deadline-time-regexp) 5671 (regexp org-deadline-time-regexp)
5662 (todayp (equal date (calendar-current-date))) ; DATE bound by calendar 5672 (todayp (equal date (calendar-current-date))) ; DATE bound by calendar
5663 (d1 (calendar-absolute-from-gregorian date)) ; DATE bound by calendar 5673 (d1 (calendar-absolute-from-gregorian date)) ; DATE bound by calendar
@@ -5719,7 +5729,7 @@ the documentation of `org-diary'."
5719 'keymap org-agenda-keymap 5729 'keymap org-agenda-keymap
5720 'help-echo 5730 'help-echo
5721 (format "mouse-2 or RET jump to org file %s" 5731 (format "mouse-2 or RET jump to org file %s"
5722 (abbreviate-file-name (buffer-file-name))))) 5732 (abbreviate-file-name buffer-file-name))))
5723 (regexp org-scheduled-time-regexp) 5733 (regexp org-scheduled-time-regexp)
5724 (todayp (equal date (calendar-current-date))) ; DATE bound by calendar 5734 (todayp (equal date (calendar-current-date))) ; DATE bound by calendar
5725 (d1 (calendar-absolute-from-gregorian date)) ; DATE bound by calendar 5735 (d1 (calendar-absolute-from-gregorian date)) ; DATE bound by calendar
@@ -5768,7 +5778,7 @@ the documentation of `org-diary'."
5768 'keymap org-agenda-keymap 5778 'keymap org-agenda-keymap
5769 'help-echo 5779 'help-echo
5770 (format "mouse-2 or RET jump to org file %s" 5780 (format "mouse-2 or RET jump to org file %s"
5771 (abbreviate-file-name (buffer-file-name))))) 5781 (abbreviate-file-name buffer-file-name))))
5772 (regexp org-tr-regexp) 5782 (regexp org-tr-regexp)
5773 (d0 (calendar-absolute-from-gregorian date)) 5783 (d0 (calendar-absolute-from-gregorian date))
5774 marker hdmarker ee txt d1 d2 s1 s2 timestr category tags) 5784 marker hdmarker ee txt d1 d2 s1 s2 timestr category tags)
@@ -5861,11 +5871,11 @@ only the correctly processes TXT should be returned - this is used by
5861 (if (string-match "^ +" txt) (setq txt (replace-match "" nil nil txt))) 5871 (if (string-match "^ +" txt) (setq txt (replace-match "" nil nil txt)))
5862 (let* ((category (or category 5872 (let* ((category (or category
5863 org-category 5873 org-category
5864 (if (buffer-file-name) 5874 (if buffer-file-name
5865 (file-name-sans-extension 5875 (file-name-sans-extension
5866 (file-name-nondirectory (buffer-file-name))) 5876 (file-name-nondirectory buffer-file-name))
5867 ""))) 5877 "")))
5868 (tag (or (nth (1- (length tags)) tags) "")) 5878 (tag (or (nth (1- (or (length tags) 0)) tags) ""))
5869 time ;; needed for the eval of the prefix format 5879 time ;; needed for the eval of the prefix format
5870 (ts (if dotime (concat (if (stringp dotime) dotime "") txt))) 5880 (ts (if dotime (concat (if (stringp dotime) dotime "") txt)))
5871 (time-of-day (and dotime (org-get-time-of-day ts))) 5881 (time-of-day (and dotime (org-get-time-of-day ts)))
@@ -6495,7 +6505,7 @@ are included in the output."
6495 'keymap org-agenda-keymap 6505 'keymap org-agenda-keymap
6496 'help-echo 6506 'help-echo
6497 (format "mouse-2 or RET jump to org file %s" 6507 (format "mouse-2 or RET jump to org file %s"
6498 (abbreviate-file-name (buffer-file-name))))) 6508 (abbreviate-file-name buffer-file-name))))
6499 lspos 6509 lspos
6500 tags tags-list tags-alist (llast 0) rtn level category i txt 6510 tags tags-list tags-alist (llast 0) rtn level category i txt
6501 todo marker) 6511 todo marker)
@@ -6507,7 +6517,7 @@ are included in the output."
6507 (setq todo (if (match-end 1) (match-string 2)) 6517 (setq todo (if (match-end 1) (match-string 2))
6508 tags (if (match-end 4) (match-string 4))) 6518 tags (if (match-end 4) (match-string 4)))
6509 (goto-char (setq lspos (1+ (match-beginning 0)))) 6519 (goto-char (setq lspos (1+ (match-beginning 0))))
6510 (setq level (outline-level) 6520 (setq level (funcall outline-level)
6511 category (org-get-category)) 6521 category (org-get-category))
6512 (setq i llast llast level) 6522 (setq i llast llast level)
6513 ;; remove tag lists from same and sublevels 6523 ;; remove tag lists from same and sublevels
@@ -7232,9 +7242,8 @@ sequences, it will now work."
7232 "Returns the name of the message folder in a index folder buffer." 7242 "Returns the name of the message folder in a index folder buffer."
7233 (save-excursion 7243 (save-excursion
7234 (mh-index-previous-folder) 7244 (mh-index-previous-folder)
7235 (if (not (re-search-forward "^\\(+.*\\)$" nil t)) 7245 (re-search-forward "^\\(+.*\\)$" nil t)
7236 (message "Problem getting folder from index.") 7246 (message (match-string 1))))
7237 (message (match-string 1)))))
7238 7247
7239(defun org-mhe-get-message-folder () 7248(defun org-mhe-get-message-folder ()
7240 "Return the name of the current message folder. Be careful if you 7249 "Return the name of the current message folder. Be careful if you
@@ -7278,23 +7287,21 @@ idea..."
7278 "Follow an MHE link to FOLDER and ARTICLE." 7287 "Follow an MHE link to FOLDER and ARTICLE."
7279 (setq article (org-add-angle-brackets article)) 7288 (setq article (org-add-angle-brackets article))
7280 (require 'mh-e) 7289 (require 'mh-e)
7290 (require 'mh-search)
7281 (mh-find-path) 7291 (mh-find-path)
7282 (let* ((show-buf (concat "show-" folder))) 7292 (mh-search-choose)
7283 (mh-visit-folder folder) 7293 (if (equal mh-searcher 'pick)
7284 (get-buffer-create show-buf) 7294 (progn
7285 (mh-show-msg 7295 (mh-search folder (list "--message-id" article))
7286 (string-to-number 7296 (when (and org-mhe-search-all-folders
7287 (car (split-string 7297 (not (org-mhe-get-message-real-folder)))
7288 (with-temp-buffer 7298 (kill-this-buffer)
7289 (call-process 7299 (mh-search "+" (list "--message-id" article))))
7290 (expand-file-name "pick" mh-progs) 7300 (mh-search "+" article))
7291 nil t nil 7301 (if (org-mhe-get-message-real-folder)
7292 folder 7302 (mh-show-msg 1)
7293 "--message-id" 7303 (kill-this-buffer)
7294 article) 7304 (error "Message not found")))
7295 (buffer-string))
7296 "\n"))))
7297 (pop-to-buffer show-buf)))
7298 7305
7299(defun org-open-file (path &optional in-emacs line search) 7306(defun org-open-file (path &optional in-emacs line search)
7300 "Open the file at PATH. 7307 "Open the file at PATH.
@@ -7309,7 +7316,7 @@ opened in Emacs.
7309If the file does not exist, an error is thrown." 7316If the file does not exist, an error is thrown."
7310 (setq in-emacs (or in-emacs line search)) 7317 (setq in-emacs (or in-emacs line search))
7311 (let* ((file (if (equal path "") 7318 (let* ((file (if (equal path "")
7312 (buffer-file-name) 7319 buffer-file-name
7313 (convert-standard-filename (org-expand-file-name path)))) 7320 (convert-standard-filename (org-expand-file-name path))))
7314 (dirp (file-directory-p file)) 7321 (dirp (file-directory-p file))
7315 (dfile (downcase file)) 7322 (dfile (downcase file))
@@ -7345,7 +7352,7 @@ If the file does not exist, an error is thrown."
7345 (shell-command (concat cmd " &")))) 7352 (shell-command (concat cmd " &"))))
7346 ((or (stringp cmd) 7353 ((or (stringp cmd)
7347 (eq cmd 'emacs)) 7354 (eq cmd 'emacs))
7348 (unless (equal (file-truename file) (file-truename (buffer-file-name))) 7355 (unless (equal (file-truename file) (file-truename buffer-file-name))
7349 (funcall (cdr (assq 'file org-link-frame-setup)) file)) 7356 (funcall (cdr (assq 'file org-link-frame-setup)) file))
7350 (if line (goto-line line) 7357 (if line (goto-line line)
7351 (if search (org-link-search search)))) 7358 (if search (org-link-search search))))
@@ -7412,7 +7419,7 @@ For file links, arg negates `org-context-in-file-links'."
7412 (save-excursion 7419 (save-excursion
7413 (vm-select-folder-buffer) 7420 (vm-select-folder-buffer)
7414 (let* ((message (car vm-message-pointer)) 7421 (let* ((message (car vm-message-pointer))
7415 (folder (buffer-file-name)) 7422 (folder buffer-file-name)
7416 (subject (vm-su-subject message)) 7423 (subject (vm-su-subject message))
7417 (author (vm-su-full-name message)) 7424 (author (vm-su-full-name message))
7418 (message-id (vm-su-message-id message))) 7425 (message-id (vm-su-message-id message)))
@@ -7457,7 +7464,7 @@ For file links, arg negates `org-context-in-file-links'."
7457 (save-excursion 7464 (save-excursion
7458 (save-restriction 7465 (save-restriction
7459 (rmail-narrow-to-non-pruned-header) 7466 (rmail-narrow-to-non-pruned-header)
7460 (let ((folder (buffer-file-name)) 7467 (let ((folder buffer-file-name)
7461 (message-id (mail-fetch-field "message-id")) 7468 (message-id (mail-fetch-field "message-id"))
7462 (author (mail-fetch-field "from")) 7469 (author (mail-fetch-field "from"))
7463 (subject (mail-fetch-field "subject"))) 7470 (subject (mail-fetch-field "subject")))
@@ -7512,7 +7519,7 @@ For file links, arg negates `org-context-in-file-links'."
7512 ((eq major-mode 'org-mode) 7519 ((eq major-mode 'org-mode)
7513 ;; Just link to current headline 7520 ;; Just link to current headline
7514 (setq cpltxt (concat "file:" 7521 (setq cpltxt (concat "file:"
7515 (abbreviate-file-name (buffer-file-name)))) 7522 (abbreviate-file-name buffer-file-name)))
7516 ;; Add a context search string 7523 ;; Add a context search string
7517 (when (org-xor org-context-in-file-links arg) 7524 (when (org-xor org-context-in-file-links arg)
7518 ;; Check if we are on a target 7525 ;; Check if we are on a target
@@ -7537,10 +7544,10 @@ For file links, arg negates `org-context-in-file-links'."
7537 (setq cpltxt (substring cpltxt 0 -2))) 7544 (setq cpltxt (substring cpltxt 0 -2)))
7538 (setq link (org-make-link cpltxt))) 7545 (setq link (org-make-link cpltxt)))
7539 7546
7540 ((buffer-file-name) 7547 (buffer-file-name
7541 ;; Just link to this file here. 7548 ;; Just link to this file here.
7542 (setq cpltxt (concat "file:" 7549 (setq cpltxt (concat "file:"
7543 (abbreviate-file-name (buffer-file-name)))) 7550 (abbreviate-file-name buffer-file-name)))
7544 ;; Add a context string 7551 ;; Add a context string
7545 (when (org-xor org-context-in-file-links arg) 7552 (when (org-xor org-context-in-file-links arg)
7546 (setq txt (if (org-region-active-p) 7553 (setq txt (if (org-region-active-p)
@@ -7706,7 +7713,7 @@ is in the current directory or below."
7706 (case-fold-search nil) 7713 (case-fold-search nil)
7707 (search (match-string 2 link))) 7714 (search (match-string 2 link)))
7708 (when (save-match-data 7715 (when (save-match-data
7709 (equal (file-truename (buffer-file-name)) 7716 (equal (file-truename buffer-file-name)
7710 (file-truename path))) 7717 (file-truename path)))
7711 ;; We are linking to this same file 7718 ;; We are linking to this same file
7712 (if (and org-file-link-context-use-camel-case 7719 (if (and org-file-link-context-use-camel-case
@@ -7835,7 +7842,7 @@ See also the variable `org-reverse-note-order'."
7835 ((and (org-on-heading-p nil) (not current-prefix-arg)) 7842 ((and (org-on-heading-p nil) (not current-prefix-arg))
7836 ;; Put it below this entry, at the beg/end of the subtree 7843 ;; Put it below this entry, at the beg/end of the subtree
7837 (org-back-to-heading) 7844 (org-back-to-heading)
7838 (setq level (outline-level)) 7845 (setq level (funcall outline-level))
7839 (if reversed 7846 (if reversed
7840 (outline-end-of-heading) 7847 (outline-end-of-heading)
7841 (outline-end-of-subtree)) 7848 (outline-end-of-subtree))
@@ -7868,7 +7875,7 @@ See also the variable `org-reverse-note-order'."
7868 (let ((all org-reverse-note-order) 7875 (let ((all org-reverse-note-order)
7869 entry) 7876 entry)
7870 (while (setq entry (pop all)) 7877 (while (setq entry (pop all))
7871 (if (string-match (car entry) (buffer-file-name)) 7878 (if (string-match (car entry) buffer-file-name)
7872 (throw 'exit (cdr entry)))) 7879 (throw 'exit (cdr entry))))
7873 nil))))) 7880 nil)))))
7874 7881
@@ -10510,7 +10517,8 @@ translations. There is currently no way for users to extend this.")
10510 "Cleanup a buffer substring so that links can be created safely." 10517 "Cleanup a buffer substring so that links can be created safely."
10511 (interactive) 10518 (interactive)
10512 (let* ((cb (current-buffer)) 10519 (let* ((cb (current-buffer))
10513 (re-radio (concat "\\([^<]\\)\\(" org-target-link-regexp "\\)")) 10520 (re-radio (and org-target-link-regexp
10521 (concat "\\([^<]\\)\\(" org-target-link-regexp "\\)")))
10514 rtn) 10522 rtn)
10515 (save-excursion 10523 (save-excursion
10516 (set-buffer (get-buffer-create " org-mode-tmp")) 10524 (set-buffer (get-buffer-create " org-mode-tmp"))
@@ -10524,8 +10532,9 @@ translations. There is currently no way for users to extend this.")
10524 (replace-match "\\1(INVISIBLE)")) 10532 (replace-match "\\1(INVISIBLE)"))
10525 ;; Find matches for radio targets and turn them into links 10533 ;; Find matches for radio targets and turn them into links
10526 (goto-char (point-min)) 10534 (goto-char (point-min))
10527 (while (re-search-forward re-radio nil t) 10535 (when re-radio
10528 (replace-match "\\1[[\\2]]")) 10536 (while (re-search-forward re-radio nil t)
10537 (replace-match "\\1[[\\2]]")))
10529 ;; Find all links that contain a newline and put them into a single line 10538 ;; Find all links that contain a newline and put them into a single line
10530 (goto-char (point-min)) 10539 (goto-char (point-min))
10531 (while (re-search-forward "\\(\\[\\[[^]]*?\\)[ \t]*\n[ \t]*\\([^]]*\\]\\]\\)" nil t) 10540 (while (re-search-forward "\\(\\[\\[[^]]*?\\)[ \t]*\n[ \t]*\\([^]]*\\]\\]\\)" nil t)
@@ -10590,7 +10599,7 @@ underlined headlines. The default is 3."
10590 (level 0) line txt 10599 (level 0) line txt
10591 (umax nil) 10600 (umax nil)
10592 (case-fold-search nil) 10601 (case-fold-search nil)
10593 (filename (concat (file-name-sans-extension (buffer-file-name)) 10602 (filename (concat (file-name-sans-extension buffer-file-name)
10594 ".txt")) 10603 ".txt"))
10595 (buffer (find-file-noselect filename)) 10604 (buffer (find-file-noselect filename))
10596 (levels-open (make-vector org-level-max nil)) 10605 (levels-open (make-vector org-level-max nil))
@@ -10748,7 +10757,7 @@ underlined headlines. The default is 3."
10748Also removes the first line of the buffer if it specifies a mode, 10757Also removes the first line of the buffer if it specifies a mode,
10749and all options lines." 10758and all options lines."
10750 (interactive) 10759 (interactive)
10751 (let* ((filename (concat (file-name-sans-extension (buffer-file-name)) 10760 (let* ((filename (concat (file-name-sans-extension buffer-file-name)
10752 ".txt")) 10761 ".txt"))
10753 (buffer (find-file-noselect filename)) 10762 (buffer (find-file-noselect filename))
10754 (ore (concat 10763 (ore (concat
@@ -10822,7 +10831,7 @@ Does include HTML export options as well as TODO and CATEGORY stuff."
10822 org-export-with-sub-superscripts 10831 org-export-with-sub-superscripts
10823 org-export-with-emphasize 10832 org-export-with-emphasize
10824 org-export-with-TeX-macros 10833 org-export-with-TeX-macros
10825 (file-name-nondirectory (buffer-file-name)) 10834 (file-name-nondirectory buffer-file-name)
10826 (if (equal org-todo-interpretation 'sequence) 10835 (if (equal org-todo-interpretation 'sequence)
10827 (mapconcat 'identity org-todo-keywords " ") 10836 (mapconcat 'identity org-todo-keywords " ")
10828 "TODO FEEDBACK VERIFY DONE") 10837 "TODO FEEDBACK VERIFY DONE")
@@ -10895,7 +10904,7 @@ The prefix ARG specifies how many levels of the outline should become
10895headlines. The default is 3. Lower levels will become bulleted lists." 10904headlines. The default is 3. Lower levels will become bulleted lists."
10896 (interactive "P") 10905 (interactive "P")
10897 (org-export-as-html arg 'hidden) 10906 (org-export-as-html arg 'hidden)
10898 (org-open-file (buffer-file-name))) 10907 (org-open-file buffer-file-name))
10899 10908
10900(defun org-export-as-html-batch () 10909(defun org-export-as-html-batch ()
10901 "Call `org-export-as-html', may be used in batch processing as 10910 "Call `org-export-as-html', may be used in batch processing as
@@ -10927,7 +10936,7 @@ headlines. The default is 3. Lower levels will become bulleted lists."
10927 (lines (org-export-find-first-heading-line all_lines)) 10936 (lines (org-export-find-first-heading-line all_lines))
10928 (level 0) (line "") (origline "") txt todo 10937 (level 0) (line "") (origline "") txt todo
10929 (umax nil) 10938 (umax nil)
10930 (filename (concat (file-name-sans-extension (buffer-file-name)) 10939 (filename (concat (file-name-sans-extension buffer-file-name)
10931 ".html")) 10940 ".html"))
10932 (buffer (find-file-noselect filename)) 10941 (buffer (find-file-noselect filename))
10933 (levels-open (make-vector org-level-max nil)) 10942 (levels-open (make-vector org-level-max nil))
@@ -11661,7 +11670,7 @@ When LEVEL is non-nil, increase section numbers on that level."
11661The iCalendar file will be located in the same directory as the Org-mode 11670The iCalendar file will be located in the same directory as the Org-mode
11662file, but with extension `.ics'." 11671file, but with extension `.ics'."
11663 (interactive) 11672 (interactive)
11664 (org-export-icalendar nil (buffer-file-name))) 11673 (org-export-icalendar nil buffer-file-name))
11665 11674
11666;;;###autoload 11675;;;###autoload
11667(defun org-export-icalendar-all-agenda-files () 11676(defun org-export-icalendar-all-agenda-files ()
@@ -11698,7 +11707,7 @@ file and store it under the name `org-combined-agenda-icalendar-file'."
11698 (set-buffer (org-get-agenda-file-buffer file)) 11707 (set-buffer (org-get-agenda-file-buffer file))
11699 (setq category (or org-category 11708 (setq category (or org-category
11700 (file-name-sans-extension 11709 (file-name-sans-extension
11701 (file-name-nondirectory (buffer-file-name))))) 11710 (file-name-nondirectory buffer-file-name))))
11702 (if (symbolp category) (setq category (symbol-name category))) 11711 (if (symbolp category) (setq category (symbol-name category)))
11703 (let ((standard-output ical-buffer)) 11712 (let ((standard-output ical-buffer))
11704 (if combine 11713 (if combine
@@ -12842,4 +12851,3 @@ Show the heading too, if it is currently invisible."
12842 12851
12843;; arch-tag: e77da1a7-acc7-4336-b19e-efa25af3f9fd 12852;; arch-tag: e77da1a7-acc7-4336-b19e-efa25af3f9fd
12844;;; org.el ends here 12853;;; org.el ends here
12845
diff --git a/man/ChangeLog b/man/ChangeLog
index 8ed5aa74320..d03e52fcaa2 100644
--- a/man/ChangeLog
+++ b/man/ChangeLog
@@ -1,3 +1,7 @@
12006-03-07 Carsten Dominik <dominik@science.uva.nl>
2
3 * org.texi: Version number change only.
4
12006-03-06 Bill Wohler <wohler@newt.com> 52006-03-06 Bill Wohler <wohler@newt.com>
2 6
3 * mh-e.texi: Move from SourceForge repository to Savannah. This is 7 * mh-e.texi: Move from SourceForge repository to Savannah. This is