Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bb_quibbles #15

Merged
merged 12 commits into from Feb 25, 2019
4 changes: 4 additions & 0 deletions ChangeLog
@@ -1,3 +1,7 @@
2019-02-18 Boruch Baum <boruch_baum@gmx.com>, TSUCHIYA Masatoshi <tsuchiya@namazu.org>

* octet.el: Documentation update

2019-02-18 Boruch Baum <boruch_baum@gmx.com>

* w3m.el (w3m-decode-entities-string): Simplify function.
Expand Down
97 changes: 72 additions & 25 deletions octet.el
Expand Up @@ -26,49 +26,96 @@
;;
;; Display application/octet-stream inline on the emacs buffer.
;;
;; This program requires:
;; octet.el is a module to display several MIME contents generated by
;; Microsoft Word and Microsoft Excel encoded in application/octet-stream
;; style. It converts them into text/html format using converters like
;; xlhtml and wvware, and displays them using emacs-w3m. It works on
;; several MUAs based on SEMI package, including Wanderlust and Semi-Gnus.
;; This module is effective when we use non-window environment.

;;; Requirements:
;;
;; + emacs-w3m
;; + for HTML rendering
;; + available at
;; + MELPA
;; + http://emacs-w3m.namazu.org/
;; + https://github.com/emacs-w3m/emacs-w3m
;; + Mule-UCS
;; + for UTF-8 decoding
;; + available at
;; + MELPA
;; + ftp://ftp.m17n.org/pub/mule/Mule-UCS/
;; + apel
;; + for character encoding portability
;; + available at
;; + MELPA
;; + http://git.chise.org/elisp/apel/.
;; + flim
;; + utilities for message representation and encoding
;; + available at
;; + MELPA
;; + http://git.chise.org/elisp/flim/.
;; + semi
;; + for mime utilities
;; + available at
;; + MELPA
;; + http://git.chise.org/elisp/semi/.
;; + wvHtml
;; + for MS Word documents
;; + available at
;; + MELPA
;; + http://www.wvware.com/
;; + xlHtml for MS Excel documents
;; + available at
;; + MELPA
;; + http://chicago.sourceforge.net/xlhtml/
;; + pptHtml
;; + for MS PowerPoint documents
;; + available at
;; + MELPA
;; + http://chicago.sourceforge.net/xlhtml/
;; + gunzip
;; + for decoding gzipped files
;; + bunzip2
;; + for decoding bzip2ed files
;;
;; emacs-w3m for HTML rendereing.
;; (http://emacs-w3m.namazu.org/)
;; Mule-UCS for UTF-8 decoding.
;; (ftp://ftp.m17n.org/pub/mule/Mule-UCS/)
;; wvHtml for MS Word document.
;; (http://www.wvware.com/)
;; xlHtml for MS Excel document.
;; (http://chicago.sourceforge.net/xlhtml/)
;; pptHtml for MS PowerPoint document.
;; (http://chicago.sourceforge.net/xlhtml/)
;; gunzip for decoding gzipped file.
;; bunzip2 for decoding bzip2ed file.

;;; Installation:
;;
;; Put follwing line in your setting file:
;;
;; (require 'octet)
;; (require 'octet)
;;
;; To display octet data file, execute following command.
;; If you use SEMI, you can also put following lines in your setting
;; file, in order to be able to toggle displaying
;; application/octet-stream messages.:
;;
;; M-x octet-find-file
;; (octet-mime-setup)
;;

;;; Usage:
;;
;; If you use SEMI, put following lines in your setting file:
;; To display an octet data file, execute following command:
;;
;; (require 'octet)
;; (octet-mime-setup)
;; M-x octet-find-file
;;
;; Then you can toggle displaying application/octet-stream messages.

;;; History:
;;
;; This file is created in 2000/05/19.
;; All part was rewrote in 2002/01/28.
;; Added to emacs-w3m repository in 2002/01/29.
;; + This file was created in 2000/05/19.
;; + All parts were rewritten in 2002/01/28.
;; + Added to emacs-w3m repository in 2002/01/29.
;; + Further details and subsequent changes are documented in the
;; emacs-w3m Changelog file, and in git.

;;; Code:

(eval-when-compile
(require 'cl))

(require 'poe) ; for compatibility
(require 'pces) ; as-binary-process
(require 'poe) ; for compatibility (from emacs package 'apel)
(require 'pces) ; as-binary-process (from emacs package 'apel)
(require 'mime) ; SEMI
(require 'static)
(require 'w3m-util); w3m-insert-string
Expand Down