From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Fassel Newsgroups: gmane.emacs.help Subject: Re: How to pipe text or load a file directly into mail-mode? Date: Wed, 10 May 2006 14:11:41 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1147264870 22874 80.91.229.2 (10 May 2006 12:41:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 May 2006 12:41:10 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 10 14:41:08 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FdnzQ-0004ql-KK for geh-help-gnu-emacs@m.gmane.org; Wed, 10 May 2006 14:40:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FdnzQ-0001bQ-5z for geh-help-gnu-emacs@m.gmane.org; Wed, 10 May 2006 08:40:28 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.uchicago.edu!newsfeed.cs.wisc.edu!newsfeed-00.mathworks.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 32 Original-X-Trace: individual.net SVZBdacDWesQ1smUtQxVqgMOd00FynIevlLhBFwRj5U2j/DYE= User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.5 (chestnut, linux) Cancel-Lock: sha1:b+/+BV1Ae+dJ7XMnqGE5A2mNDUM= Original-Xref: shelby.stanford.edu comp.emacs:92141 gnu.emacs.help:139329 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:34952 Archived-At: * Adam Funk | > (add-hook 'mail-mode-hook 'mail-abbrevs-setup) | | I didn't know about this feature -- thanks. Does this solve the problem? | I get "[no match]" when I get to "expand-m" or type any more of it | than that. This indicates that the file which defines the function has not been loaded at that time, and the function is not flagged as auto-loadable. Most probably invoking C-c C-c loads additional packages which then define the function. If the above add-hook does not solve the problem, you can try to find out which library file provides the functionality (describe-function should tell you which elisp file defines the function) and load it manually in your .emacs. Eg, my emacs-21 has M-x describe-function expand-mail-aliases => expand-mail-aliases is an interactive compiled Lisp function in `mailalias'. M-x locate-library mailalias => Library is file /software/emacs/21.3/share/emacs/21.3/lisp/mail/mailalias.el.gz Inspecting the file shows that it has a (provide 'mailalias) So I guess that adding (require 'mailalias) to your .emacs could do the trick. R'