branch: externals/po-mode
commit 24d793df3cffd2fa7636be6f00c2f283577655d4
Author: Bruno Haible <[email protected]>
Commit: Bruno Haible <[email protected]>
po-mode: Prepare for inclusion in GNU ELPA.
Suggested by Stefan Monnier <[email protected]> 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.
---
po-compat.el | 14 +++++++-------
po-mode.el | 25 +++++++++++++------------
2 files changed, 20 insertions(+), 19 deletions(-)
diff --git a/po-compat.el b/po-compat.el
index ad19220a30..53f18fd329 100644
--- a/po-compat.el
+++ b/po-compat.el
@@ -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,
diff --git a/po-mode.el b/po-mode.el
index d218b1bad1..13ea77a137 100644
--- a/po-mode.el
+++ b/po-mode.el
@@ -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:
-(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.