diff options
| author | Basil L. Contovounesios | 2019-07-20 18:52:59 +0100 |
|---|---|---|
| committer | Basil L. Contovounesios | 2019-07-21 02:16:09 +0100 |
| commit | f02b9e9a6ff701d041ef86afe8b9a92ba8e4fd30 (patch) | |
| tree | b0cf639f5fdba2b516bdc3b60c6b87f4142346e3 | |
| parent | 45fc6f203e2fef528cb2bb0d7c0140e160c974e2 (diff) | |
| download | emacs-f02b9e9a6ff701d041ef86afe8b9a92ba8e4fd30.tar.gz emacs-f02b9e9a6ff701d041ef86afe8b9a92ba8e4fd30.zip | |
Use lexical-binding in compface.el
* lisp/image/compface.el: Use lexical-binding. Extend Keywords
header.
(uncompface): Call call-process-region directly.
| -rw-r--r-- | lisp/image/compface.el | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lisp/image/compface.el b/lisp/image/compface.el index 23752618542..2f2adbd0292 100644 --- a/lisp/image/compface.el +++ b/lisp/image/compface.el | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | ;;; compface.el --- functions for converting X-Face headers | 1 | ;;; compface.el --- functions for converting X-Face headers -*- lexical-binding: t -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2002-2019 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2002-2019 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> | 5 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 6 | ;; Keywords: news | 6 | ;; Keywords: multimedia, news |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
| @@ -24,7 +24,6 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | ;;;### | ||
| 28 | (defun uncompface (face) | 27 | (defun uncompface (face) |
| 29 | "Convert FACE to pbm. | 28 | "Convert FACE to pbm. |
| 30 | Requires the external programs `uncompface', and `icontopbm'. On a | 29 | Requires the external programs `uncompface', and `icontopbm'. On a |
| @@ -37,9 +36,8 @@ or `faces-xface' and `netpbm' or `libgr-progs', for instance." | |||
| 37 | ;; At least "icontopbm" doesn't work with Windows because | 36 | ;; At least "icontopbm" doesn't work with Windows because |
| 38 | ;; the line-break code is converted into CRLF by default. | 37 | ;; the line-break code is converted into CRLF by default. |
| 39 | (coding-system-for-write 'binary)) | 38 | (coding-system-for-write 'binary)) |
| 40 | (and (eq 0 (apply 'call-process-region (point-min) (point-max) | 39 | (and (eq 0 (call-process-region (point-min) (point-max) |
| 41 | "uncompface" | 40 | "uncompface" 'delete '(t nil))) |
| 42 | 'delete '(t nil) nil)) | ||
| 43 | (progn | 41 | (progn |
| 44 | (goto-char (point-min)) | 42 | (goto-char (point-min)) |
| 45 | (insert "/* Format_version=1, Width=48, Height=48, Depth=1,\ | 43 | (insert "/* Format_version=1, Width=48, Height=48, Depth=1,\ |