unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* loop in backup-copy-buffer
@ 2007-08-21 21:59 Glenn Morris
  2007-08-22  3:15 ` Richard Stallman
  0 siblings, 1 reply; 7+ messages in thread
From: Glenn Morris @ 2007-08-21 21:59 UTC (permalink / raw)
  To: Richard Stallman; +Cc: martin rudalics, emacs-devel


You added the (potentially infinite) loop in backup-buffer-copy a few
years ago. Looks like it was adapted from make-temp-name. I can see it
might make sense to loop while trying to make a tempfile name, but was
there ever a case where this was found to be necessary when backing
up? Can we just get rid of this loop? The ChangeLog entry is not
helpful as to why such a loop might be needed.



2005-04-23  Richard M. Stallman  <rms@gnu.org>

            * files.el (read-directory-name): Always pass non-nil
            DEFAULT-FILENAME arg to read-file-name.
            (backup-buffer-copy, basic-save-buffer-2): Take care
            against writing thru an unexpected existing symlink.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-08-25 20:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-21 21:59 loop in backup-copy-buffer Glenn Morris
2007-08-22  3:15 ` Richard Stallman
2007-08-22  3:55   ` Glenn Morris
2007-08-23 21:18   ` Stefan Monnier
2007-08-24 16:10     ` Richard Stallman
2007-08-24 17:42       ` Stefan Monnier
2007-08-25 20:52         ` Richard Stallman

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).