Function: ido-tidy

ido-tidy is a byte-compiled function defined in ido.el.gz.

Signature

(ido-tidy)

Documentation

Pre command hook for Ido.

Source Code

;; Defined in /usr/src/emacs/lisp/ido.el.gz
(defun ido-tidy ()
  "Pre command hook for Ido."
  ;; Remove completions display, if any, prior to new user input.
  ;; Copied from `icomplete-tidy'."

  (when ido-auto-merge-timer
    (ido-trace "\n*cancel timer*" this-command)
    (cancel-timer ido-auto-merge-timer)
    (setq ido-auto-merge-timer nil))

  (when (ido-active)
    (if (bound-and-true-p ido-eoinput)
	(if (> ido-eoinput (point-max))
	    ;; Oops, got rug pulled out from under us - reinit:
	    (setq ido-eoinput (point-max))
	  (let ((inhibit-read-only t)
		(buffer-undo-list t))
	    (delete-region ido-eoinput (point-max))))

      ;; Reestablish the local variable 'cause minibuffer-setup is weird:
      (setq-local ido-eoinput 1))))