[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [PATCH 5/7] Use macro org-with-uninterned
From: |
David Maus |
Subject: |
[O] [PATCH 5/7] Use macro org-with-uninterned |
Date: |
Tue, 2 Aug 2011 11:23:38 +0200 |
* org-agenda.el (org-agenda-with-point-at-orig-entry): Use macro
org-with-uninterned.
---
lisp/org-agenda.el | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index d47013b..25a556e 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -1714,12 +1714,13 @@ Note that functions in this alist don't need to be
quoted."
If STRING is non-nil, the text property will be fetched from position 0
in that string. If STRING is nil, it will be fetched from the beginning
of the current line."
- `(let ((marker (get-text-property (if string 0 (point-at-bol))
- 'org-hd-marker string)))
- (with-current-buffer (marker-buffer marker)
- (save-excursion
- (goto-char marker)
- ,@body))))
+ (org-with-uninterned (marker)
+ `(let ((,marker (get-text-property (if string 0 (point-at-bol))
+ 'org-hd-marker string)))
+ (with-current-buffer (marker-buffer ,marker)
+ (save-excursion
+ (goto-char ,marker)
+ ,@body)))))
(defun org-add-agenda-custom-command (entry)
"Replace or add a command in `org-agenda-custom-commands'.
--
1.7.2.5
- Re: [O] [PATCH 1/7] New macro: Execute BODY in enviroment with uninterned SYMBOLS, (continued)
[O] [PATCH 2/7] New macro: Evaluate FORM in ENVIRONMENT, David Maus, 2011/08/02
[O] [PATCH 3/7] Use new macro org-with-uninterned, David Maus, 2011/08/02
[O] [PATCH 4/7] New function: Substitute posix classes in regular expression, David Maus, 2011/08/02
[O] [PATCH 5/7] Use macro org-with-uninterned,
David Maus <=
[O] [PATCH 6/7] Use org-eval-in-environment, make macros functions, David Maus, 2011/08/02
[O] [PATCH 7/7] Make org-batch-store-agenda-views a fun, use org-eval-in-environment, David Maus, 2011/08/02
Re: [O] [PATCH 0/8] Org mode macros, refactored, David Maus, 2011/08/02
Re: [O] [PATCH 0/8] Org mode macros, refactored, Štěpán Němec, 2011/08/02