Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
eab01edb
Commit
eab01edb
authored
Jul 17, 2007
by
Michael Albinus
Browse files
* files.texi (Magic File Names): Introduce optional parameter
IDENTIFICATION for `file-remote-p'.
parent
ea382aff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
lispref/ChangeLog
lispref/ChangeLog
+5
-0
lispref/files.texi
lispref/files.texi
+8
-1
No files found.
lispref/ChangeLog
View file @
eab01edb
2007
-
07
-
17
Michael
Albinus
<
michael
.
albinus
@
gmx
.
de
>
*
files
.
texi
(
Magic
File
Names
):
Introduce
optional
parameter
IDENTIFICATION
for
`
file
-
remote
-
p
'.
2007-07-14 Richard Stallman <rms@gnu.org>
* control.texi (Handling Errors): Document `debug'
in
handler
list
.
...
...
lispref/files.texi
View file @
eab01edb
...
...
@@ -2768,7 +2768,7 @@ nothing and returns @code{nil}. Otherwise it returns the file name
of
the
local
copy
file
.
@
end
defun
@
defun
file
-
remote
-
p
filename
&
optional
connected
@
defun
file
-
remote
-
p
filename
&
optional
identification
connected
This
function
tests
whether
@
var
{
filename
}
is
a
remote
file
.
If
@
var
{
filename
}
is
local
(
not
remote
),
the
return
value
is
@
code
{
nil
}.
If
@
var
{
filename
}
is
indeed
remote
,
the
return
value
is
a
string
that
...
...
@@ -2786,6 +2786,13 @@ example, that it is possible to start a remote process accessing both
files
at
the
same
time
.
Implementors
of
file
handlers
need
to
ensure
this
principle
is
valid
.
@
var
{
identification
}
specifies
which
part
of
the
identifier
shall
be
returned
as
string
.
@
var
{
identification
}
can
be
the
symbol
@
code
{
method
},
@
code
{
user
}
or
@
code
{
host
};
any
other
value
is
handled
like
@
code
{
nil
}
and
means
to
return
the
complete
identifier
string
.
In
the
example
above
,
the
remote
@
code
{
user
}
identifier
string
would
be
@
code
{
root
}.
If
@
var
{
connected
}
is
non
-@
code
{
nil
},
this
function
returns
@
code
{
nil
}
even
if
@
var
{
filename
}
is
remote
,
if
Emacs
has
no
network
connection
to
its
host
.
This
is
useful
when
you
want
to
avoid
the
delay
of
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment