jed-users mailing list

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

[jed-users] Re: set_buffer_backup?


On 2017-02-08 Ulli Horlacher wrote:

> There is a function set_buffer_no_backup() but no set_buffer_backup() to
> reenable backup files. 
> Why?

Not sure if this is exactly what you are after but this
function would toggle the creation of backup files on and off
upon saving the buffer.

You could insert it into your .jedrc and then maybe bind it to
a key.

  Morten

                            -------

private variable Backups = 0;

define toggle_backups ()
{
   if (Backups == 0)
     {
        _unset_buffer_flag (0x100);
        flush ("backups on");
     }
   else
     {
        _set_buffer_flag (0x100);
        flush ("backups off");
     }
                                  
   Backups = not Backups;
}


_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.


[2016 date index] [2016 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]