Merge semi21-D20010129.
[elisp/lemi.git] / mime / emh-def.el
1 ;;; emh-def.el --- definition for emh
2
3 ;; Copyright (C) 2000 Free Software Foundation, Inc.
4
5 ;; Author: MORIOKA Tomohiko <tomo@m17n.org>
6 ;; Keywords: mail composing, MH, MIME, mail
7
8 ;; This file is part of emh.
9
10 ;; This program is free software; you can redistribute it and/or
11 ;; modify it under the terms of the GNU General Public License as
12 ;; published by the Free Software Foundation; either version 2, or (at
13 ;; your option) any later version.
14
15 ;; This program is distributed in the hope that it will be useful, but
16 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 ;; General Public License for more details.
19
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with GNU Emacs; see the file COPYING.  If not, write to the
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 ;; Boston, MA 02111-1307, USA.
24
25 ;;; Code:
26
27 (or (fboundp 'find-face)
28     (defun find-face (face-or-name)
29       "Retrieve the face of the given name.
30 If FACE-OR-NAME is a face object, it is simply returned.
31 Otherwise, FACE-OR-NAME should be a symbol.  If there is no such face,
32 nil is returned.  Otherwise the associated face object is returned."
33       (car (memq face-or-name (face-list)))))
34
35
36 ;;; @ end
37 ;;;
38
39 (provide 'emh-def)
40
41 ;;; emh-def.el ends here