unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thievol@posteo.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "Alfred M. Szmidt" <ams@gnu.org>,  emacs-devel@gnu.org
Subject: Re: c library for handling backup files?
Date: Wed, 21 Sep 2022 19:11:47 +0000	[thread overview]
Message-ID: <87r104y230.fsf@posteo.net> (raw)
In-Reply-To: <837d1wvpff.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 21 Sep 2022 16:15:48 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

>> From: "Alfred M. Szmidt" <ams@gnu.org>
>> Date: Wed, 21 Sep 2022 08:34:35 -0400
>> 
>> Does anyone know of a C library for handling Emacs-like backup files?
>> E.g., if writing a file, the function would do the right thing.
>
> Coreutils do that, no?  E.g., "cp -b".

dired-async.el provides a backup function similar to
cp -f --backup=numbered from to.

-- 
Thierry



  reply	other threads:[~2022-09-21 19:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-21 12:34 c library for handling backup files? Alfred M. Szmidt
2022-09-21 13:06 ` Philip Kaludercic
2022-09-21 13:14 ` Andreas Schwab
2022-09-21 13:29   ` Alfred M. Szmidt
2022-09-21 13:15 ` Eli Zaretskii
2022-09-21 19:11   ` Thierry Volpiatto [this message]
2022-09-21 19:21     ` Alfred M. Szmidt
2022-09-21 20:50       ` Thierry Volpiatto
2022-09-22  4:43       ` tomas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r104y230.fsf@posteo.net \
    --to=thievol@posteo.net \
    --cc=ams@gnu.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).