From xemacs-m  Sat Mar  1 13:05:10 1997
Received: from jagor.srce.hr (hniksic@jagor.srce.hr [161.53.2.130])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id NAA21356
	for <xemacs-beta@xemacs.org>; Sat, 1 Mar 1997 13:05:09 -0600 (CST)
Received: (from hniksic@localhost)
          by jagor.srce.hr (8.8.5/8.8.4)
	  id UAA21438; Sat, 1 Mar 1997 20:05:06 +0100 (MET)
Sender: hniksic@public.srce.hr
To: xemacs-beta@xemacs.org
Subject: mmencode in TM
X-URL: ftp://gnjilux.cc.fer.hr/pub/unix/util/wget/
X-Attribution: Hrv
X-Face: &}4JQk=L;e.~x+|eo]#DGk@x3~ed!.~lZ}YQcYb7f[WL9L'Z*+OyA\nAEL1M(".[qvI#a2E
 6WYI5>>e7'@_)3Ol9p|Nn2wNa/;~06jL*B%tTcn/XvhAu7qeES0\|MF%$;sI#yn1+y"
From: Hrvoje Niksic <hniksic@srce.hr>
Date: 01 Mar 1997 20:05:06 +0100
Message-ID: <kig4tev302l.fsf@jagor.srce.hr>
Lines: 52
X-Mailer: Gnus v5.4.16/XEmacs 19.14

When I call `mime-encode-region' with `x-gzip64' encoding in 20.1-b3,
it cannot encode the region because of not being able to find the
`mmencode' program.  However, `mmencode' is compiled in lib-src.  I
think the problem is that PATH is not probably set to a correct value.

`mmencode' should probably be found the same way e.g. movemail is
found -- by invoking `expand-file-name'.  The following patch is to
that effect, and after applying it, x-gzip64 encoding/decoding works
like a charm:

--- ChangeLog.orig	Sat Mar  1 20:03:30 1997
+++ ChangeLog	Sat Mar  1 20:03:33 1997
@@ -1,5 +1,9 @@
 Sat Mar  1 07:26:33 1997  Hrvoje Niksic  <hniksic@srce.hr>
 
+	* mel/mel-g.el (gzip64-external-encoder): Find `mmencode' in
+ 	exec-directory.
+	(gzip64-external-decoder): Ditto.
+
 	* prim/auto-autoloads.el (diff): Autoload.
 
 	* prim/keydefs.el: Don't disable M-: by default.
--- mel-g.el.orig	Sat Mar  1 19:54:28 1997
+++ mel-g.el	Sat Mar  1 19:58:55 1997
@@ -36,10 +36,18 @@
 ;;; @ variables
 ;;;
 
-(defvar gzip64-external-encoder '("sh" "-c" "gzip -c | mmencode")
+(defvar gzip64-external-encoder `("sh" "-c"
+				  ,(concat
+				    "gzip -c | "
+				    (expand-file-name "mmencode"
+						      exec-directory))))
   "*list of gzip64 encoder program name and its arguments.")
 
-(defvar gzip64-external-decoder '("sh" "-c" "mmencode -u | gzip -dc")
+(defvar gzip64-external-decoder `("sh" "-c"
+				  ,(concat
+				    (expand-file-name "mmencode"
+						      exec-directory)
+				    " -u | gzip -dc")))
   "*list of gzip64 decoder program name and its arguments.")
 
 


-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
Thou Who might be our Father Who perhaps may be in Heaven...
                                                  -- Zelazny

