source: projects/emacsen-common/trunk/apel-sample/usr/share/emacs/site-lisp/apel/poem-e20.el @ 7238

Revision 7238, 2.0 KB checked in by daisuke, 12 years ago (diff)

import emacsen-common

Line 
1;;; poem-e20.el --- poem submodule for Emacs 20; -*-byte-compile-dynamic: t;-*-
2
3;; Copyright (C) 1998 Free Software Foundation, Inc.
4
5;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
6;; Keywords: emulation, compatibility, Mule
7
8;; This file is part of APEL (A Portable Emacs Library).
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(defun fontset-pixel-size (fontset)
28  (let* ((info (fontset-info fontset))
29         (height (aref info 1))
30         )
31    (cond ((> height 0) height)
32          ((string-match "-\\([0-9]+\\)-" fontset)
33           (string-to-number
34            (substring fontset (match-beginning 1)(match-end 1))))
35          (t 0))))
36
37
38;;; @ character set
39;;;
40
41;; (defalias 'charset-columns 'charset-width)
42
43(defun find-non-ascii-charset-string (string)
44  "Return a list of charsets in the STRING except ascii."
45  (delq 'ascii (find-charset-string string)))
46
47(defun find-non-ascii-charset-region (start end)
48  "Return a list of charsets except ascii
49in the region between START and END."
50  (delq 'ascii (find-charset-string (buffer-substring start end))))
51
52
53;;; @ end
54;;;
55
56(if (and (fboundp 'set-buffer-multibyte)
57         (subrp (symbol-function 'set-buffer-multibyte)))
58    (require 'poem-e20_3) ; for Emacs 20.3
59  (require 'poem-e20_2) ; for Emacs 20.1 and 20.2
60  )
61
62(require 'product)
63(product-provide (provide 'poem-e20) (require 'apel-ver))
64
65;;; poem-e20.el ends here
Note: See TracBrowser for help on using the repository browser.