From a328795497ad77142e003e91661b4891db7888b2 Mon Sep 17 00:00:00 2001 From: morioka Date: Wed, 21 Oct 1998 06:36:55 +0000 Subject: [PATCH] - Require poem. - Enclose initialization code for canna-dl-module by `eval-and-compile'. --- canna.el | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/canna.el b/canna.el index 7e443f8..c2a47fe 100644 --- a/canna.el +++ b/canna.el @@ -7,10 +7,10 @@ ;; Author: Akira Kon ;; MORIOKA Tomohiko ;; Stephen Turnbull -;; Version: $Revision: 1.15 $ +;; Version: $Revision: 1.16 $ ;; Keywords: Canna, Japanese, input method, mule, multilingual -;; This file is not a part of Emacs yet. +;; This file is part of Emacs-Canna. ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the GNU General Public License as @@ -38,18 +38,20 @@ ;;; Code: -;; -*-mode: emacs-lisp-*- +(require 'poem) -(defvar canna-dl-module - (expand-file-name "canna.so" exec-directory)) +(eval-and-compile + (defvar canna-dl-module + (expand-file-name "canna.so" exec-directory)) -(defvar canna-dl-handle - (and (not (boundp 'CANNA)) - (fboundp 'dynamic-link) - (dynamic-link canna-dl-module))) - -(and canna-dl-handle - (dynamic-call "emacs_canna_init" canna-dl-handle)) + (defvar canna-dl-handle + (and (not (boundp 'CANNA)) + (fboundp 'dynamic-link) + (dynamic-link canna-dl-module))) + + (and canna-dl-handle + (dynamic-call "emacs_canna_init" canna-dl-handle)) + ) (or (boundp 'CANNA) (featurep 'CANNA) @@ -60,7 +62,7 @@ ;; end (defconst canna-rcs-version - "$Id: canna.el,v 1.15 1998-02-09 13:09:08 morioka Exp $") + "$Id: canna.el,v 1.16 1998-10-21 06:36:55 morioka Exp $") (defun canna-version () "Display version of canna.el in mini-buffer." -- 1.7.10.4