Subject: Re: bug#7517: 24.0.50; repeated crash under Mac OS X

From: Jan Djärv <[email-masked]>
Date: Fri, 31 Dec 2010 15:22:56 +0100

Eli Zaretskii skrev 2010-12-31 14.19:
>> Date: Fri, 31 Dec 2010 14:10:45 +0100
>> From: Jan Djärv<[email-masked]>
>> CC: [email-masked], [email-masked], [email-masked],
>>   [email-masked], [email-masked]
>>
>>> Some bad interaction between VM and Emacs?
>>
>> That may be, but I was under the impression that Emacs internally should use
>> unicode, so why is it even allowed to set such a buffer name?  Shouldn't Emacs
>> internals complain when given such strings, or convert them (if charset info
>> is available)?
>
> Probably, but more information is needed.  Did you already find the
> place where this string is used to create a buffer?  If so, can you
> show me that place, and explain what sequence of calls led to it?
>
The OP have to confirm, but it is in

(defun vm-edit-message (&optional prefix-argument)
   "Edit the current message.  Prefix arg means mark as unedited instead.
If editing, the current message is copied into a temporary buffer, and
this buffer is selected for editing.  The major mode of this buffer is
controlled by the variable vm-edit-message-mode.  The hooks specified
in vm-edit-message-hook are run just prior to returning control to the user
for editing.

Use C-c ESC when you have finished editing the message.  The message
will be inserted into its folder replacing the old version of the
message.  If you don't want your edited version of the message to
replace the original, use C-c C-] and the edit will be aborted."

...
       (if (not (and edit-buf (buffer-name edit-buf)))
           (progn
             (vm-save-restriction
               (widen)
               (setq edit-buf
                     (generate-new-buffer
                      (format "edit of %s's note re: %s"
                              (vm-su-full-name (car vm-message-pointer))
                              (vm-su-subject (car vm-message-pointer)))))

	Jan D.