unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* debug-on-error doesn't catch 'cannot write backup file'
@ 2002-12-22 22:48 Dan Jacobson
  2002-12-25  2:47 ` Richard Stallman
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Jacobson @ 2002-12-22 22:48 UTC (permalink / raw)


I did  (set-variable (quote debug-on-error) t)
but that was not enough to start the dubugger when one hit
"Cannot write backup file; backing up in %backup%~"
True, I use backup-dir.el, but those words aren't from there.
And maybe it should give the whole path for where it is putting the
backup, I can't seem to find it.  Odd too that as root I couldn't
backup to where I please.  I had used EDITOR=emacs exim -Meb ...
-- 
http://jidanni.org/ Taiwan(04)25854780

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

* Re: debug-on-error doesn't catch 'cannot write backup file'
       [not found] <mailman.530.1040602893.19936.bug-gnu-emacs@gnu.org>
@ 2002-12-23 18:41 ` Kevin Rodgers
  0 siblings, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2002-12-23 18:41 UTC (permalink / raw)


Dan Jacobson wrote:

> I did  (set-variable (quote debug-on-error) t)
> but that was not enough to start the dubugger when one hit
> "Cannot write backup file; backing up in %backup%~"


That's because Emacs only prints a message instead of signalling an error,
which would abort the backup-buffer function (and thus probably the save-buffer
function).  Perhaps backup-buffer should signal an error that is ignored by
default, but which users could explicitly un-ignore.


> True, I use backup-dir.el, but those words aren't from there.


Correct.


> And maybe it should give the whole path for where it is putting the
> backup, I can't seem to find it.


I agree, the path should not be trucated via file-name-nondirectory.

> Odd too that as root I couldn't
> backup to where I please.  I had used EDITOR=emacs exim -Meb ...

Indeed.  It would take some debugging to first determine which function in

backup-buffer is signalling the error that is caught and then reported via
the "Cannot write backup file" message.


-- 
<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;">Kevin Rodgers</a>

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

* Re: debug-on-error doesn't catch 'cannot write backup file'
  2002-12-22 22:48 Dan Jacobson
@ 2002-12-25  2:47 ` Richard Stallman
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Stallman @ 2002-12-25  2:47 UTC (permalink / raw)
  Cc: bug-gnu-emacs

    I did  (set-variable (quote debug-on-error) t)
    but that was not enough to start the dubugger when one hit
    "Cannot write backup file; backing up in %backup%~"

That is not an error.  If it were an error, it would make the command
fail, and that is not desirable.

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

end of thread, other threads:[~2002-12-25  2:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.530.1040602893.19936.bug-gnu-emacs@gnu.org>
2002-12-23 18:41 ` debug-on-error doesn't catch 'cannot write backup file' Kevin Rodgers
2002-12-22 22:48 Dan Jacobson
2002-12-25  2:47 ` 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).