]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix last patch.
authorBruno Haible <bruno@clisp.org>
Mon, 11 Mar 2002 21:03:56 +0000 (21:03 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:07:49 +0000 (12:07 +0200)
misc/ChangeLog
misc/po-mode.el

index 817133c98ddc29d4cb8f94a2733ebb5bec2a1159..4433f632b5f2a07a4f4f0f374b029b8a4463cf55 100644 (file)
@@ -1,7 +1,14 @@
+2002-03-11  Karl Eichwalder  <ke@suse.de>
+
+       * po-mode.el (po-find-file-coding-system-guts): Checking
+       'insert-file-contents' must come first to avoid messing up with
+       arguments.
+       Reported by Neil Darlow; fixed by Andreas Schwab.
+
 2002-03-09  Karl Eichwalder  <ke@suse.de>
 
        * po-mode.el (po-find-file-coding-system-guts): Don't try to
-       detect the coding system when filename does not exists.
+       detect the coding system when filename does not exist.
        (po-compute-counters): Search for "^msgid" not 'po-next-entry' if
        we don't know for sure any entry will follow at all.
 
index 6d4f2be182453f1131aa567cb5beaef9ca225e9a..b67bb0eed2516a0c330e8f5da2c559b161543d1d 100644 (file)
@@ -964,8 +964,8 @@ Content-Type into a Mule coding system.")
        "\
 Return a Mule (DECODING . ENCODING) pair, according to PO file charset.
 Called through file-coding-system-alist, before the file is visited for real."
-       (and (file-exists-p filename)
-            (eq operation 'insert-file-contents)
+       (and (eq operation 'insert-file-contents)
+            (file-exists-p filename)
             (po-with-temp-buffer
               (let ((coding-system-for-read 'no-conversion))
                  (let* ((charset (or (po-find-charset filename)