(infohack): Support @documentencoding in Emacs 21.3.
authorJesper Harder <harder@ifa.au.dk>
Wed, 3 Mar 2004 23:45:34 +0000 (23:45 +0000)
committerJesper Harder <harder@ifa.au.dk>
Wed, 3 Mar 2004 23:45:34 +0000 (23:45 +0000)
texi/ChangeLog
texi/infohack.el

index cdd093b..b81e879 100644 (file)
@@ -1,3 +1,7 @@
+2004-03-04  Jesper Harder  <harder@ifa.au.dk>
+
+       * infohack.el (infohack): Support @documentencoding in Emacs 21.3.
+
 2004-03-03  Jesper Harder  <harder@ifa.au.dk>
 
        * Makefile.in: Add gnus-news.
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)