On 07/18/2016 09:27 AM, Jean-Marc Lasgouttes wrote:
> Le 18/07/2016 à 11:56, Scott Kostyshak a écrit :
>> On Mon, Jul 18, 2016 at 11:13:12AM +0200, Jean-Marc Lasgouttes wrote:
>>> ... and I cannot disable it. Would it be possible to have a way to
>>> disable
>>> this feature, at least with files that are in version control
>>> systems? I get
>>
>> That would be nice indeed for files in version control systems.
>
>>> my directories polluted with these -lyxformat-xxx.lyx files, and I
>>> am not
>>> sure this makes me a happier camper.
>>
>> I think if you specify a backup directory in the paths preferences they
>> will go there. You could give e.g. /tmp if you were daring enough. Would
>> that make your camping any more enjoyable?
>
> Yes, but it feels weird to have to jump though hoops to avoid a user
> friendly feature. I can almost hear Clippy say "here, I saved that
> file for you with a nice name so that you cannot miss it" :)

Well, the names used to be shorter, and then people complained about that.

Disabling it for VC is easy. Just change this:

    bool const needBackup = lyxrc.make_backup || d->need_format_backup;

to:

    bool const needBackup = lyxrc.make_backup ||
        (d->need_format_backup && !isUnderVersionControl());

though I don't know what that last call should really be.

Richard

Reply via email to