]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Rename po-any-msgstr-regexp-old.
authorBruno Haible <bruno@clisp.org>
Sun, 14 Oct 2007 14:51:00 +0000 (14:51 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:15:17 +0000 (12:15 +0200)
gettext-tools/misc/ChangeLog
gettext-tools/misc/po-mode.el

index d04a609c230361cdbd8a0e21c1d6555bf57bd998..c86451f2e56a9cf8eb7e5328cfcea03748f05bf8 100644 (file)
@@ -1,3 +1,8 @@
+2007-10-14  Bruno Haible  <bruno@clisp.org>
+
+       * po-mode.el (po-any-msgstr-form-regexp): Renamed from
+       po-any-msgstr-regexp-old.
+
 2007-10-07  Bruno Haible  <bruno@clisp.org>
 
        * autopoint.in (func_version): In the --version output, say GPLv3+.
index 1f909acbab12a4da18cd8b83e34ac72552b0bac7..a449b30d545962364313e770b0cbfc1b26080e5e 100644 (file)
@@ -61,7 +61,6 @@
 ;;    contents of msgstr[0] would be copied. (Not sure if this should happen
 ;;    at the end of the editing msgstr[0] or at the beginning of the editing
 ;;    of msgstr[1].) Reason: These two strings are usually very similar.
-;; Rename po-any-msgstr-regexp-old to po-any-msgstr-form-regexp.
 ;; Rename po-any-msgstr-regexp to po-any-msgstr-block-regexp.
 ;; Make po-find-this-msgstr call po-find-span-of-entry, not vice versa.
 ;; Remove old po-get-msgstr, rename po-get-msgstr-new to po-get-msgstr-form.
@@ -1019,7 +1018,7 @@ Initialize or replace current translation with the original message"))])
   "^\\(#~[ \t]*\\)?msgstr.*\n\\(\\(#~[ \t]*\\)?\".*\n\\)*\\(\\(#~[ \t]*\\)?msgstr\\[[0-9]\\].*\n\\(\\(#~[ \t]*\\)?\".*\n\\)*\\)*"
   "Regexp matching a whole msgstr or msgstr[] field, whether obsolete or not.")
 
-(defvar po-any-msgstr-regexp-old
+(defvar po-any-msgstr-form-regexp
   ;; "^\\(#~[ \t]*\\)?msgstr.*\n\\(\\(#~[ \t]*\\)?\".*\n\\)*"
   "^\\(#~[ \t]*\\)?msgstr\\(\\[[0-9]\\]\\)?.*\n\\(\\(#~[ \t]*\\)?\".*\n\\)*"
   "Regexp matching just one msgstr or msgstr[] field, whether obsolete or not.")
@@ -1487,7 +1486,7 @@ or translated."
     (end-of-line)
     (re-search-backward "^\\(#~[ \t]*\\)?msgstr"))
   ;; detect the bounderies of the msgstr we are interested in
-  (re-search-forward po-any-msgstr-regexp-old)
+  (re-search-forward po-any-msgstr-form-regexp)
   (setq po-start-of-this-msgstr (match-beginning 0)
         po-end-of-this-msgstr (match-end 0)))
 
@@ -1991,7 +1990,7 @@ described by FORM is merely identical to the msgstr already in place."
                                   (eq po-entry-type 'obsolete))))
     (save-excursion
       (goto-char po-start-of-this-msgstr)
-      (re-search-forward po-any-msgstr-regexp-old po-end-of-this-msgstr)
+      (re-search-forward po-any-msgstr-form-regexp po-end-of-this-msgstr)
       (and (not (string-equal (po-match-string 0) string))
            (let ((buffer-read-only po-read-only))
              (po-decrease-type-counter)