From: Bruno Haible Date: Wed, 17 Oct 2007 23:30:26 +0000 (+0000) Subject: Rename po-this-msgstr-flavor. X-Git-Tag: v0.17~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e1585a412344962ba3cd8d16e92c5b50cbfcfee;p=thirdparty%2Fgettext.git Rename po-this-msgstr-flavor. --- diff --git a/gettext-tools/misc/ChangeLog b/gettext-tools/misc/ChangeLog index 49014d3d7..66d7fd13b 100644 --- a/gettext-tools/misc/ChangeLog +++ b/gettext-tools/misc/ChangeLog @@ -1,3 +1,8 @@ +2007-10-17 Bruno Haible + + * po-mode.el (po-msgstr-form-flavor): Renamed from + po-this-msgstr-flavor. New defvar. + 2007-10-15 Bruno Haible * po-mode.el (po-get-msgstr-form): Remove 'kill' argument. diff --git a/gettext-tools/misc/po-mode.el b/gettext-tools/misc/po-mode.el index 61a6c29a9..180eda131 100644 --- a/gettext-tools/misc/po-mode.el +++ b/gettext-tools/misc/po-mode.el @@ -693,6 +693,7 @@ No doubt that highlighting, when Emacs does not allow it, is a kludge." (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) @@ -1902,7 +1903,7 @@ If FORM is itself a string, then this string is used for insertion." (string (po-extract-unquoted (current-buffer) po-start-of-msgstr-form po-end-of-msgstr-form))) - (setq po-this-msgstr-flavor flavor) + (setq po-msgstr-form-flavor flavor) string)) (defun po-set-msgid (form) @@ -1933,7 +1934,7 @@ is properly requoted before the replacement occurs. 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-this-msgstr-flavor + po-msgstr-form-flavor (eq po-entry-type 'obsolete)))) (save-excursion (goto-char po-start-of-msgstr-form)