]> git.eshelyaron.com Git - emacs.git/commitdiff
(DECODE_FILE, ENCODE_FILE):
authorKarl Heuer <kwzh@gnu.org>
Wed, 3 Jun 1998 14:41:27 +0000 (14:41 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 3 Jun 1998 14:41:27 +0000 (14:41 +0000)
Use code_convert_string_norecord.

src/coding.h

index 5fa42643ca087f1b0b50926b7967bfd2f4a11866..dc4d8c540c7c3af2d6b0f314110d2d3a6ae6202c 100644 (file)
@@ -493,10 +493,10 @@ struct coding_system
 #define ENCODE_FILE(name)                                                 \
   (! NILP (Vfile_name_coding_system)                                      \
    && XFASTINT (Vfile_name_coding_system) != 0                            \
-   ? Fencode_coding_string (name, Vfile_name_coding_system, Qt)                   \
+   ? code_convert_string_norecord (name, Vfile_name_coding_system, 1)     \
    : (! NILP (Vdefault_file_name_coding_system)                                   \
-      && XFASTINT (Vdefault_file_name_coding_system)                      \
-      ? Fencode_coding_string (name, Vdefault_file_name_coding_system, Qt) \
+      && XFASTINT (Vdefault_file_name_coding_system) != 0                 \
+      ? code_convert_string_norecord (name, Vdefault_file_name_coding_system, 1) \
       : name))
 
 /* Decode the file name NAME using the specified coding system
@@ -504,10 +504,10 @@ struct coding_system
 #define DECODE_FILE(name)                                                 \
   (! NILP (Vfile_name_coding_system)                                      \
    && XFASTINT (Vfile_name_coding_system) != 0                            \
-   ? Fdecode_coding_string (name, Vfile_name_coding_system, Qt)                   \
+   ? code_convert_string_norecord (name, Vfile_name_coding_system, 0)     \
    : (! NILP (Vdefault_file_name_coding_system)                                   \
-      && XFASTINT (Vdefault_file_name_coding_system)                      \
-      ? Fdecode_coding_string (name, Vdefault_file_name_coding_system, Qt) \
+      && XFASTINT (Vdefault_file_name_coding_system) != 0                 \
+      ? code_convert_string_norecord (name, Vdefault_file_name_coding_system, 0) \
       : name))
 
 /* Extern declarations.  */