jed-users mailing list

[2018 Date Index] [2018 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [jed-users] Only edit original file


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]