unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* post.el stopped working.  What to do?
@ 2007-06-05 22:56 s. keeling
  2007-06-06 19:05 ` post.el stopped working. What to do? [Solved] s. keeling
  0 siblings, 1 reply; 2+ messages in thread
From: s. keeling @ 2007-06-05 22:56 UTC (permalink / raw)
  To: help-gnu-emacs

Hi.  This is GNU Emacs 21.4.1, running in grml.org's downstream of
Debian Sid/unstable.  I lost a hard drive recently, and after
re-installing, I find post-mode (post.el 2.4 2004/07/23) no longer
works in mutt, sort of.  It does work if I "M-x post-mode" once I'm
in Emacs, but it used to be automatic.  I've tried fiddling with
mutt's invocation, from:

   set editor="emacs '%s'"

to:

   set editor="emacs -f post-mode '%s'"

to no effect.  The weird thing is it still works as it used to in
slrn.  post.el is in ~/.emacs.d/.  In my ~/.emacs (long line
automatically broken, comments removed for brevity):

        ---------------------------------------------
   (setq load-path (append load-path (list "/home/keeling/.emacs.d")))

   ...

;; see Dave Pearson's url for the link to these (http://www.davep.org/mutt/).
(server-start)
(load "/home/keeling/.emacs.d/post")
(defadvice server-process-filter (after post-mode-message first activate)
   "If the buffer is in post mode, overwrite the server-edit
   message with a post-save-current-buffer-and-exit message."
   (if (eq major-mode 'post-mode)
       (message
        (substitute-command-keys "Type \\[describe-mode] for help composing; \\[post-save-
current-buffer-and-exit] when done."))))
'(font-lock-verbose 1000)
(add-hook 'server-switch-hook
        (function (lambda()
                    (cond ((string-match "Post" mode-name)
                           (post-goto-body))))))
        ---------------------------------------------

I'm a longtime _user_ of Emacs, but I'm lisp ignorant.  What can I do
to try to sort this out?  It's not like it's broken.  It works when
called with M-x, but why in slrn but not mutt?

Suggestions please?


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)    http://www.spots.ab.ca/~keeling          Linux Counter #80292
- -    http://www.faqs.org/rfcs/rfc1855.html    Please, don't Cc: me.
       Spammers! http://www.spots.ab.ca/~keeling/emails.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: post.el stopped working.  What to do? [Solved]
  2007-06-05 22:56 post.el stopped working. What to do? s. keeling
@ 2007-06-06 19:05 ` s. keeling
  0 siblings, 0 replies; 2+ messages in thread
From: s. keeling @ 2007-06-06 19:05 UTC (permalink / raw)
  To: help-gnu-emacs

s. keeling <keeling@spots.ab.ca>:
>  Hi.  This is GNU Emacs 21.4.1, running in grml.org's downstream of
>  Debian Sid/unstable.  I lost a hard drive recently, and after
>  re-installing, I find post-mode (post.el 2.4 2004/07/23) no longer
> [snip]
>  ;; see Dave Pearson's url for the link to these (http://www.davep.org/mutt/).

For some reason, it wasn't recognizing mutt's tmp files:

       (when (require 'post nil t)
               (setq auto-mode-alist
                       (cons '("mutt.*$" . post-mode) auto-mode-alist)))

fixes it.  Thanks Ismael.


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)    http://www.spots.ab.ca/~keeling          Linux Counter #80292
- -    http://www.faqs.org/rfcs/rfc1855.html    Please, don't Cc: me.
       Spammers! http://www.spots.ab.ca/~keeling/emails.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-06 19:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-05 22:56 post.el stopped working. What to do? s. keeling
2007-06-06 19:05 ` post.el stopped working. What to do? [Solved] s. keeling

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).