[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug#482364: gettext-el: patch for po-mode to save buffer when PO-Revisio

From: Kobayashi Noritada
Subject: Bug#482364: gettext-el: patch for po-mode to save buffer when PO-Revision-Date is hold
Date: Thu, 22 May 2008 15:25:36 +0900

Package: gettext-el
Version: 0.17-2
Severity: normal
Tags: patch


po-mode provides po-auto-replace-revision-date, an option for users to
decide whether PO-Revision-Date field in the header should be
automatically updated or not.  However, when users choose holding that
field, by setting that variable to "ask" and answering "n" to "May I set
PO-Revision-Date? (y or n) " or by setting that variable to "nil", the
field is not updated AND THE BUFFER IS NOT SAVED.  I've confirmed that
this issue represents in Emacs 21 and Emacs 22.

This may be a bug due to a fact[1] that Emacs considers the buffer is
saved when a hook in write-contents-hooks returns non-nil.  So, I've
created a patch to fix the issue.  Could you please apply it?

[1] http://www.gnu.org/software/emacs/elisp/html_node/Saving-Buffers.html
    (write-contents-hooks is renamed as write-contents-functions in
    Emacs 22.1).

Many thanks,


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-686
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)

Versions of packages gettext-el depends on:
ii  emacs21 [emacsen]         21.4a+1-3etch1 The GNU Emacs editor
ii  gettext                   0.16.1-1       GNU Internationalization utilities
ii  xemacs21-mule-canna-wnn [ 21.4.19-2      highly customizable text editor --

gettext-el recommends no packages.

-- no debconf information

Attachment: po-mode.diff
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]