Your message dated Fri, 28 Nov 2008 11:02:05 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#504356: fixed in gettext 0.17-5
has caused the Debian Bug report #504356,
regarding gettext-el: duplicates gettext header with Emacs 23
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
504356: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504356
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: gettext-el
Version: 0.17-4
Severity: important
Hello,
at least in Emacs 23, opening a PO file with po-mode unconditionally
adds a new header on top of the file, even if one (or more... the
problem is recursive) header is already present.
This problem does not happen in Emacs 22, that's why I do not set this
as grave, but I believe it deserves "important", because po-mode does
not provide any easy way to remove this duplicate header: once the PO
has been saved, I have to edit it with another editor to fix the mess.
I've tracked down the issue to line 1346 (in po-check-file-header):
(previous-line 1) moves to the end of the previous line, don't ask me
why.
The docstring for previous-line clearly says it should not be used
blindly in a Lisp program:
If you are thinking of using this in a Lisp program, consider using
`forward-line' with a negative argument instead. It is usually easier
to use and more reliable (no dependence on goal column, etc.).
Replacing this with (forward-line -1) fixes the issue (one-liner patch
attached).
Bye,
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (900, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-1-openvz-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=UTF-8 (charmap=UTF-8) (ignored: LC_ALL set
to fr_FR.UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gettext-el depends on:
ii emacs-snapshot [emacsen] 1:20081018-1 The GNU Emacs editor (development
ii emacs22 [emacsen] 22.2+2-4 The GNU Emacs editor
ii gettext 0.17-4 GNU Internationalization utilities
gettext-el recommends no packages.
gettext-el suggests no packages.
-- no debconf information
--
intrigeri <[EMAIL PROTECTED]>
| gnupg key @ https://gaffer.ptitcanardnoir.org/intrigeri/intrigeri.asc
| Then we'll come from the shadows.
--- /usr/share/emacs/site-lisp/gettext/po-mode.el 2008-08-27 19:03:06.000000000 +0200
+++ po-mode.el 2008-11-02 22:15:21.000000000 +0100
@@ -1343,7 +1343,7 @@
(progn
;; There is at least one entry.
(goto-char (match-beginning 0))
- (previous-line 1)
+ (forward-line -1)
(setq end-of-header (match-end 0))
(if (looking-at "msgid \"\"\n")
;; There is indeed a PO file header.
--- End Message ---
--- Begin Message ---
Source: gettext
Source-Version: 0.17-5
We believe that the bug you reported is fixed in the latest version of
gettext, which is due to be installed in the Debian FTP archive:
gettext-base_0.17-5_amd64.deb
to pool/main/g/gettext/gettext-base_0.17-5_amd64.deb
gettext-doc_0.17-5_all.deb
to pool/main/g/gettext/gettext-doc_0.17-5_all.deb
gettext-el_0.17-5_all.deb
to pool/main/g/gettext/gettext-el_0.17-5_all.deb
gettext_0.17-5.diff.gz
to pool/main/g/gettext/gettext_0.17-5.diff.gz
gettext_0.17-5.dsc
to pool/main/g/gettext/gettext_0.17-5.dsc
gettext_0.17-5_amd64.deb
to pool/main/g/gettext/gettext_0.17-5_amd64.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Santiago Vila <[EMAIL PROTECTED]> (supplier of updated gettext package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Fri, 28 Nov 2008 11:12:15 +0100
Source: gettext
Binary: gettext-base gettext gettext-el gettext-doc
Architecture: source all amd64
Version: 0.17-5
Distribution: unstable
Urgency: low
Maintainer: Santiago Vila <[EMAIL PROTECTED]>
Changed-By: Santiago Vila <[EMAIL PROTECTED]>
Description:
gettext - GNU Internationalization utilities
gettext-base - GNU Internationalization utilities for the base system
gettext-doc - Documentation for GNU gettext
gettext-el - Emacs po-mode for editing gettext .po files
Closes: 504356
Changes:
gettext (0.17-5) unstable; urgency=low
.
* Changed gettext-el dependency from emacsen to "emacs22 | emacsen".
* Run "make distclean" only if Makefile exists, but do not ignore errors.
* po-mode: Do not duplicate headers with emacs23. Closes: #504356.
Checksums-Sha1:
4a9756e30589d62b080310149d241ba35155c458 1049 gettext_0.17-5.dsc
63a6563b3700180280c7eb9c13bf2fa65755066a 16631 gettext_0.17-5.diff.gz
4ecc035b6f0a3b8dcbce4aee80c77a65024aba3f 54310 gettext-el_0.17-5_all.deb
2a1f9ef323e951c9fcc5b96f1df71cd3afceddfe 850560 gettext-doc_0.17-5_all.deb
d575da2c487d8f852bead0c17d10cb21101a03c4 124838 gettext-base_0.17-5_amd64.deb
74c3a35fd74213ff411b299429ac0bbbdb7ea88e 2794942 gettext_0.17-5_amd64.deb
Checksums-Sha256:
342f963c9e40019419f9e30e0c57268c3b0a9e8c54dc4e06dafd394d41cdeb39 1049
gettext_0.17-5.dsc
873256680088ee02b30bf00bbe1e5768dcddd35daf4115a2a59a53e8a3d092c6 16631
gettext_0.17-5.diff.gz
fc8afe2e7f9380fdd74b995a545baa2f4054d78e22fb8273e6bedf323fc92b16 54310
gettext-el_0.17-5_all.deb
bcd590f4bb47c7dd65578ed2d82a48d21ab943c682ada123c8fca8a5088851ad 850560
gettext-doc_0.17-5_all.deb
b04e64d37bea71ef653b679afe6cc06401dd6590e17a8b8c8fd4dea8cb6f749d 124838
gettext-base_0.17-5_amd64.deb
e082d09c9b9511f0c468f04747034e2aa199e41e8bb24a3c74e2d1a91ce4e724 2794942
gettext_0.17-5_amd64.deb
Files:
55745b8a4254d63b772a572d0d380a9c 1049 devel optional gettext_0.17-5.dsc
d92d01eeafa2139c69df1ea004f2d46c 16631 devel optional gettext_0.17-5.diff.gz
4086f4933fce8e44806831690c36c1db 54310 devel optional gettext-el_0.17-5_all.deb
b0f83def6a24b83e30c09c2ef6d48c0c 850560 doc optional gettext-doc_0.17-5_all.deb
52f64817aa6a1b14ffe3548359edb777 124838 utils standard
gettext-base_0.17-5_amd64.deb
5a766836c395fb2185867bf47eb427fe 2794942 devel optional
gettext_0.17-5_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iD8DBQFJL811d9Uuvj7yPNYRAvg6AKC1zjPnVcXWe1SBKy2lmM4kmIT+DwCfZ4hN
27tH9XkhFTjax4z6w1LSTAI=
=L5P5
-----END PGP SIGNATURE-----
--- End Message ---