🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.vm.bug
Article #692

Re: Can't launch attachments with "spaces" in file name

#692
From: newsspam5REMOVETHIS
Date: Thu, 22 Jan 2004 16:03
58 lines
3590 bytes
kosowsky@consult.pretender (Jeffrey J. Kosowsky) writes:

> newsspam5REMOVETHIS@robf.de writes:
>> kosowsky@consult.pretender (Jeffrey J. Kosowsky) writes:
>> > Kevin Rodgers <ihs_4664@yahoo.com> writes:
>> >> Jeffrey J. Kosowsky wrote:
>> >> 
>> >> > However, I have now noticed another problem. If there already is
>> >> > another version of the file in the temp directory with the same name,
>> >> > then vm just hangs in opening the file. A better alternative might
>> >> > be to first check if the stored file is
>> >> > identical. If so, then just open the existing temp file, if not then
>> >> > store the file with a modified file name, such as <filename>.1
>> >> > In any case the current "hanging" response should be fixed, right?
>> >> 
>> >> Are you sure that it is actually hung (meaning you have to use C-g to
>> >> get Emacs to respond to further commands) and not just doing
>> >> nothing?
>> >
>> > Truly hung -- blank, frozen, unresponsive screen until I press C-g.
>> > This is repeatable.
>> 
>> M-: (setq debug-on-quit t) RET
>> 
>> and have a look at the backtrace, this should identify the defun
>> causing the hang.
>
> This is what I got (but not sure what it means...):
>
> Debugger entered--Lisp error: (quit)
>   expand-file-name("1092672-My Document.DOC" "/tmp")
>   apply(expand-file-name ("1092672-My Document.DOC" "/tmp"))
>   ange-ftp-completion-hook-function(expand-file-name "1092672-My Document.DOC" "/tmp")
>   expand-file-name("1092672-My Document.DOC" "/tmp")
>   vm-make-tempfile-name(".DOC" "My Document.DOC")

Hmm from the code in `vm-make-tempfile-name' I would guess, that
it hangs in the while-loop trying to find an unused name ...
[looking at it] ... IMHO it is a bug indeed, there was a
miss-placed parenthesis in the second case of the cond, at least
in VM 7.18.

Apply the patch below and DONE is set to terminate the loop
correctly [untested].

--- .hacking/vm-7.18/vm-misc.el	2003-11-03 16:37:56.000000000 +0100
+++ .xemacs/xemacs-packages/vm/lisp/vm-misc.el	2004-01-22 16:54:01.000000000 +0100
@@ -635,8 +646,8 @@
 					vm-tempfile-counter
 					proposed-filename)
 				vm-temp-file-directory))
-		     vm-tempfile-counter (1+ vm-tempfile-counter))
-	       done (not (file-exists-p filename)))))
+		     vm-tempfile-counter (1+ vm-tempfile-counter)
+                     done (not (file-exists-p filename))))))
 	  (t
 	   (let ((done nil))
 	     (while (not done)
Technical Details
Message-ID: <86hdyoc6n9.fsf@robf.deREMOVETHIS>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!atmistral7.informatik.tu-muenchen.DE!not-for-mail
References: <m2fzekj10g.fsf@consult.pretender> <400320B7.5060408@yahoo.com> <m2k73n2nrb.fsf@consult.pretender> <400D5599.10709@yahoo.com> <m2isj6m7a4.fsf@consult.pretender> <861xpth8a1.fsf@robf.deREMOVETHIS> <m2smi88qsy.fsf@consult.pretender>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f6829,6e83a1235cadfbbe
X-Google-Attributes: gidf6829,public
X-Google-ArrivalTime: 2004-01-22 08:05:15 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!atmistral7.informatik.tu-muenchen.DE!not-for-mail
From: newsspam5REMOVETHIS@robf.de
Newsgroups: gnu.emacs.vm.bug
Subject: Re: Can't launch attachments with "spaces" in file name
Date: Thu, 22 Jan 2004 17:03:38 +0100
Lines: 58
Message-ID: <86hdyoc6n9.fsf@robf.deREMOVETHIS>
References: <m2fzekj10g.fsf@consult.pretender> <400320B7.5060408@yahoo.com>
 <m2k73n2nrb.fsf@consult.pretender> <400D5599.10709@yahoo.com>
 <m2isj6m7a4.fsf@consult.pretender> <861xpth8a1.fsf@robf.deREMOVETHIS>
 <m2smi88qsy.fsf@consult.pretender>
NNTP-Posting-Host: atmistral7.informatik.tu-muenchen.de (131.159.17.40)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.uni-berlin.de 1074787484 21496237 131.159.17.40 ([195195])
User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Reasonable Discussion,
 linux)
Cancel-Lock: sha1:RYa08SQn3bms69okzc23x0pOIkI=