* How to conduct common file tests in elisp
@ 2008-12-18 4:17 Harry Putnam
2008-12-18 4:24 ` Eli Zaretskii
0 siblings, 1 reply; 6+ messages in thread
From: Harry Putnam @ 2008-12-18 4:17 UTC (permalink / raw)
To: help-gnu-emacs
I'm attempting to look up in the elisp manual how to conduct a
standard file test.
It is not easy to find.
I've tried index search for `file test' <no hits>
Manual search with the common C-s search of the table of contents in
the info manual for `test'. None of the hits were about file tests.
And finally `s' search which pours through the whole manual on string
file.*test.. again none of the hits were about standard file tests
like -f file, -d directory, -r file, -x file etc etc.
How is it done?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to conduct common file tests in elisp
2008-12-18 4:17 Harry Putnam
@ 2008-12-18 4:24 ` Eli Zaretskii
2008-12-18 9:10 ` Peter Dyballa
2008-12-18 22:59 ` Harry Putnam
0 siblings, 2 replies; 6+ messages in thread
From: Eli Zaretskii @ 2008-12-18 4:24 UTC (permalink / raw)
To: help-gnu-emacs
> From: Harry Putnam <reader@newsguy.com>
> Date: Wed, 17 Dec 2008 22:17:21 -0600
>
> I'm attempting to look up in the elisp manual how to conduct a
> standard file test.
What is a "standard file test"?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to conduct common file tests in elisp
2008-12-18 4:24 ` Eli Zaretskii
@ 2008-12-18 9:10 ` Peter Dyballa
2008-12-18 22:59 ` Harry Putnam
1 sibling, 0 replies; 6+ messages in thread
From: Peter Dyballa @ 2008-12-18 9:10 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: help-gnu-emacs
Am 18.12.2008 um 05:24 schrieb Eli Zaretskii:
>> From: Harry Putnam <reader@newsguy.com>
>> Date: Wed, 17 Dec 2008 22:17:21 -0600
>>
>> I'm attempting to look up in the elisp manual how to conduct a
>> standard file test.
>
> What is a "standard file test"?
>
The Bourne shell test command, I presume. Exists, is file or
directory or symbolic link, is readable or writable or executable,
has zero size ...
--
Greetings
Pete
Windows, c'est un peu comme le beaujolais nouveau: à chaque nouvelle
cuvée on sait que ce sera dégueulasse, mais on en prend quand même,
par masochisme.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to conduct common file tests in elisp
[not found] <mailman.3009.1229573856.26697.help-gnu-emacs@gnu.org>
@ 2008-12-18 9:24 ` Andreas Politz
0 siblings, 0 replies; 6+ messages in thread
From: Andreas Politz @ 2008-12-18 9:24 UTC (permalink / raw)
To: help-gnu-emacs
Harry Putnam wrote:
> I'm attempting to look up in the elisp manual how to conduct a
> standard file test.
>
> It is not easy to find.
>
> I've tried index search for `file test' <no hits>
>
> Manual search with the common C-s search of the table of contents in
> the info manual for `test'. None of the hits were about file tests.
>
> And finally `s' search which pours through the whole manual on string
> file.*test.. again none of the hits were about standard file tests
> like -f file, -d directory, -r file, -x file etc etc.
>
> How is it done?
>
>
>
It's in here :
(info "(elisp)Information about Files")
Widening your search and starting in the menu could
probably get you there.
-ap
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to conduct common file tests in elisp
2008-12-18 4:24 ` Eli Zaretskii
2008-12-18 9:10 ` Peter Dyballa
@ 2008-12-18 22:59 ` Harry Putnam
2008-12-19 7:34 ` Eli Zaretskii
1 sibling, 1 reply; 6+ messages in thread
From: Harry Putnam @ 2008-12-18 22:59 UTC (permalink / raw)
To: help-gnu-emacs
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Harry Putnam <reader@newsguy.com>
>> Date: Wed, 17 Dec 2008 22:17:21 -0600
>>
>> I'm attempting to look up in the elisp manual how to conduct a
>> standard file test.
>
> What is a "standard file test"?
The few languages or almost languages like shell scripting, awk, perl
and python have some way to test the properties of files.
I gave several examples of what I was after:
> like -f file, -d directory, -r file, -x file etc etc.
Standard shell, perl, python tests all based on bourne shell I guess.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to conduct common file tests in elisp
2008-12-18 22:59 ` Harry Putnam
@ 2008-12-19 7:34 ` Eli Zaretskii
0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2008-12-19 7:34 UTC (permalink / raw)
To: help-gnu-emacs
> From: Harry Putnam <reader@newsguy.com>
> Date: Thu, 18 Dec 2008 16:59:56 -0600
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> >> From: Harry Putnam <reader@newsguy.com>
> >> Date: Wed, 17 Dec 2008 22:17:21 -0600
> >>
> >> I'm attempting to look up in the elisp manual how to conduct a
> >> standard file test.
> >
> > What is a "standard file test"?
>
> The few languages or almost languages like shell scripting, awk, perl
> and python have some way to test the properties of files.
>
> I gave several examples of what I was after:
>
> > like -f file, -d directory, -r file, -x file etc etc.
Then using "test" as the main keyword to look in the manual was not a
good idea. Something like "i file TAB" would bring you a list of
topics, one of which is "file, information about", which is what you
want.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-12-19 7:34 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.3009.1229573856.26697.help-gnu-emacs@gnu.org>
2008-12-18 9:24 ` How to conduct common file tests in elisp Andreas Politz
2008-12-18 4:17 Harry Putnam
2008-12-18 4:24 ` Eli Zaretskii
2008-12-18 9:10 ` Peter Dyballa
2008-12-18 22:59 ` Harry Putnam
2008-12-19 7:34 ` Eli Zaretskii
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).