]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
po-mode: Prepare for inclusion in GNU ELPA.
authorBruno Haible <bruno@clisp.org>
Tue, 27 Jan 2026 05:03:04 +0000 (06:03 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 27 Jan 2026 05:09:52 +0000 (06:09 +0100)
Suggested by Stefan Monnier <monnier@iro.umontreal.ca> in
<https://lists.gnu.org/archive/html/bug-gettext/2026-01/msg00086.html>.

* gettext-tools/emacs/po-mode.el: Add meta-information field 'Version:',
required by ELPA. Move meta-information after the copyright and license notice.
(po-mode-version-string): Move definition.
* gettext-tools/emacs/po-compat.el: Move meta-information after the copyright
and license notice. Convert the file to UTF-8 encoding.

gettext-tools/emacs/po-compat.el
gettext-tools/emacs/po-mode.el

index ad19220a3098dad85264362245a0462b20dde1bc..53f18fd32935cc497c1bdebb8727d433ee21ed0c 100644 (file)
@@ -1,26 +1,26 @@
 ;;; po-compat.el --- basic support of PO translation files -*- coding: latin-1; -*-
 
 ;; Copyright (C) 1995-2026 Free Software Foundation, Inc.
-
-;; Authors: François Pinard, Greg McGary, Ulrich Drepper, Bruno Haible.
-;; Keywords: i18n, files
-
+;;
 ;; This file is part of GNU gettext.
-
+;;
 ;; GNU gettext is free software; you can redistribute it and/or modify
 ;; it under the terms of the GNU General Public License as published by
 ;; the Free Software Foundation; either version 2, or (at your option)
 ;; any later version.
-
+;;
 ;; GNU gettext is distributed in the hope that it will be useful,
 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 ;; GNU General Public License for more details.
-
+;;
 ;; You should have received a copy of the GNU General Public License
 ;; along with GNU Emacs; see the file COPYING.  If not, see
 ;; <https://www.gnu.org/licenses/>.
 
+;; Authors: François Pinard, Greg McGary, Ulrich Drepper, Bruno Haible.
+;; Keywords: i18n, files
+
 ;;; Commentary:
 
 ;; Emacs 21.2 and newer already contain this file, under the name po.el,
index d218b1bad179ea83ad0b3ce19e300b34ed3197af..13ea77a137401b88afc2bf8e0944c2642d4ba7b0 100644 (file)
@@ -1,27 +1,31 @@
 ;;; po-mode.el --- major mode for GNU gettext PO files
 
 ;; Copyright (C) 1995-2026 Free Software Foundation, Inc.
-
-;; Authors: François Pinard, Greg McGary, Ulrich Drepper, Bruno Haible.
-;; Keywords: i18n gettext
-;; Created: 1995
-;; Package-Requires: ((emacs "23"))
-
+;;
 ;; This file is part of GNU gettext.
-
+;;
 ;; This program is free software: you can redistribute it and/or modify
 ;; it under the terms of the GNU General Public License as published by
 ;; the Free Software Foundation; either version 3 of the License, or
 ;; (at your option) any later version.
-
+;;
 ;; This program is distributed in the hope that it will be useful,
 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 ;; GNU General Public License for more details.
-
+;;
 ;; You should have received a copy of the GNU General Public License
 ;; along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
+;;; Meta information understood by ELPA:
+
+;; Authors: François Pinard, Greg McGary, Ulrich Drepper, Bruno Haible.
+;; Keywords: i18n gettext
+;; Created: 1995
+;; Package-Requires: ((emacs "23"))
+;; Version: 2.32
+(defconst po-mode-version-string "2.32" "Version number of this version of po-mode.el.")
+
 ;;; Commentary:
 
 ;; This package provides the tools meant to help editing PO files,
@@ -62,9 +66,6 @@
 
 ;;; Code:
 \f
-(defconst po-mode-version-string "2.32" "\
-Version number of this version of po-mode.el.")
-
 ;;; Emacs portability matters - part I.
 ;;; Here is the minimum for customization to work.  See part II.