2014-10-16 4 views
0

시계 위치 변수 org-clock-into-drawer를 로컬에서 설정 해제 할 가능성이 있습니까? 저는 서랍에서 대부분의 시간을 가두 고 싶습니다. 나는 동작을 설정 해제 할로컬에서 설정을 해제하는 방법

* Maintenance 
:LOGBOOK: 
CLOCK: [2014-10-16 Thu 08:48]--[2014-10-16 Thu 09:08] => 0:20 
CLOCK: [2014-10-15 Wed 08:51]--[2014-10-15 Wed 09:01] => 0:10 
CLOCK: [2014-10-14 Tue 08:40]--[2014-10-14 Tue 08:45] => 0:05 
CLOCK: [2014-10-13 Mon 08:41]--[2014-10-13 Mon 08:59] => 0:18 
:END:  

을 :하지만 내 일반 추적 파일에 대한 I는 전 세계적으로

(setq org-drawers (quote ("PROPERTIES" "LOGBOOK")))  ;; Separate drawers for clocking and logs 
(setq org-clock-into-drawer t) ;; Save clock data and state changes and notes in the LOGBOOK drawer 

이런 식으로 뭔가가 발생합니다 클록 킹 동작을 활성화 서랍

에 시계를 원하지 않는다 특정 파일. Clocking-commands을 바탕으로 나는 #+PROPERTY CLOCK_INTO_DRAWER: nil 같은 다음과 같은 출력

* Maintenance 
CLOCK: [2014-10-16 Thu 08:48]--[2014-10-16 Thu 09:08] => 0:20 
CLOCK: [2014-10-15 Wed 08:51]--[2014-10-15 Wed 09:01] => 0:10 
CLOCK: [2014-10-14 Tue 08:40]--[2014-10-14 Tue 08:45] => 0:05 
CLOCK: [2014-10-13 Mon 08:41]--[2014-10-13 Mon 08:59] => 0:18 

이 발생할 것으로 예상하지만 의도 한대로 작동하지 않을 것 같다.

답변

2

저에게는 버그 인 것 같습니다. 당신은 위의 라인이 사용한 것보다 약간 다른 것을

#+PROPERTY: CLOCK_INTO_DRAWER nil 

참고로 org-clock-into-drawer를 오버라이드 (override) 할 수 있어야하지만, 여전히 작동하지 않습니다. 문제는 org-clock-into-drawer입니다. 이 변경 사항을 조직 모드 목록 에 보내 겠지만이 작업을 즉시 끝내려면 패치를 통해 문제를 해결해야합니다.

diff --git c/lisp/org-clock.el w/lisp/org-clock.el 
index 2ffcbfa..092a6aa 100644 
--- c/lisp/org-clock.el 
+++ w/lisp/org-clock.el 
@@ -74,13 +74,15 @@ (defun org-clock-into-drawer() 
it will be used instead of the default value. 
The default is the value of the customizable variable `org-clock-into-drawer', 
which see." 
- (let ((p (org-entry-get nil "CLOCK_INTO_DRAWER" 'inherit)) 
- (q (org-entry-get nil "LOG_INTO_DRAWER" 'inherit))) 
- (cond 
-  ((or (not (or p q)) (equal p "nil") (equal q "nil")) org-clock-into-drawer) 
-  ((or (equal p "t") (equal q "t")) "LOGBOOK") 
-  ((not p) q) 
-  (t p)))) 
+ (let ((p (org-entry-get nil "CLOCK_INTO_DRAWER" 'inherit t)) 
+  (q (org-entry-get nil "LOG_INTO_DRAWER" 'inherit t))) 
+ (cond ((equal p "nil") nil) 
+   ((equal p "t") t) 
+   (p) 
+   ((equal q "nil") nil) 
+   ((equal q "t") t) 
+   (q) 
+   (t org-clock-into-drawer)))) 

(defcustom org-clock-out-when-done t 
    "When non-nil, clock will be stopped when the clocked entry is marked DONE. 

편집 : 내가 this discussion에 따라 패치를 업데이트했습니다. 픽스는 커밋 70e0b08e입니다.

+0

좋아요! 나는 패치를 적용했고, 그것은 정말로 나의 문제를 해결했다. 고마워, 스테판 – Crest