- Subject: Re: Roadmap for 0.99-17
- From: "John E. Davis" <davis@xxxxxxxxxxxxx>
- Date: Wed, 14 Sep 2005 12:13:39 -0400
Joerg Sommer <joerg@xxxxxxxxxxxx> wrote:
>But we have one big problem: How to add an commandline option without
>patching command_line_hook() in site.sl. Is it possible for an user to
>add a command line option that is handled by a script in its .jedrc?
Consider:
grep -l foo *.c | jed --stdin-files
where stdin_files is defined in the .jedrc:
define stdin_files ()
{
variable file;
!if (bufferp ("*stdin*"))
return;
setbuf ("*stdin*");
bob ();
do
{
file = line_as_string ();
if (strlen (file))
{
() = find_file (file);
setbuf ("*stdin*");
}
}
while (down_1 ());
}
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2005 date index]
[2005 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]