diff options
| author | Glenn Morris | 2007-10-13 02:57:57 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-10-13 02:57:57 +0000 |
| commit | 85484c836aa5b7e4e8c51454144f24f989cbd634 (patch) | |
| tree | 87cbffe51f8810566ea9b241ff326c647665cff1 | |
| parent | 8d660cdf701831daf5764b9d0d0ea767a6d48f13 (diff) | |
| download | emacs-85484c836aa5b7e4e8c51454144f24f989cbd634.tar.gz emacs-85484c836aa5b7e4e8c51454144f24f989cbd634.zip | |
(org-export-as-html, org-export-as-ascii)
(org-fast-tag-selection): Use mapc rather than mapcar.
| -rw-r--r-- | lisp/textmodes/org.el | 102 |
1 files changed, 51 insertions, 51 deletions
diff --git a/lisp/textmodes/org.el b/lisp/textmodes/org.el index 597c7b7109c..6c48c47d3ad 100644 --- a/lisp/textmodes/org.el +++ b/lisp/textmodes/org.el | |||
| @@ -14269,9 +14269,9 @@ Returns the new tags string, or nil to not change the current settings." | |||
| 14269 | (setq current (delete tg current)) | 14269 | (setq current (delete tg current)) |
| 14270 | (loop for g in groups do | 14270 | (loop for g in groups do |
| 14271 | (if (member tg g) | 14271 | (if (member tg g) |
| 14272 | (mapcar (lambda (x) | 14272 | (mapc (lambda (x) |
| 14273 | (setq current (delete x current))) | 14273 | (setq current (delete x current))) |
| 14274 | g))) | 14274 | g))) |
| 14275 | (push tg current)) | 14275 | (push tg current)) |
| 14276 | (if exit-after-next (setq exit-after-next 'now)))) | 14276 | (if exit-after-next (setq exit-after-next 'now)))) |
| 14277 | 14277 | ||
| @@ -21849,10 +21849,10 @@ underlined headlines. The default is 3." | |||
| 21849 | (fundamental-mode) | 21849 | (fundamental-mode) |
| 21850 | ;; create local variables for all options, to make sure all called | 21850 | ;; create local variables for all options, to make sure all called |
| 21851 | ;; functions get the correct information | 21851 | ;; functions get the correct information |
| 21852 | (mapcar (lambda (x) | 21852 | (mapc (lambda (x) |
| 21853 | (set (make-local-variable (cdr x)) | 21853 | (set (make-local-variable (cdr x)) |
| 21854 | (plist-get opt-plist (car x)))) | 21854 | (plist-get opt-plist (car x)))) |
| 21855 | org-export-plist-vars) | 21855 | org-export-plist-vars) |
| 21856 | (org-set-local 'org-odd-levels-only odd) | 21856 | (org-set-local 'org-odd-levels-only odd) |
| 21857 | (setq umax (if arg (prefix-numeric-value arg) | 21857 | (setq umax (if arg (prefix-numeric-value arg) |
| 21858 | org-export-headline-levels)) | 21858 | org-export-headline-levels)) |
| @@ -21884,49 +21884,49 @@ underlined headlines. The default is 3." | |||
| 21884 | (progn | 21884 | (progn |
| 21885 | (push (concat (nth 3 lang-words) "\n") thetoc) | 21885 | (push (concat (nth 3 lang-words) "\n") thetoc) |
| 21886 | (push (concat (make-string (length (nth 3 lang-words)) ?=) "\n") thetoc) | 21886 | (push (concat (make-string (length (nth 3 lang-words)) ?=) "\n") thetoc) |
| 21887 | (mapcar '(lambda (line) | 21887 | (mapc '(lambda (line) |
| 21888 | (if (string-match org-todo-line-regexp | 21888 | (if (string-match org-todo-line-regexp |
| 21889 | line) | 21889 | line) |
| 21890 | ;; This is a headline | 21890 | ;; This is a headline |
| 21891 | (progn | 21891 | (progn |
| 21892 | (setq have-headings t) | 21892 | (setq have-headings t) |
| 21893 | (setq level (- (match-end 1) (match-beginning 1)) | 21893 | (setq level (- (match-end 1) (match-beginning 1)) |
| 21894 | level (org-tr-level level) | 21894 | level (org-tr-level level) |
| 21895 | txt (match-string 3 line) | 21895 | txt (match-string 3 line) |
| 21896 | todo | 21896 | todo |
| 21897 | (or (and org-export-mark-todo-in-toc | 21897 | (or (and org-export-mark-todo-in-toc |
| 21898 | (match-beginning 2) | 21898 | (match-beginning 2) |
| 21899 | (not (member (match-string 2 line) | 21899 | (not (member (match-string 2 line) |
| 21900 | org-done-keywords))) | 21900 | org-done-keywords))) |
| 21901 | ; TODO, not DONE | 21901 | ; TODO, not DONE |
| 21902 | (and org-export-mark-todo-in-toc | 21902 | (and org-export-mark-todo-in-toc |
| 21903 | (= level umax-toc) | 21903 | (= level umax-toc) |
| 21904 | (org-search-todo-below | 21904 | (org-search-todo-below |
| 21905 | line lines level)))) | 21905 | line lines level)))) |
| 21906 | (setq txt (org-html-expand-for-ascii txt)) | 21906 | (setq txt (org-html-expand-for-ascii txt)) |
| 21907 | 21907 | ||
| 21908 | (if (and (memq org-export-with-tags '(not-in-toc nil)) | 21908 | (if (and (memq org-export-with-tags '(not-in-toc nil)) |
| 21909 | (string-match | 21909 | (string-match |
| 21910 | (org-re "[ \t]+:[[:alnum:]_@:]+:[ \t]*$") | 21910 | (org-re "[ \t]+:[[:alnum:]_@:]+:[ \t]*$") |
| 21911 | txt)) | 21911 | txt)) |
| 21912 | (setq txt (replace-match "" t t txt))) | 21912 | (setq txt (replace-match "" t t txt))) |
| 21913 | (if (string-match quote-re0 txt) | 21913 | (if (string-match quote-re0 txt) |
| 21914 | (setq txt (replace-match "" t t txt))) | 21914 | (setq txt (replace-match "" t t txt))) |
| 21915 | 21915 | ||
| 21916 | (if org-export-with-section-numbers | 21916 | (if org-export-with-section-numbers |
| 21917 | (setq txt (concat (org-section-number level) | 21917 | (setq txt (concat (org-section-number level) |
| 21918 | " " txt))) | 21918 | " " txt))) |
| 21919 | (if (<= level umax-toc) | 21919 | (if (<= level umax-toc) |
| 21920 | (progn | 21920 | (progn |
| 21921 | (push | 21921 | (push |
| 21922 | (concat | 21922 | (concat |
| 21923 | (make-string | 21923 | (make-string |
| 21924 | (* (max 0 (- level org-min-level)) 4) ?\ ) | 21924 | (* (max 0 (- level org-min-level)) 4) ?\ ) |
| 21925 | (format (if todo "%s (*)\n" "%s\n") txt)) | 21925 | (format (if todo "%s (*)\n" "%s\n") txt)) |
| 21926 | thetoc) | 21926 | thetoc) |
| 21927 | (setq org-last-level level)) | 21927 | (setq org-last-level level)) |
| 21928 | )))) | 21928 | )))) |
| 21929 | lines) | 21929 | lines) |
| 21930 | (setq thetoc (if have-headings (nreverse thetoc) nil)))) | 21930 | (setq thetoc (if have-headings (nreverse thetoc) nil)))) |
| 21931 | 21931 | ||
| 21932 | (org-init-section-numbers) | 21932 | (org-init-section-numbers) |
| @@ -22498,10 +22498,10 @@ the body tags themselves." | |||
| 22498 | (org-odd-levels-only odd)) | 22498 | (org-odd-levels-only odd)) |
| 22499 | ;; create local variables for all options, to make sure all called | 22499 | ;; create local variables for all options, to make sure all called |
| 22500 | ;; functions get the correct information | 22500 | ;; functions get the correct information |
| 22501 | (mapcar (lambda (x) | 22501 | (mapc (lambda (x) |
| 22502 | (set (make-local-variable (cdr x)) | 22502 | (set (make-local-variable (cdr x)) |
| 22503 | (plist-get opt-plist (car x)))) | 22503 | (plist-get opt-plist (car x)))) |
| 22504 | org-export-plist-vars) | 22504 | org-export-plist-vars) |
| 22505 | (setq umax (if arg (prefix-numeric-value arg) | 22505 | (setq umax (if arg (prefix-numeric-value arg) |
| 22506 | org-export-headline-levels)) | 22506 | org-export-headline-levels)) |
| 22507 | (setq umax-toc (if (integerp org-export-with-toc) | 22507 | (setq umax-toc (if (integerp org-export-with-toc) |