sorry I just sent a mail under Stephen's name! I think I pressed the
wrong key in mutt (e for edit insted of L for list reply!)
never done that before, sorry again!
mp
On Mon, Dec 01, 2003 at 04:56:29PM +0900, Stephen J. Turnbull wrote:
>>>>> "Matt" == Matt Price
<matt.price(a)utoronto.ca> writes:
Matt> I have mode-hooks callingthese funcitons when either mode is
Matt> loaded. But, while these hooks worked fine in FSF Emacs, I
Matt> can't get them to work in xemacs on initial loading of a
Matt> message buffer (if I switch modes in mid-composition, the
Matt> movement *will* take place!
Try wrapping the functions in code to print a progress message (eg,
`(message "Moving cursor to first line of text")') to find out if te
hook is actually being called.
Matt> Someone on the mutt list suggested that the hook might be
Matt> executed before the file is actually read into the buffer.
Seems unlikely. Emacs doesn't run these hooks itself; that is done by
the mode-switch function, which is presumably called by the posting
function, which probably is also provided by post-mode or sendmail.el.
Matt> Is there a way to fix it?
Show us the relevant code. post-mode isn't distributed with XEmacs,
so I don't see how it would be related to anything XEmacs is doing.
There might be some GNU-specific thing we haven't implemented or
synched yet, but without looking at the code I can't say.