(infohack): Support @documentencoding in Emacs 21.3.
[gnus] / texi / infohack.el
index 6e5705a..3425b27 100644 (file)
   (let ((dest-directory default-directory)
        (max-lisp-eval-depth (max max-lisp-eval-depth 600))
        coding-system)
+    ;; Emacs 21.3 doesn't support @documentencoding
+    (unless (get 'documentencoding 'texinfo-format)
+      (put 'documentencoding 'texinfo-format 
+          'texinfo-discard-line-with-args))
     (find-file file)
     (setq buffer-read-only nil)
     (setq coding-system buffer-file-coding-system)