Christophe TROESTLER | 15 Jan 2006 13:53
Picon

[mew-int 02091] 'mew-draft-mode and desktop

Hi,

I use "desktop" to reload the buffers that were opened during the
previous Emacs session.  When I keep draft messages, they reload fine
with the Draft mode but they cannot be edited (the "----" separation
is not present, the syntax highlighting and commands do not work).  If
I kill the buffers and reedit them from +drafts, everything is fine --
but that defeat the purpose of "desktop".  Is there a way of making
Mew integrate well with the "desktop" functionality?

Thanks,
ChriS

Kazu Yamamoto | 23 Jan 2006 13:49
Picon
Gravatar

[mew-int 02101] Re: 'mew-draft-mode and desktop

Hello,

> I use "desktop" to reload the buffers that were opened during the
> previous Emacs session.  When I keep draft messages, they reload fine
> with the Draft mode but they cannot be edited (the "----" separation
> is not present, the syntax highlighting and commands do not work).  If
> I kill the buffers and reedit them from +drafts, everything is fine --
> but that defeat the purpose of "desktop".  Is there a way of making
> Mew integrate well with the "desktop" functionality?

I don't exactly know what "desktop" is but you probably referring to
session managers or something. (In my terminology, desktop means the
background of screen, which we can easily find in Windows or Mac.)

When Emacs works again, is Mew running as it was running in the
previous session?

Please provide technical information of the "desktop" -- how session
information is saved, how processes will be resumed...

--Kazu Yamamoto

Christophe TROESTLER | 23 Jan 2006 15:39
X-Face
Picon

[mew-int 02103] Re: 'mew-draft-mode and desktop

On Mon, 23 Jan 2006, Kazu Yamamoto (山本和彦) <kazu <at> iij.ad.jp> wrote:
> 
> Please provide technical information of the "desktop" -- how session
> information is saved, how processes will be resumed...

"Desktop" is a standard Emacs package which reloads the opened buffers
of the previous session.  In ~/.emacs :

(load "desktop")
(desktop-load-default)
(desktop-read)

then "M-x desktop-save" to save it for the first time.  Emacs status
is saved in the file "~/.emacs.desktop".  Excerpt :

(desktop-create-buffer 206
  "/home/trch/Mail/draft/6"
  "+draft/6"
  'mew-draft-mode
  '(auto-fill-mode)
  1850
  '(2083 nil)
  nil
  nil
  '((buffer-file-coding-system . ctext-unix)))

> When Emacs works again, is Mew running as it was running in the
> previous session?

Not sure what you mean exactly by that.  The draft buffer receives the
(Continue reading)


Gmane