X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=signature.el;h=3a21aeb973425b73d87e89ffae64a72771e4a09c;hb=604314557fdef68a1a0267db0d8726de7a2e882f;hp=3a2446b94c42a2f45b6f35a9029e8371e6219895;hpb=f9a043cb583d0789d288569e566cf6c4f752b1e4;p=elisp%2Fsemi.git diff --git a/signature.el b/signature.el index 3a2446b..3a21aeb 100644 --- a/signature.el +++ b/signature.el @@ -1,13 +1,12 @@ ;;; signature.el --- a signature utility for GNU Emacs -;; Copyright (C) 1994,1995,1996,1997 Free Software Foundation, Inc. +;; Copyright (C) 1994,1995,1996,1997,2000 Free Software Foundation, Inc. -;; Author: MORIOKA Tomohiko +;; Author: MORIOKA Tomohiko ;; OKABE Yasuo -;; KOBAYASHI Shuhei -;; Maintainer: Shuhei KOBAYASHI +;; Shuhei KOBAYASHI +;; Maintainer: Shuhei KOBAYASHI ;; Created: 1994/7/11 -;; Version: $Id: signature.el,v 7.15 1997/07/04 16:41:27 morioka Exp $ ;; Keywords: mail, news, signature ;; This file is part of SEMI (SEMI is Emacs MIME Interfaces). @@ -24,8 +23,8 @@ ;; You should have received a copy of the GNU General Public License ;; along with this program; see the file COPYING. If not, write to -;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -;; Boston, MA 02111-1307, USA. +;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +;; Boston, MA 02110-1301, USA. ;;; Code: @@ -52,7 +51,12 @@ It is inserted when signature is inserted at end of file.") (defvar signature-file-name "~/.signature" "*Name of file containing the user's signature.") -(defvar signature-file-alist nil) +(defvar signature-file-alist nil + "*Alist of the form: + (((FIELD . PATTERN) . FILENAME) + ...) +PATTERN is a string or list of string. If PATTERN matches the contents of +FIELD, the contents of FILENAME is inserted.") (defvar signature-file-prefix nil "*String containing optional prefix for the signature file names") @@ -63,18 +67,7 @@ It is inserted when signature is inserted at end of file.") (defvar signature-use-bbdb nil "*If non-nil, Register sigtype to BBDB.") -;;; -;;; Example: -;;; -;;; (setq signature-file-alist -;;; '((("Newsgroups" . "zxr") . "~/.signature-sun") -;;; (("To" . "uramimi") . "~/.signature-sun") -;;; (("Newsgroups" . "jokes") . "~/.signature-jokes") -;;; (("To" . "tea") . "~/.signature-jokes") -;;; (("To" . ("sim" "oku")) . "~/.signature-formal") -;;; )) - -(autoload 'signature/get-sigtype-from-bbdb "tm-bbdb") +(autoload 'signature/get-sigtype-from-bbdb "mime-bbdb") (defun signature/get-sigtype-interactively (&optional default) (read-file-name "Insert your signature: "