all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* infinite loop from unwriteable backup files
@ 2008-01-22 17:53 Ken Olum
  2008-01-22 19:13 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Ken Olum @ 2008-01-22 17:53 UTC (permalink / raw)
  To: bug-gnu-emacs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1031 bytes --]

In GNU Emacs 22.1.1 (x86_64-mandrake-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2007-09-19 on deborah.mandriva.com, modified by Mandriva

If you try to modify a file in a write-protected directory in which
there is already a backup file for the file you are editing, then
emacs goes into an infinite loop when you attempt to save the modified
buffer.  To reproduce this bug:

    mkdir test
    touch test/foo.bar
    touch test/foo.bar~
    chmod ugo-w test
    emacs test/foo.bar

Modify the buffer, type C-x C-s.  Emacs runs forever.

Enclosed below is a backtrace obtained by (previously) setting debug-on-quit and
typing C-g as it tries to save the file.

                                        Ken

----------------------------------------------------------------------

 delete-file("/home/kdo/test/foo.bar~")
  byte-code("ÂÃďˆÅ\b	ÂÆ$ˆÂ‡" [from-name to-name nil (delete-file to-name) ((file-error)) copy-file t] 5)
  backup-buffer-copy("/home/kdo/test/foo.bar" "/home/kdo/test/foo.bar~" 420)
  byte-code("\b„c

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

* Re: infinite loop from unwriteable backup files
  2008-01-22 17:53 infinite loop from unwriteable backup files Ken Olum
@ 2008-01-22 19:13 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2008-01-22 19:13 UTC (permalink / raw)
  To: Ken Olum; +Cc: bug-gnu-emacs

Ken Olum wrote:

> If you try to modify a file in a write-protected directory in which
> there is already a backup file for the file you are editing, then
> emacs goes into an infinite loop when you attempt to save the modified
> buffer.

Thanks for the report. This is already fixed. The fix will be in Emacs
22.2.




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

end of thread, other threads:[~2008-01-22 19:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-22 17:53 infinite loop from unwriteable backup files Ken Olum
2008-01-22 19:13 ` Glenn Morris

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.