diff options
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/coding.c b/src/coding.c index 2142e7fa518..1afa4aa4749 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -7821,7 +7821,7 @@ encode_coding (struct coding_system *coding) | |||
| 7821 | 7821 | ||
| 7822 | /* A string that serves as name of the reusable work buffer, and as base | 7822 | /* A string that serves as name of the reusable work buffer, and as base |
| 7823 | name of temporary work buffers used for code-conversion operations. */ | 7823 | name of temporary work buffers used for code-conversion operations. */ |
| 7824 | Lisp_Object Vcode_conversion_workbuf_name; | 7824 | static Lisp_Object Vcode_conversion_workbuf_name; |
| 7825 | 7825 | ||
| 7826 | /* The reusable working buffer, created once and never killed. */ | 7826 | /* The reusable working buffer, created once and never killed. */ |
| 7827 | static Lisp_Object Vcode_conversion_reused_workbuf; | 7827 | static Lisp_Object Vcode_conversion_reused_workbuf; |
| @@ -7839,7 +7839,7 @@ code_conversion_restore (Lisp_Object arg) | |||
| 7839 | if (! NILP (workbuf)) | 7839 | if (! NILP (workbuf)) |
| 7840 | { | 7840 | { |
| 7841 | if (EQ (workbuf, Vcode_conversion_reused_workbuf)) | 7841 | if (EQ (workbuf, Vcode_conversion_reused_workbuf)) |
| 7842 | reused_workbuf_in_use = 0; | 7842 | reused_workbuf_in_use = false; |
| 7843 | else | 7843 | else |
| 7844 | Fkill_buffer (workbuf); | 7844 | Fkill_buffer (workbuf); |
| 7845 | } | 7845 | } |
| @@ -7857,13 +7857,13 @@ code_conversion_save (bool with_work_buf, bool multibyte) | |||
| 7857 | { | 7857 | { |
| 7858 | Lisp_Object name | 7858 | Lisp_Object name |
| 7859 | = Fgenerate_new_buffer_name (Vcode_conversion_workbuf_name, Qnil); | 7859 | = Fgenerate_new_buffer_name (Vcode_conversion_workbuf_name, Qnil); |
| 7860 | workbuf = Fget_buffer_create (name); | 7860 | workbuf = Fget_buffer_create (name, Qt); |
| 7861 | } | 7861 | } |
| 7862 | else | 7862 | else |
| 7863 | { | 7863 | { |
| 7864 | if (NILP (Fbuffer_live_p (Vcode_conversion_reused_workbuf))) | 7864 | if (NILP (Fbuffer_live_p (Vcode_conversion_reused_workbuf))) |
| 7865 | Vcode_conversion_reused_workbuf | 7865 | Vcode_conversion_reused_workbuf |
| 7866 | = Fget_buffer_create (Vcode_conversion_workbuf_name); | 7866 | = Fget_buffer_create (Vcode_conversion_workbuf_name, Qt); |
| 7867 | workbuf = Vcode_conversion_reused_workbuf; | 7867 | workbuf = Vcode_conversion_reused_workbuf; |
| 7868 | } | 7868 | } |
| 7869 | } | 7869 | } |
| @@ -7881,7 +7881,7 @@ code_conversion_save (bool with_work_buf, bool multibyte) | |||
| 7881 | bset_undo_list (current_buffer, Qt); | 7881 | bset_undo_list (current_buffer, Qt); |
| 7882 | bset_enable_multibyte_characters (current_buffer, multibyte ? Qt : Qnil); | 7882 | bset_enable_multibyte_characters (current_buffer, multibyte ? Qt : Qnil); |
| 7883 | if (EQ (workbuf, Vcode_conversion_reused_workbuf)) | 7883 | if (EQ (workbuf, Vcode_conversion_reused_workbuf)) |
| 7884 | reused_workbuf_in_use = 1; | 7884 | reused_workbuf_in_use = true; |
| 7885 | set_buffer_internal (current); | 7885 | set_buffer_internal (current); |
| 7886 | } | 7886 | } |
| 7887 | 7887 | ||
| @@ -11639,7 +11639,7 @@ syms_of_coding (void) | |||
| 11639 | staticpro (&Vcode_conversion_workbuf_name); | 11639 | staticpro (&Vcode_conversion_workbuf_name); |
| 11640 | Vcode_conversion_workbuf_name = build_pure_c_string (" *code-conversion-work*"); | 11640 | Vcode_conversion_workbuf_name = build_pure_c_string (" *code-conversion-work*"); |
| 11641 | 11641 | ||
| 11642 | reused_workbuf_in_use = 0; | 11642 | reused_workbuf_in_use = false; |
| 11643 | PDUMPER_REMEMBER_SCALAR (reused_workbuf_in_use); | 11643 | PDUMPER_REMEMBER_SCALAR (reused_workbuf_in_use); |
| 11644 | 11644 | ||
| 11645 | DEFSYM (Qcharset, "charset"); | 11645 | DEFSYM (Qcharset, "charset"); |