tag 500641 + patch
thanks
Hi,
I sent a patch for fixing this issue to upstream in May, but I have
not got any replies yet... Please refer to a following message:
http://lists.gnu.org/archive/html/bug-gnu-utils/2008-08/msg00019.html
I repost a patch here.
Thanks,
-nori
Index: gettext/gettext-tools/misc/po-mode.el
===================================================================
--- gettext.orig/gettext-tools/misc/po-mode.el 2008-05-29 17:12:52.000000000 +0900
+++ gettext/gettext-tools/misc/po-mode.el 2008-05-29 04:15:35.000000000 +0900
@@ -692,7 +692,6 @@
(defvar po-end-of-msgstr-form)
(defvar po-end-of-entry)
(defvar po-entry-type)
-(defvar po-msgstr-form-flavor)
;; A few counters are usefully shown in the Emacs mode line.
(defvar po-translated-counter)
@@ -1900,11 +1899,9 @@
(defun po-get-msgstr-form ()
"Extract and return the unquoted msgstr string."
- (let ((flavor (po-get-msgstr-flavor))
- (string (po-extract-unquoted (current-buffer)
+ (let ((string (po-extract-unquoted (current-buffer)
po-start-of-msgstr-form
po-end-of-msgstr-form)))
- (setq po-msgstr-form-flavor flavor)
string))
(defun po-set-msgid (form)
@@ -1935,7 +1932,7 @@
Returns 'nil' if the buffer has not been modified, for if the new msgstr
described by FORM is merely identical to the msgstr already in place."
(let ((string (po-eval-requoted form
- po-msgstr-form-flavor
+ (po-get-msgstr-flavor)
(eq po-entry-type 'obsolete))))
(save-excursion
(goto-char po-start-of-msgstr-form)