From 203c2d6a72bcaf42e5ca96272c015ade8441b46f Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 27 Jan 2026 06:03:04 +0100 Subject: [PATCH] po-mode: Prepare for inclusion in GNU ELPA. Suggested by Stefan Monnier in . * 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 | 14 +++++++------- gettext-tools/emacs/po-mode.el | 25 +++++++++++++------------ 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/gettext-tools/emacs/po-compat.el b/gettext-tools/emacs/po-compat.el index ad19220a3..53f18fd32 100644 --- a/gettext-tools/emacs/po-compat.el +++ b/gettext-tools/emacs/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 ;; . +;; 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/gettext-tools/emacs/po-mode.el b/gettext-tools/emacs/po-mode.el index d218b1bad..13ea77a13 100644 --- a/gettext-tools/emacs/po-mode.el +++ b/gettext-tools/emacs/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 . +;;; 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. -- 2.47.3