From: Akinori MUSHA Date: Sat, 27 Aug 2016 14:59:36 +0000 (+0900) Subject: Add autoload magic comments X-Git-Tag: v0.20~505 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c38baf93e46a2223b524f91ff744cff2a0e1157;p=thirdparty%2Fgettext.git Add autoload magic comments --- diff --git a/gettext-tools/misc/po-compat.el b/gettext-tools/misc/po-compat.el index e40a8d733..c41dbce6d 100644 --- a/gettext-tools/misc/po-compat.el +++ b/gettext-tools/misc/po-compat.el @@ -179,6 +179,8 @@ Content-Type into a Mule coding system.") (if (re-search-forward charset-regexp nil t) (match-string 1)))))) +;;;###autoload (autoload 'po-find-file-coding-system "po-compat") + (eval-and-compile (if po-EMACS20 (defun po-find-file-coding-system-guts (operation filename) diff --git a/gettext-tools/misc/po-mode.el b/gettext-tools/misc/po-mode.el index e33dce29f..07a5014c3 100644 --- a/gettext-tools/misc/po-mode.el +++ b/gettext-tools/misc/po-mode.el @@ -1171,6 +1171,7 @@ Initialize or replace current translation with the original message"))]) po-mode-map) "Keymap for PO mode.") +;;;###autoload (defun po-mode () "Major mode for translators when they edit PO files. @@ -3578,6 +3579,9 @@ strings remain." (save-buffer) (kill-buffer (current-buffer))))))) +;;;###autoload (add-to-list 'auto-mode-alist '("\\.po[tx]?\\'\\|\\.po\\." . po-mode)) +;;;###autoload (modify-coding-system-alist 'file "\\.po[tx]?\\'\\|\\.po\\." 'po-find-file-coding-system) + (provide 'po-mode) ;; Hey Emacs!