Function: ido-magic-forward-char

ido-magic-forward-char is an interactive and byte-compiled function defined in ido.el.gz.

Signature

(ido-magic-forward-char ARG)

Documentation

Move forward in user input or perform magic action.

If no user input is present, or at end of input, perform magic actions:
C-x C-b ... C-f switch to ido-find-file.
C-x C-f ... C-f fallback to non-Ido find-file.
C-x C-d ... C-f fallback to non-Ido brief dired.
C-x d ... C-f fallback to non-Ido dired.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/ido.el.gz
;;; Magic C-f

(defun ido-magic-forward-char (arg)
  "Move forward in user input or perform magic action.
If no user input is present, or at end of input, perform magic actions:
C-x C-b ... C-f  switch to `ido-find-file'.
C-x C-f ... C-f  fallback to non-Ido `find-file'.
C-x C-d ... C-f  fallback to non-Ido brief `dired'.
C-x d ... C-f    fallback to non-Ido `dired'."
  (interactive "P")
  (cond
   ((or arg (not (eobp)))
    (forward-char (min (prefix-numeric-value arg)
		       (- (point-max) (point)))))
   ((memq ido-cur-item '(file dir))
    (ido-fallback-command))
   (ido-context-switch-command
    (call-interactively ido-context-switch-command))
   ((eq ido-cur-item 'buffer)
    (ido-enter-find-file))))