From xemacs-m  Sun Aug 10 16:44:18 1997
Received: from steadfast.teradyne.com (steadfast.teradyne.com [131.101.1.200])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id QAA17254
	for <xemacs-beta@xemacs.org>; Sun, 10 Aug 1997 16:44:17 -0500 (CDT)
Received: from engine.ecf.teradyne.com (engine.ecf.teradyne.com [131.101.192.6]) by steadfast.teradyne.com (8.7.1/8.7.1) with ESMTP id RAA16896; Sun, 10 Aug 1997 17:48:36 -0400 (EDT)
Received: (from aichner@localhost) by engine.ecf.teradyne.com (8.7.1/8.7.1) id XAA13424; Sun, 10 Aug 1997 23:43:29 +0200 (MET DST)
To: bug-tm-en@chamonix.jaist.ac.jp
Cc: XEmacs Beta Mailing List <xemacs-beta@xemacs.org>
Subject: Recipe for using SEMI as XEmacs Package; Some Questions
X-Face: 4[iHdXiTu\V3u[~\I)<f9HC);%~nG8`oUqv#uzvs6=\V{AjN6Sn
 c/qi;YLwRmEbt8Y*=j5n(urqY@chPh@J'D"QlqD!C8>*}#kYF[-tYl3VZga/HSOP|K,{L
 Rtu@f0y/=O&Cu}\:~d|P$JON?pn?j,&CnPb1z#/TL9bkAJwyol&a:SvYj-VYbM=Dtxhk9
 =w|R6U3_;SH&B<Mfy6Q%#
From: Adrian Aichner <aichner@ecf.teradyne.com>
Date: 10 Aug 1997 23:43:28 +0200
Message-ID: <rxshgcxd88v.fsf@ecf.teradyne.com>
Lines: 156
X-Mailer: Gnus v5.4.64/XEmacs 20.3(beta17) - "Bucharest"


Hello Morioka San!

I just found and installed SEMI and APEL under emacs-version "20.3
\"Bucharest\" XEmacs  Lucid (beta17)".

I tried to install them following the new XEmacs packages philosophy.
Much to my surprise this worked on my first try, which I document
below, for the communities benefit:

1. I deposited and extracted both packages under
  /usr/local/lib/xemacs/packages:
  total 3440
  drwxr-xr-x   2 aichner  stdsoft     1024 Aug 10 22:03 apel-3.4
  drwxr-xr-x   7 aichner  stdsoft      512 Aug 10 11:15 etc
  drwxr-xr-x   2 aichner  stdsoft      512 Aug 10 11:15 info
  drwxr-xr-x   4 aichner  stdsoft     1536 Aug 10 22:31 lisp
  drwxr-xr-x   2 aichner  stdsoft     1536 Aug 10 22:31 semi-0.97

2. I adjusted apel-3.4/APEL-CFG:
*** /tmp/APEL-CFGa003Gu	Sun Aug 10 23:11:45 1997
--- /tmp/APEL-CFG.origa003Gu	Sun Aug 10 23:11:45 1997
***************
*** 35,41 ****
  (defvar LISPDIR (install-detect-elisp-directory PREFIX))
  ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
  
! ;; (setq APEL_DIR (expand-file-name APEL_PREFIX LISPDIR))
! (setq APEL_DIR "/usr/local/lib/xemacs/packages/lisp")
  
  ;;; APEL-CFG ends here
--- 35,40 ----
  (defvar LISPDIR (install-detect-elisp-directory PREFIX))
  ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
  
! (setq APEL_DIR (expand-file-name APEL_PREFIX LISPDIR))
  
  ;;; APEL-CFG ends here

3. I installed APEL using
make EMACS=xemacs install

4. I adjusted semi-0.97/SEMI-CFG:
diff -c /usr/local/lib/xemacs/packages/semi-0.97/SEMI-CFG.orig /usr/local/lib/xemacs/packages/semi-0.97/SEMI-CFG
*** /usr/local/lib/xemacs/packages/semi-0.97/SEMI-CFG.orig	Sun Aug 10 23:18:23 1997
--- /usr/local/lib/xemacs/packages/semi-0.97/SEMI-CFG	Sun Aug 10 23:18:23 1997
***************
*** 97,102 ****
--- 97,103 ----
  ;; If it is omitted, shared directory (maybe /usr/local is used).
  (defvar PREFIX install-prefix)
  ;;(setq PREFIX "~/")
+ (setq PREFIX "/usr/local/lib/xemacs/packages/")
  
  ;; Please specify install path prefix for binaries.
  (defvar EXEC_PREFIX
***************
*** 104,109 ****
--- 105,111 ----
        (expand-file-name "../../.." exec-directory)
      (expand-file-name "../../../.." exec-directory)
      ))
+ (setq EXEC_PREFIX PREFIX)
  
  ;; Please specify emu prefix [optional]
  (setq EMU_PREFIX
***************
*** 112,118 ****
  	""))
  
  ;; Please specify SEMI prefix [optional]
! (setq SEMI_PREFIX "semi")
  
  
  ;;; @ executables
--- 114,121 ----
  	""))
  
  ;; Please specify SEMI prefix [optional]
! ;; (setq SEMI_PREFIX "semi")
! (setq SEMI_PREFIX "")
  
  
  ;;; @ executables
***************
*** 122,128 ****
  (defvar BIN_DIR (expand-file-name "bin" EXEC_PREFIX))
  
  ;; Please specify binary path. (for external method scripts)
! (setq METHOD_DIR (expand-file-name "share/semi" PREFIX))
  
  
  
--- 125,132 ----
  (defvar BIN_DIR (expand-file-name "bin" EXEC_PREFIX))
  
  ;; Please specify binary path. (for external method scripts)
! ;; (setq METHOD_DIR (expand-file-name "share/semi" PREFIX))
! (setq METHOD_DIR (expand-file-name "" PREFIX))
  
  
  
***************
*** 134,144 ****
--- 138,150 ----
  ;; If you don't like default directory tree, please set it.
  (defvar LISPDIR (install-detect-elisp-directory PREFIX))
  ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
+ (setq LISPDIR (expand-file-name "lisp" PREFIX))
  
  (setq SEMI_KERNEL_DIR	(expand-file-name SEMI_PREFIX	LISPDIR))
  (setq SETUP_FILE_DIR	SEMI_KERNEL_DIR)
  
  (setq METHOD_SRC_DIR "methods")
+ 
  (setq METHODS
        '("tm-au" "tm-file" "tm-html" "tm-image" "tm-mpeg"
  	"tm-plain" "tm-ps"

5. I installed SEMI with
make EMACS=xemacs install

6. I built XEmacs again with
make

7. The problem reported earlier with mime-editor/version 7.108 where
   ISO-8859-1 mail-headers would get mangled during send seems to be
   fixed only because SEMI does not quote headers at all.
   Is this correct?
   Shouldn't the headers be encoded when the message is sent?

8. There is a mix of conventions in TM and in SEMI, sometimes
   composing function- or variable names by hyhens, sometimes by
   slashes.
   There are name changes between TM and SEMI, which break
   compatibility, e.g.:
   TM:   mime-editor/insert-signature
   SEMI: mime-edit-insert-signature

9. I'm considering to use TM or SEMI to create xemacs-beta build
   reports.
   Will SEMI eventually supersede TM?
   Should I take the pain to make my module work with TM AND SEMI name 
   conventions (fboundp ...) ?

Thanks and Best Regards,

Adrian

-- 
                            Adrian Aichner
                        Applications Engineer
  Teradyne GmbH
  Semiconductor Test Group    Telephone +49/89/41861(0)-208
  Dingolfinger Strae 2       Fax       +49/89/41861-217
  D-81673 MNCHEN             E-mail    aichner@ecf.teradyne.com

