• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/emacs-93/emacs/lisp/net/

Lines Matching defs:exists

564     that \"/bin/sh\" exists on all Unixen, this might not be true for
704 (and (fboundp 'w32-window-exists-p)
705 (funcall 'w32-window-exists-p "Pageant" "Pageant")))
716 ;; Under Emacs 20, `executable-find' does not exists. So we
787 names from FILE for completion. The following predefined FUNCTIONs exists:
1647 (defvar tramp-file-exists-command nil
1648 "Command to use for checking if a file exists.
1942 (file-exists-p . tramp-handle-file-exists-p)
2127 (file-exists-p (nth 1 (car v))))
2143 (filename linkname &optional ok-if-already-exists)
2161 ;; Do the 'confirm if exists' thing.
2162 (when (file-exists-p linkname)
2164 (if (or (null ok-if-already-exists) ; not allowed to exist
2165 (and (numberp ok-if-already-exists)
2168 "File %s already exists; make it a link anyway? "
2170 (signal 'file-already-exists (list "File already exists" l-localname))
2198 (cond ((file-exists-p (concat file ".elc"))
2200 ((file-exists-p (concat file ".el"))
2210 (when (not (file-exists-p file))
2212 (if (not (file-exists-p file))
2324 (defun tramp-handle-file-exists-p (filename)
2325 "Like `file-exists-p' for tramp files."
2331 (tramp-get-file-exists-command multi-method method user host)
2347 (when (file-exists-p filename)
2348 ;; file exists, find out stuff
2472 ;; '(-1 65535) means file doesn't exists yet.
2518 ;; file exists, and has a known modtime.
2586 (cond ((not (file-exists-p file1))
2588 ((not (file-exists-p file2))
2638 (when (file-exists-p filename)
2664 (and (file-exists-p filename)
2682 (if (file-exists-p filename)
2792 (when (tramp-handle-file-exists-p directory)
2890 (filename newname &optional ok-if-already-exists)
2903 (when (and (not ok-if-already-exists)
2904 (file-exists-p newname)
2905 (not (numberp ok-if-already-exists))
2908 "File %s already exists; make it a new name anyway? "
2910 (error "add-name-to-file: file %s already exists" newname))
2920 (filename newname &optional ok-if-already-exists keep-date)
2930 'copy filename newname ok-if-already-exists keep-date)
2933 (list filename newname ok-if-already-exists keep-date))))
2936 (filename newname &optional ok-if-already-exists)
2946 'rename filename newname ok-if-already-exists)
2948 (list filename newname ok-if-already-exists))))
2951 (op filename newname &optional ok-if-already-exists keep-date)
2956 OK-IF-ALREADY-EXISTS means don't barf if NEWNAME exists already.
2965 (unless ok-if-already-exists
2966 (when (file-exists-p newname)
2967 (signal 'file-already-exists
2968 (list "File already exists" newname))))
3316 (or (file-exists-p filename)
3327 (and (file-exists-p filename)
3407 (cond ((file-exists-p (concat file ".gz"))
3409 ((file-exists-p (concat file ".z"))
3796 (unless (file-exists-p filename)
3885 (if (not (file-exists-p filename))
3985 (unless (file-exists-p tramp-auto-save-directory)
4035 confirm (file-exists-p filename))
4036 (unless (y-or-n-p (format "File %s exists; overwrite anyway? "
4271 'file-directory-p 'file-executable-p 'file-exists-p
4330 "Return foreign file name handler if exists."
4347 Falls back to normal file name handler if no tramp file name handler exists."
4361 (memq operation '(file-exists-p file-directory-p)))
4398 Fall back to normal file name handler if no Tramp handler exists."
4416 Falls back to normal file name handler if no tramp file name handler exists."
5266 I.e., for each directory in DIRLIST, it is tested whether it exists and if
5272 (file-exists-p
5287 (defun tramp-find-file-exists-command (multi-method method user host)
5288 "Find a command on the remote host for checking if a file exists.
5290 file exists and nonzero exit status otherwise."
5291 (make-local-variable 'tramp-file-exists-command)
5292 (tramp-message 9 "Finding command to check if file exists")
5296 "/")) ;assume this file always exists
5300 "/ this file does not exist "))) ;assume this never exists
5303 ;; true, as the root directory always exists. And then we run
5319 (and (setq tramp-file-exists-command "test -e %s")
5320 (file-exists-p existing)
5321 (not (file-exists-p nonexisting)))
5322 (and (setq tramp-file-exists-command "/bin/test -e %s")
5323 (file-exists-p existing)
5324 (not (file-exists-p nonexisting)))
5325 (and (setq tramp-file-exists-command "/usr/bin/test -e %s")
5326 (file-exists-p existing)
5327 (not (file-exists-p nonexisting)))
5328 (and (setq tramp-file-exists-command "ls -d %s")
5329 (file-exists-p existing)
5330 (not (file-exists-p nonexisting))))
5331 (error "Couldn't find command to check if file exists"))))
6250 ;; checks if a file exists. This is done because Tramp wants to use
6272 (tramp-find-file-exists-command multi-method method user host)
7138 (defun tramp-get-file-exists-command (multi-method method user host)
7143 tramp-file-exists-command)
7227 (defun tramp-exists-file-name-handler (operation &rest args)
7242 (unless (tramp-exists-file-name-handler 'make-auto-save-file-name)
7262 (unless (file-exists-p buffer-auto-save-file-name)
7316 ((file-exists-p "c:/temp") (file-name-as-directory "c:/temp"))
7530 tramp-file-exists-command