Function: ange-ftp-add-dumb-unix-host

ange-ftp-add-dumb-unix-host is an interactive and byte-compiled function defined in ange-ftp.el.gz.

Signature

(ange-ftp-add-dumb-unix-host HOST)

Documentation

Interactively add a given HOST to ange-ftp-dumb-unix-host-regexp.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/net/ange-ftp.el.gz
(defun ange-ftp-add-dumb-unix-host (host)
  "Interactively add a given HOST to `ange-ftp-dumb-unix-host-regexp'."
  (interactive
   (list (read-string "Host: "
		      (let ((name (or (buffer-file-name) default-directory)))
			(and name (car (ange-ftp-ftp-name name)))))))
  (if (not (ange-ftp-dumb-unix-host host))
      (setq ange-ftp-dumb-unix-host-regexp
	    (concat "^" (regexp-quote host) "$"
		    (and ange-ftp-dumb-unix-host-regexp "\\|")
		    ange-ftp-dumb-unix-host-regexp)
	    ange-ftp-host-cache nil)))