X-Git-Url: https://cgit.sxemacs.org/?a=blobdiff_plain;ds=sidebyside;f=lisp%2Fbinhex.el;h=8e3205790c5f4784074aa1e7caa74d2bb80ec92d;hb=8b87e18f7b6e6fced757c12428271a9433d335bd;hp=085bf7ada54c8c32834155397cee45812279e76b;hpb=ee0f1acaea5a0b4f200e5b64cc739bf3d1cca2d8;p=gnus diff --git a/lisp/binhex.el b/lisp/binhex.el index 085bf7ada..8e3205790 100644 --- a/lisp/binhex.el +++ b/lisp/binhex.el @@ -36,7 +36,7 @@ 'identity))) (defcustom binhex-decoder-program "hexbin" - "*Non-nil value should be a string that names a uu decoder. + "*Non-nil value should be a string that names a binhex decoder. The program should expect to read binhex data on its standard input and write the converted data to its standard output." :type 'string @@ -243,14 +243,13 @@ If HEADER-ONLY is non-nil only decode header and return filename." (setq file-name-length (char-after (point-min)) data-fork-start (+ (point-min) file-name-length 22)))) - (if (and (null header) - (with-current-buffer work-buffer - (>= (buffer-size) data-fork-start))) - (progn - (binhex-verify-crc work-buffer - (point-min) data-fork-start) - (setq header (binhex-header work-buffer)) - (if header-only (setq tmp nil counter 0)))) + (when (and (null header) + (with-current-buffer work-buffer + (>= (buffer-size) data-fork-start))) + (binhex-verify-crc work-buffer + (point-min) data-fork-start) + (setq header (binhex-header work-buffer)) + (when header-only (setq tmp nil counter 0))) (setq tmp (and tmp (not (eq inputpos end))))) (cond ((= counter 3)