]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Remove 'kill' argument from po-get-msgstr-form.
authorBruno Haible <bruno@clisp.org>
Mon, 15 Oct 2007 22:33:36 +0000 (22:33 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:15:18 +0000 (12:15 +0200)
gettext-tools/misc/ChangeLog
gettext-tools/misc/po-mode.el

index 873f0ce712828d612df4bdea5e59d5576889543b..49014d3d7cefd28f3a33e1b9ae6bc6a47f4b8fd4 100644 (file)
@@ -1,5 +1,8 @@
 2007-10-15  Bruno Haible  <bruno@clisp.org>
 
+       * po-mode.el (po-get-msgstr-form): Remove 'kill' argument.
+       (po-kill-ring-save-msgstr, po-fade-out-entry): Update.
+
        * po-mode.el (po-get-msgid): Remove 'kill' argument.
 
        * po-mode.el (po-get-msgstr-form): Renamed from po-get-msgstr-new.
index 61d592706ce63df1d0d3096ce15b8018108602ab..61a6c29a9e60d86f98fdb81b21900de723416341 100644 (file)
@@ -1896,15 +1896,13 @@ If FORM is itself a string, then this string is used for insertion."
   (re-search-forward "^\\(#~[ \t]*\\)?\\(msgstr\\(\\[[0-9]\\]\\)?\\)")
   (match-string 2))
 
-(defun po-get-msgstr-form (kill)
-  "Extract and return the unquoted msgstr string.
-If KILL, then add the unquoted string to the kill ring."
+(defun po-get-msgstr-form ()
+  "Extract and return the unquoted msgstr string."
   (let ((flavor (po-get-msgstr-flavor))
         (string (po-extract-unquoted (current-buffer)
                                      po-start-of-msgstr-form
                                      po-end-of-msgstr-form)))
     (setq po-this-msgstr-flavor flavor)
-    (if kill (po-kill-new string))
     string))
 
 (defun po-set-msgid (form)
@@ -1953,7 +1951,9 @@ described by FORM is merely identical to the msgstr already in place."
   "Push the msgstr string from current entry on the kill ring."
   (interactive)
   (po-find-span-of-entry)
-  (po-get-msgstr-form t))
+  (let ((string (po-get-msgstr-form)))
+    (po-kill-new string)
+    string))
 
 (defun po-kill-msgstr ()
   "Empty the msgstr string from current entry, pushing it on the kill ring."
@@ -2004,7 +2004,7 @@ or completely delete an obsolete entry, saving its msgstr on the kill ring."
          (po-decrease-type-counter)
          (po-update-mode-line-string)
          ;; TODO: Should save all msgstr forms here, not just one.
-         (po-get-msgstr-form t)
+         (po-kill-new (po-get-msgstr-form))
          (let ((buffer-read-only po-read-only))
            (delete-region po-start-of-entry po-end-of-entry))
          (goto-char po-start-of-entry)
@@ -2342,7 +2342,7 @@ read `po-subedit-ediff' documentation."
   (po-edit-string (if (and po-auto-edit-with-msgid
                            (eq po-entry-type 'untranslated))
                       (po-get-msgid)
-                    (po-get-msgstr-form nil))
+                    (po-get-msgstr-form))
                   'msgstr
                   t))
 
@@ -2386,7 +2386,7 @@ To minibuffer messages sent while normalizing, add the EXPLAIN string."
       (goto-char (match-beginning 0))
       (po-find-span-of-entry)
       (cond ((eq field 'msgid) (po-set-msgid (po-get-msgid)))
-            ((eq field 'msgstr) (po-set-msgstr-form (po-get-msgstr-form nil))))
+            ((eq field 'msgstr) (po-set-msgstr-form (po-get-msgstr-form))))
       (goto-char po-end-of-entry)
       (setq counter (1+ counter)))
     (goto-char here)