comparison lisp/mel/mel-g.el @ 30:ec9a17fef872 r19-15b98

Import from CVS: tag r19-15b98
author cvs
date Mon, 13 Aug 2007 08:52:29 +0200
parents 441bb1e64a06
children e04119814345
comparison
equal deleted inserted replaced
29:7976500f47f9 30:ec9a17fef872
1 ;;;
2 ;;; mel-g.el: Gzip64 encoder/decoder for GNU Emacs 1 ;;; mel-g.el: Gzip64 encoder/decoder for GNU Emacs
3 ;;; 2
4 ;;; Copyright (C) 1995,1996 MORIOKA Tomohiko 3 ;; Copyright (C) 1995,1996,1997 MORIOKA Tomohiko
5 ;;; Copyright (C) 1996 Shuhei KOBAYASHI 4 ;; Copyright (C) 1996 Shuhei KOBAYASHI
6 ;;; 5
7 ;;; Author: Shuhei KOBAYASHI <shuhei-k@jaist.ac.jp> 6 ;; Author: Shuhei KOBAYASHI <shuhei-k@jaist.ac.jp>
8 ;;; modified by MORIOKA Tomohiko <morioka@jaist.ac.jp> 7 ;; modified by MORIOKA Tomohiko <morioka@jaist.ac.jp>
9 ;;; Maintainer: Shuhei KOBAYASHI <shuhei-k@jaist.ac.jp> 8 ;; Maintainer: Shuhei KOBAYASHI <shuhei-k@jaist.ac.jp>
10 ;;; Created: 1995/10/25 9 ;; Created: 1995/10/25
11 ;;; Version: 10 ;; Version: $Id: mel-g.el,v 1.5 1997/03/09 02:37:18 steve Exp $
12 ;;; $Id: mel-g.el,v 1.4 1997/03/02 03:43:25 steve Exp $ 11 ;; Keywords: Gzip64, base64, gzip, MIME
13 ;;; Keywords: MIME, base64, gzip 12
14 ;;; 13 ;; This file is not part of MEL (MIME Encoding Library) yet.
15 ;;; This file is not part of MEL (MIME Encoding Library) yet. 14
16 ;;; 15 ;; This program is free software; you can redistribute it and/or
17 ;;; This program is free software; you can redistribute it and/or 16 ;; modify it under the terms of the GNU General Public License as
18 ;;; modify it under the terms of the GNU General Public License as 17 ;; published by the Free Software Foundation; either version 2, or (at
19 ;;; published by the Free Software Foundation; either version 2, or 18 ;; your option) any later version.
20 ;;; (at your option) any later version. 19
21 ;;; 20 ;; This program is distributed in the hope that it will be useful, but
22 ;;; This program is distributed in the hope that it will be useful, 21 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
23 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of 22 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 23 ;; General Public License for more details.
25 ;;; General Public License for more details. 24
26 ;;; 25 ;; You should have received a copy of the GNU General Public License
27 ;;; You should have received a copy of the GNU General Public License 26 ;; along with GNU Emacs; see the file COPYING. If not, write to the
28 ;;; along with This program. If not, write to the Free Software 27 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
29 ;;; Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 28 ;; Boston, MA 02111-1307, USA.
30 ;;; 29
31 ;;; Code: 30 ;;; Code:
32 31
33 (require 'emu) 32 (require 'emu)
33 (require 'file-detect)
34 34
35 35
36 ;;; @ variables 36 ;;; @ variables
37 ;;; 37 ;;;
38 38
39 (defvar gzip64-external-encoder `("sh" "-c" 39 (defvar gzip64-external-encoder
40 ,(concat 40 (let ((file (file-installed-p "mmencode" exec-path)))
41 "gzip -c | " 41 (and file
42 (expand-file-name "mmencode" 42 (` ("sh" "-c" (, (concat "gzip -c | " file))))
43 exec-directory))) 43 ))
44 "*list of gzip64 encoder program name and its arguments.") 44 "*list of gzip64 encoder program name and its arguments.")
45 45
46 (defvar gzip64-external-decoder `("sh" "-c" 46 (defvar gzip64-external-decoder
47 ,(concat 47 (let ((file (file-installed-p "mmencode" exec-path)))
48 (expand-file-name "mmencode" 48 (and file
49 exec-directory) 49 (` ("sh" "-c" (, (concat file " -u | gzip -dc"))))
50 " -u | gzip -dc")) 50 ))
51 "*list of gzip64 decoder program name and its arguments.") 51 "*list of gzip64 decoder program name and its arguments.")
52 52
53 53
54 ;;; @ encoder/decoder for region 54 ;;; @ encoder/decoder for region
55 ;;; 55 ;;;