From: Jesper Harder Date: Wed, 3 Mar 2004 23:45:34 +0000 (+0000) Subject: (infohack): Support @documentencoding in Emacs 21.3. X-Git-Url: https://cgit.sxemacs.org/?p=gnus;a=commitdiff_plain;h=10e49b3e23e1929088ab4d88bb81335a3f9f0dce (infohack): Support @documentencoding in Emacs 21.3. --- diff --git a/texi/ChangeLog b/texi/ChangeLog index cdd093b37..b81e87985 100644 --- a/texi/ChangeLog +++ b/texi/ChangeLog @@ -1,3 +1,7 @@ +2004-03-04 Jesper Harder + + * infohack.el (infohack): Support @documentencoding in Emacs 21.3. + 2004-03-03 Jesper Harder * Makefile.in: Add gnus-news. diff --git a/texi/infohack.el b/texi/infohack.el index 6e5705a3f..3425b27df 100644 --- a/texi/infohack.el +++ b/texi/infohack.el @@ -40,6 +40,10 @@ (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)