diff options
author | Bastien Guerry <bzg@altern.org> | 2013-02-24 19:16:33 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2013-02-24 19:16:33 +0100 |
commit | ac44a7af0629cbc201654807709f4c364fe6ed4d (patch) | |
tree | 2631987cc8c2acdcecf3bddd11b086d1171c78c6 | |
parent | b6b509bfd458cace38b9cb7e17b18d3f146b0c1a (diff) | |
download | org-mode-ac44a7af0629cbc201654807709f4c364fe6ed4d.tar.gz |
Move `org-at-clock-log-p' from org-clock.el to org.el
* org.el (org-at-clock-log-p): Delete.
* org-clock.el (org-at-clock-log-p): Move here.
-rw-r--r-- | lisp/org-clock.el | 6 | ||||
-rw-r--r-- | lisp/org.el | 9 |
2 files changed, 7 insertions, 8 deletions
diff --git a/lisp/org-clock.el b/lisp/org-clock.el index bc0c431..a536d02 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -1545,12 +1545,6 @@ to, overriding the existing value of `org-clock-out-switch-to-state'." (org-remove-empty-drawer-at clock-drawer (point)) (forward-line 1)))))) -(defun org-at-clock-log-p nil - "Is the cursor on the clock log line?" - (save-excursion - (move-beginning-of-line 1) - (looking-at "^[ \t]*CLOCK:"))) - (defun org-clock-timestamps-up nil "Increase CLOCK timestamps at cursor." (interactive) diff --git a/lisp/org.el b/lisp/org.el index 2173656..6518cab 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -114,7 +114,6 @@ Stars are put in group 1 and the trimmed body in group 2.") (declare-function org-inlinetask-outline-regexp "org-inlinetask" ()) (declare-function org-inlinetask-toggle-visibility "org-inlinetask" ()) (declare-function org-pop-to-buffer-same-window "org-compat" (&optional buffer-or-name norecord label)) -(declare-function org-at-clock-log-p "org-clock" ()) (declare-function org-clock-timestamps-up "org-clock" ()) (declare-function org-clock-timestamps-down "org-clock" ()) (declare-function org-clock-sum-current-item "org-clock" (&optional tstart)) @@ -3917,6 +3916,7 @@ If TABLE-TYPE is non-nil, also check for table.el-type tables." (save-excursion (goto-char (org-table-begin 'any)) (looking-at org-table1-hline-regexp)))) + (defun org-table-recognize-table.el () "If there is a table.el table nearby, recognize it and move into it." (if org-table-tab-recognizes-table.el @@ -3952,7 +3952,6 @@ If TABLE-TYPE is non-nil, also check for table.el-type tables." nil)) (defvar org-table-clean-did-remove-column nil) - (defun org-table-map-tables (function &optional quietly) "Apply FUNCTION to the start of all tables in the buffer." (save-excursion @@ -16411,6 +16410,12 @@ With prefix ARG, change that many days." (message "Timestamp is now %sactive" (if (equal (char-after beg) ?<) "" "in"))))) +(defun org-at-clock-log-p nil + "Is the cursor on the clock log line?" + (save-excursion + (move-beginning-of-line 1) + (looking-at "^[ \t]*CLOCK:"))) + (defvar org-clock-history) ; defined in org-clock.el (defvar org-clock-adjust-closest nil) ; defined in org-clock.el (defun org-timestamp-change (n &optional what updown) |