浏览代码

Revert "org.el (org-file-contents): Make the message more prominent"

This reverts commit 591d377e7855e6ee36fd9d8c78e262e9a57305df.
Bastien Guerry 12 年之前
父节点
当前提交
728c69df18
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      lisp/org.el

+ 3 - 4
lisp/org.el

@@ -5145,10 +5145,9 @@ Support for group tags is controlled by the option
   "Return the contents of FILE, as a string."
   (if (or (not file)
 	  (not (file-readable-p file)))
-      (if (not noerror)
-	  (error "Cannot read file \"%s\"" file)
-	(message "Cannot read file \"%s\"" file)
-	(sit-for 3))
+      (if noerror
+	  (message "Cannot read file \"%s\"" file)
+	(error "Cannot read file \"%s\"" file))
     (with-temp-buffer
       (insert-file-contents file)
       (buffer-string))))