浏览代码

Merge branch 'maint'

Bastien Guerry 11 年之前
父节点
当前提交
914f3f88a7
共有 1 个文件被更改,包括 8 次插入10 次删除
  1. 8 10
      lisp/org.el

+ 8 - 10
lisp/org.el

@@ -20148,21 +20148,19 @@ Depending on context, this does one of the following:
   "Change timestamps synchronously up in CLOCK log lines.
   "Change timestamps synchronously up in CLOCK log lines.
 Optional argument N tells to change by that many units."
 Optional argument N tells to change by that many units."
   (interactive "P")
   (interactive "P")
-  (cond ((and (not org-support-shift-select)
-	      (org-at-clock-log-p)
-	      (org-at-timestamp-p t))
-	 (org-clock-timestamps-up n))
-	(t (org-shiftselect-error))))
+  (if (and (org-at-clock-log-p) (org-at-timestamp-p t))
+      (let (org-support-shift-select)
+	(org-clock-timestamps-up n))
+    (user-error "Not at a clock log")))
 
 
 (defun org-shiftcontroldown (&optional n)
 (defun org-shiftcontroldown (&optional n)
   "Change timestamps synchronously down in CLOCK log lines.
   "Change timestamps synchronously down in CLOCK log lines.
 Optional argument N tells to change by that many units."
 Optional argument N tells to change by that many units."
   (interactive "P")
   (interactive "P")
-  (cond ((and (not org-support-shift-select)
-	      (org-at-clock-log-p)
-	      (org-at-timestamp-p t))
-	 (org-clock-timestamps-down n))
-	(t (org-shiftselect-error))))
+  (if (and (org-at-clock-log-p) (org-at-timestamp-p t))
+      (let (org-support-shift-select)
+	(org-clock-timestamps-down n))
+    (user-error "Not at a clock log")))
 
 
 (defun org-ctrl-c-ret ()
 (defun org-ctrl-c-ret ()
   "Call `org-table-hline-and-move' or `org-insert-heading' dep. on context."
   "Call `org-table-hline-and-move' or `org-insert-heading' dep. on context."