aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2005-05-05 15:08:52 +0000
committerStefan Monnier2005-05-05 15:08:52 +0000
commit2dd9129f24e01f6c8c9d1a07db82a9ac0fdc85f5 (patch)
tree1aa8f44d7eb52257674dc73907857c67c85a26cb
parent1c1d2dc88a253f204969a6a7ab8a4f9b74f91143 (diff)
downloademacs-2dd9129f24e01f6c8c9d1a07db82a9ac0fdc85f5.tar.gz
emacs-2dd9129f24e01f6c8c9d1a07db82a9ac0fdc85f5.zip
(org-get-entries-from-diary): Remove unused vars.
(org-agenda-date-later): Use with-current-buffer.
-rw-r--r--lisp/textmodes/org.el48
1 files changed, 24 insertions, 24 deletions
diff --git a/lisp/textmodes/org.el b/lisp/textmodes/org.el
index 2c0d1bea77c..e5c2f26c106 100644
--- a/lisp/textmodes/org.el
+++ b/lisp/textmodes/org.el
@@ -636,7 +636,7 @@ do have a time. When nil, the default time is before 0:00."
636(defcustom org-cycle-hook '(org-optimize-window-after-visibility-change) 636(defcustom org-cycle-hook '(org-optimize-window-after-visibility-change)
637 "Hook that is run after `org-cycle' has changed the buffer visibility. 637 "Hook that is run after `org-cycle' has changed the buffer visibility.
638The function(s) in this hook must accept a single argument which indicates 638The function(s) in this hook must accept a single argument which indicates
639the new state that was set by the most recent `org-cycle' command. The 639the new state that was set by the most recent `org-cycle' command. The
640argument is a symbol. After a global state change, it can have the values 640argument is a symbol. After a global state change, it can have the values
641`overview', `content', or `all'. After a local state change, it can have 641`overview', `content', or `all'. After a local state change, it can have
642the values `folded', `children', or `subtree'." 642the values `folded', `children', or `subtree'."
@@ -677,8 +677,8 @@ It is not recommended to change this constant.")
677(defcustom org-show-following-heading t 677(defcustom org-show-following-heading t
678 "Non-nil means, show heading following match in `org-occur'. 678 "Non-nil means, show heading following match in `org-occur'.
679When doing an `org-occur' it is useful to show the headline which 679When doing an `org-occur' it is useful to show the headline which
680follows the match, even if they do not match the regexp. This makes it 680follows the match, even if they do not match the regexp. This makes it
681easier to edit directly inside the sparse tree. However, if you use 681easier to edit directly inside the sparse tree. However, if you use
682org-occur mainly as an overview, the following headlines are 682org-occur mainly as an overview, the following headlines are
683unnecessary clutter." 683unnecessary clutter."
684 :group 'org-structure 684 :group 'org-structure
@@ -712,7 +712,7 @@ negates this setting for the duration of the command."
712 "Non-nil means, keep link in list for entire session. 712 "Non-nil means, keep link in list for entire session.
713 713
714The command `org-store-link' adds a link pointing to the current 714The command `org-store-link' adds a link pointing to the current
715location to an internal list. These links accumulate during a session. 715location to an internal list. These links accumulate during a session.
716The command `org-insert-link' can be used to insert links into any 716The command `org-insert-link' can be used to insert links into any
717Org-mode file (offering completion for all stored links). When this 717Org-mode file (offering completion for all stored links). When this
718option is nil, every link which has been inserted once using \\[org-insert-link] 718option is nil, every link which has been inserted once using \\[org-insert-link]
@@ -1124,7 +1124,7 @@ This option can also be set with the +OPTIONS line, e.g. \"::nil\"."
1124 :type 'boolean) 1124 :type 'boolean)
1125 1125
1126(defcustom org-export-with-tables t 1126(defcustom org-export-with-tables t
1127 "If non-nil, lines starting with \"|\" define a table 1127 "If non-nil, lines starting with \"|\" define a table.
1128For example: 1128For example:
1129 1129
1130 | Name | Address | Birthday | 1130 | Name | Address | Birthday |
@@ -1496,7 +1496,7 @@ The following commands are available:
1496 (save-excursion 1496 (save-excursion
1497 (goto-char (point-min)) 1497 (goto-char (point-min))
1498 (insert " -*- mode: org -*-\n\n"))) 1498 (insert " -*- mode: org -*-\n\n")))
1499 (run-hooks 'org-mode-hook) 1499 (run-hooks 'org-mode-hook) ;FIXME: Should be run-mode-hooks.
1500 (unless org-inhibit-startup 1500 (unless org-inhibit-startup
1501 (if org-startup-with-deadline-check 1501 (if org-startup-with-deadline-check
1502 (call-interactively 'org-check-deadlines) 1502 (call-interactively 'org-check-deadlines)
@@ -1565,7 +1565,7 @@ The following commands are available:
1565 (save-excursion 1565 (save-excursion
1566 (org-back-to-heading t) 1566 (org-back-to-heading t)
1567 (- (match-end 0) (match-beginning 0)))) 1567 (- (match-end 0) (match-beginning 0))))
1568 1568
1569(defvar org-font-lock-keywords nil) 1569(defvar org-font-lock-keywords nil)
1570 1570
1571(defun org-set-font-lock-defaults () 1571(defun org-set-font-lock-defaults ()
@@ -1982,7 +1982,7 @@ See also `org-promote'."
1982 1982
1983(defun org-do-promote () 1983(defun org-do-promote ()
1984 "Promote the current heading higher up the tree. 1984 "Promote the current heading higher up the tree.
1985If the region is active in t`ransient-mark-mode', promote all headings 1985If the region is active in `transient-mark-mode', promote all headings
1986in the region." 1986in the region."
1987 (interactive) 1987 (interactive)
1988 (save-excursion 1988 (save-excursion
@@ -2614,7 +2614,7 @@ but this can be configured with the variables `parse-time-months' and
2614 2614
2615While prompting, a calendar is popped up - you can also select the 2615While prompting, a calendar is popped up - you can also select the
2616date with the mouse (button 1). The calendar shows a period of three 2616date with the mouse (button 1). The calendar shows a period of three
2617month. To scroll it to other months, use the keys `>' and `<'. 2617month. To scroll it to other months, use the keys `>' and `<'.
2618If you don't like the calendar, turn it off with 2618If you don't like the calendar, turn it off with
2619 \(setq org-popup-calendar-for-date-prompt nil). 2619 \(setq org-popup-calendar-for-date-prompt nil).
2620 2620
@@ -3524,9 +3524,9 @@ With prefix ARG, go back that many times `org-agenda-ndays'."
3524 "Get the (Emacs Calendar) diary entries for DATE." 3524 "Get the (Emacs Calendar) diary entries for DATE."
3525 (let* ((fancy-diary-buffer "*temporary-fancy-diary-buffer*") 3525 (let* ((fancy-diary-buffer "*temporary-fancy-diary-buffer*")
3526 (diary-display-hook '(fancy-diary-display)) 3526 (diary-display-hook '(fancy-diary-display))
3527 (list-diary-entries-hook 3527 (list-diary-entries-hook
3528 (cons 'org-diary-default-entry list-diary-entries-hook)) 3528 (cons 'org-diary-default-entry list-diary-entries-hook))
3529 entries tod tods 3529 entries
3530 (org-disable-diary t)) 3530 (org-disable-diary t))
3531 (save-excursion 3531 (save-excursion
3532 (save-window-excursion 3532 (save-window-excursion
@@ -4367,8 +4367,7 @@ the same tree node, and the headline of the tree node in the Org-mode file."
4367 (org-agenda-error))) 4367 (org-agenda-error)))
4368 (buffer (marker-buffer marker)) 4368 (buffer (marker-buffer marker))
4369 (pos (marker-position marker))) 4369 (pos (marker-position marker)))
4370 (save-excursion 4370 (with-current-buffer buffer
4371 (set-buffer buffer)
4372 (widen) 4371 (widen)
4373 (goto-char pos) 4372 (goto-char pos)
4374 (if (not (org-at-timestamp-p)) 4373 (if (not (org-at-timestamp-p))
@@ -4866,10 +4865,10 @@ For file links, arg negates `org-line-numbers-in-file-links'."
4866 ((fboundp 'gnus-group-name) 4865 ((fboundp 'gnus-group-name)
4867 (gnus-group-name)) 4866 (gnus-group-name))
4868 (t "???")))) 4867 (t "???"))))
4869 (if (org-xor arg org-usenet-links-prefer-google) 4868 (setq link (concat (if (org-xor arg org-usenet-links-prefer-google)
4870 (setq link (format "http://groups.google.com/groups?group=%s" 4869 "http://groups.google.com/groups?group="
4871 group)) 4870 "gnus:")
4872 (setq link (concat "gnus:" group))))) 4871 group)))))
4873 4872
4874 ((memq major-mode '(gnus-summary-mode gnus-article-mode)) 4873 ((memq major-mode '(gnus-summary-mode gnus-article-mode))
4875 (and (eq major-mode 'gnus-article-mode) (gnus-article-show-summary)) 4874 (and (eq major-mode 'gnus-article-mode) (gnus-article-show-summary))
@@ -4920,6 +4919,7 @@ For file links, arg negates `org-line-numbers-in-file-links'."
4920 4919
4921(defun org-xor (a b) 4920(defun org-xor (a b)
4922 "Exclusive or." 4921 "Exclusive or."
4922 ;; (if a (not b) b)
4923 (or (and a (not b)) 4923 (or (and a (not b))
4924 (and b (not a)))) 4924 (and b (not a))))
4925 4925
@@ -4958,7 +4958,7 @@ For file links, arg negates `org-line-numbers-in-file-links'."
4958 s) 4958 s)
4959 4959
4960(defun org-insert-link (&optional complete-file) 4960(defun org-insert-link (&optional complete-file)
4961 "Insert a link. At the prompt, enter the link. 4961 "Insert a link. At the prompt, enter the link.
4962 4962
4963Completion can be used to select a link previously stored with 4963Completion can be used to select a link previously stored with
4964`org-store-link'. When the empty string is entered (i.e. if you just 4964`org-store-link'. When the empty string is entered (i.e. if you just
@@ -5586,7 +5586,7 @@ I.e. not on a hline or before the first or after the last column?"
5586 (error "Not in table data field"))) 5586 (error "Not in table data field")))
5587 5587
5588(defvar org-table-clip nil 5588(defvar org-table-clip nil
5589 "Clipboard for table regions") 5589 "Clipboard for table regions.")
5590 5590
5591(defun org-table-blank-field () 5591(defun org-table-blank-field ()
5592 "Blank the current table field or active region." 5592 "Blank the current table field or active region."
@@ -5827,7 +5827,7 @@ However, when FORCE is non-nil, create new columns if necessary."
5827 (org-table-move-row 'up)) 5827 (org-table-move-row 'up))
5828 5828
5829(defun org-table-move-row (&optional up) 5829(defun org-table-move-row (&optional up)
5830 "Move the current table line down. With arg UP, move it up." 5830 "Move the current table line down. With arg UP, move it up."
5831 (interactive "P") 5831 (interactive "P")
5832 (let ((col (current-column)) 5832 (let ((col (current-column))
5833 (pos (point)) 5833 (pos (point))
@@ -7662,7 +7662,7 @@ But it has the disadvantage, that Org-mode's HTML conversions cannot be used."
7662 (buffer-substring (point-min) (point-max)))) 7662 (buffer-substring (point-min) (point-max))))
7663 7663
7664(defun org-html-expand (string) 7664(defun org-html-expand (string)
7665 "Prepare STRING for HTML export. Applies all active conversions." 7665 "Prepare STRING for HTML export. Applies all active conversions."
7666 ;; First check if there is a link in the line - if yes, apply conversions 7666 ;; First check if there is a link in the line - if yes, apply conversions
7667 ;; only before the start of the link. 7667 ;; only before the start of the link.
7668 (let* ((m (string-match org-link-regexp string)) 7668 (let* ((m (string-match org-link-regexp string))
@@ -7697,8 +7697,8 @@ Opening delimiter is LEFT, and closing delimiter is RIGHT, both given
7697as single character strings. 7697as single character strings.
7698The regexp returned will match the entire expression including the 7698The regexp returned will match the entire expression including the
7699delimiters. It will also define a single group which contains the 7699delimiters. It will also define a single group which contains the
7700match except for the outermost delimiters. The maximum depth of 7700match except for the outermost delimiters. The maximum depth of
7701stacked delimiters is N. Escaping delimiters is not possible." 7701stacked delimiters is N. Escaping delimiters is not possible."
7702 (let* ((nothing (concat "[^" "\\" left "\\" right "]*?")) 7702 (let* ((nothing (concat "[^" "\\" left "\\" right "]*?"))
7703 (or "\\|") 7703 (or "\\|")
7704 (re nothing) 7704 (re nothing)
@@ -8549,7 +8549,7 @@ Of course, only for the old outline mode."
8549 regexp))) 8549 regexp)))
8550 8550
8551(defun org-flag-heading (flag &optional entry) 8551(defun org-flag-heading (flag &optional entry)
8552 "Flag the current heading. FLAG non-nil means make invisible. 8552 "Flag the current heading. FLAG non-nil means make invisible.
8553When ENTRY is non-nil, show the entire entry." 8553When ENTRY is non-nil, show the entire entry."
8554 (save-excursion 8554 (save-excursion
8555 (org-back-to-heading t) 8555 (org-back-to-heading t)