From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: debug-on-error doesn't catch 'cannot write backup file' Date: Mon, 23 Dec 2002 11:41:19 -0700 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3E0758CF.5050604@ihs.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1040669047 13976 80.91.224.249 (23 Dec 2002 18:44:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 23 Dec 2002 18:44:07 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18QXY9-0003br-00 for ; Mon, 23 Dec 2002 19:43:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18QXWz-0008J0-07 for gnu-bug-gnu-emacs@m.gmane.org; Mon, 23 Dec 2002 13:42:25 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18QXWY-0008HZ-00 for bug-gnu-emacs@prep.ai.mit.edu; Mon, 23 Dec 2002 13:41:58 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18QXWE-0007qk-00 for bug-gnu-emacs@prep.ai.mit.edu; Mon, 23 Dec 2002 13:41:44 -0500 Original-Received: from trinity.ranger.supernews.net ([216.168.1.22] helo=trinity.supernews.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18QXWD-0007bG-00 for bug-gnu-emacs@prep.ai.mit.edu; Mon, 23 Dec 2002 13:41:37 -0500 Original-Received: from mail.fu-berlin.de ([160.45.11.165] ident=root) by trinity.supernews.net with esmtp (Exim 3.36 #1) id 18QXVw-000LUb-00 for gnu-emacs-bug@moderators.isc.org; Mon, 23 Dec 2002 18:41:20 +0000 Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Mon, 23 Dec 2002 19:41:18 +0100 (MET) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Mon, 23 Dec 2002 19:41:18 +0100 (MET) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 37 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: fu-berlin.de 1040668878 5372528 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4086 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4086 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. -- Kevin Rodgers