- Subject: Re: [jed-users] Only edit original file
- From: jed@xxxxxxxxxxx (John E. Davis)
- Date: Fri, 23 Nov 2018 12:15:19 -0500
Martin Klaiber <martinkl@xxxxxxxxxxxxxxxxxx> wrote:
> when editing files with complex names I would like to use wildcards.
> The problem is that jed sometimes selects the backup file.
You might try adding the following to your .jedrc file:
define startup_hook ()
{
variable newb = "*scratch*";
loop (buffer_list ())
{
variable b = ();
variable file = buffer_filename (b);
if (file[-1] == '~')
{
if (b == whatbuf ()) sw2buf(newb);
delbuf (b);
}
else if (file != "") newb = b;
}
}
Thanks, --John
_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.
[2018 date index]
[2018 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]