Commits

Stephen Weeks committed da59355

turned off emacs logging in omake mode

  • Participants
  • Parent commits 9ba98a2

Comments (0)

Files changed (1)

elisp/omake/omake-server.el

 
 ;; [2012-08-13 10:38:38.719056]
 (defun Omake.Server.logf (fmt &rest rest)
-  ;; Write to the mode log buffer
-  (apply 'Log.printf (cons (Omake.Buffer.get 'mode-log) (cons fmt rest)))
-  (with-temp-buffer
-  ;; Write to the log file (with timestamp)
-    (let* ((time (format-time-string "[%Y-%m-%d %H:%M:%S] "))
-           (fmt (concat time fmt)))
-      (insert (apply 'format (cons fmt rest)) "\n")
-      (write-region nil nil (Omake.File.emacs-log) t 'no-message))))
+  ;; CR sweeks: turned off logging because it interferes with emacs's keystroke
+  ;; responsiveness.
+  (when nil
+    ;; Write to the mode log buffer
+    (apply 'Log.printf (cons (Omake.Buffer.get 'mode-log) (cons fmt rest)))
+    (with-temp-buffer
+      ;; Write to the log file (with timestamp)
+      (let* ((time (format-time-string "[%Y-%m-%d %H:%M:%S] "))
+             (fmt (concat time fmt)))
+        (insert (apply 'format (cons fmt rest)) "\n")
+        (write-region nil nil (Omake.File.emacs-log) t 'no-message)))))
 ;; (Omake.Server.logf "sean: %s %d" "abc" 8)
 
 (defun Omake.Server.running-p ()