thanks adrian,
On Mon, Dec 01, 2003 at 08:59:04PM +0100, Adrian Aichner wrote:
Matt> in both mail-mode and the less well-distributed but super-excellent
Matt> post-mode (mostly designed for use with mutt) there are commands
Matt> designed to move the cursor to the first empty line in a message
Matt> buffer. I have mode-hooks callingthese funcitons when either mode is
Matt> loaded. But, while these hooks worked fine in FSF Emacs, I can't get
For starrters: what are their names?
Have you tried mail-setup-hook and message-setup-hook?
I have now...
I posted the relevant parts of my init.el in a previous post, so I
won't repost all of it here, but I added these lines with no change in
behaviour:
;; mail-text and other movements seem not to work under Xemacs
(add-hook 'mail-mode-hook 'mail-text)
(add-hook 'mail-setup-hook 'mail-text)
(add-hook 'message-setup-hook 'mail-text)
(add-hook 'post-mode-hook 'post-goto-body)
To reiterate this wierd effect: the problem only manifests when the
buffer first loads, and the effect is the same whether mail-mode or
post-mode is used. If I switch the mode once the buffer's loaded,
then xemacs acts as I want it to, namely, it moves the cursor to the
first line of the actual message.
Matt> them to work in xemacs on initial loading of a message
Matt> buffer (if I switch modes in mid-composition, the movement
Matt> *will* take place! Also, I should note that I've been
Matt> haivng this problem when running xemacs iwth the -nw switch
Matt> -- haven't tested it much in other modes). Someone on the
Matt> mutt list suggested that the hook might be executed before
Matt> the file is actually read into the buffer. Does that sound
Matt> plausible? Is there a way to fix it?
Which file are you reading in?
Mutt sends a message template to the emacs buffer, consisting of a few
message headers and the message you're replying to, if any. I'm not
exactly sure how it works.
thx as always,
matt