tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tramp-tramp-file-p


From: Kai Großjohann
Subject: Re: tramp-tramp-file-p
Date: Sat, 04 Jan 2003 11:05:41 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu)

address@hidden (Mark A. Hershberger) writes:

> (defun tramp-tramp-file-p (name)
>   "Return t iff NAME is a tramp file."
>   (save-match-data
>     (not (null (string-match tramp-file-name-regexp name)))))
>
> Without the surrounding "(not (null))", it returns 0 which is interpreted as
> false.

Well, in Emacs Lisp, 0 is true, so maybe the place where it is
interpreted should be fixed, rather than tramp-tramp-file-p.

Do you have more details?
-- 
Ambibibentists unite!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]