This commit is contained in:
Carsten Dominik 2008-04-10 14:50:39 +02:00
parent 35e2df38e4
commit 1018c67ebb

View file

@ -530,7 +530,8 @@ the currently selected interval size."
(and (memq dir '(left down)) (setq n (- n))) (and (memq dir '(left down)) (setq n (- n)))
(save-excursion (save-excursion
(goto-char (point-at-bol)) (goto-char (point-at-bol))
(when (looking-at "#\\+BEGIN: clocktable\\>.*?:block[ \t]+\\(\\S-+\\)") (if (not (looking-at "#\\+BEGIN: clocktable\\>.*?:block[ \t]+\\(\\S-+\\)"))
(error "Line needs a :block definition before this command works")
(let* ((b (match-beginning 1)) (e (match-end 1)) (let* ((b (match-beginning 1)) (e (match-end 1))
(s (match-string 1)) (s (match-string 1))
block shift ins y mw d date wp m) block shift ins y mw d date wp m)