comparison lisp/mel/mel-g.el @ 70:131b0175ea99 r20-0b30

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