瀏覽代碼

add variable isdcv-interval

pull/1/head
10sr 12 年之前
父節點
當前提交
a8a48616fa
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. +4
    -1
      emacs.el

+ 4
- 1
emacs.el 查看文件

@@ -2336,6 +2336,9 @@ this is test, does not rename files."
(defvar isdcv-prompt "> " (defvar isdcv-prompt "> "
"Prompt string for isdcv input.") "Prompt string for isdcv input.")


(defvar isdcv-interval 0.5
"Time in second to show sdcv result for current input.")

(defvar isdcv-current-prompt-point nil (defvar isdcv-current-prompt-point nil
"Point of beginning of current prompt.") "Point of beginning of current prompt.")
(make-variable-buffer-local 'isdcv--current-prompt-point) (make-variable-buffer-local 'isdcv--current-prompt-point)
@@ -2391,7 +2394,7 @@ Freeze current input and show next prompt."
(current-buffer)) (current-buffer))
;; do not duplicate timer ;; do not duplicate timer
(not isdcv--timer) (not isdcv--timer)
(setq isdcv--timer (run-with-idle-timer 1
(setq isdcv--timer (run-with-idle-timer isdcv-interval
t t
'isdcv--timer-function)))) 'isdcv--timer-function))))




Loading…
取消
儲存