diff options
| author | Eli Zaretskii | 2019-05-23 17:36:06 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2019-05-23 17:36:06 +0300 |
| commit | 9bee76227c04a5bedbda77c7ada2e5b2aa95e2c9 (patch) | |
| tree | 9864abd3123d6d5390fccbbf51021b2841674f7c /src/coding.c | |
| parent | e61349c22412c0eaa7c03e08bfb0467a0a79708a (diff) | |
| download | emacs-9bee76227c04a5bedbda77c7ada2e5b2aa95e2c9.tar.gz emacs-9bee76227c04a5bedbda77c7ada2e5b2aa95e2c9.zip | |
; * src/coding.c: Improve commentary. (Bug#34765)
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/coding.c b/src/coding.c index 249abd9dd4e..3a463b9905d 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -7782,15 +7782,22 @@ encode_coding (struct coding_system *coding) | |||
| 7782 | SAFE_FREE (); | 7782 | SAFE_FREE (); |
| 7783 | } | 7783 | } |
| 7784 | 7784 | ||
| 7785 | 7785 | /* Code-conversion operations use internal buffers. There's a single | |
| 7786 | /* Name (or base name) of work buffer for code conversion. */ | 7786 | reusable buffer, which is created the first time it is needed, and |
| 7787 | then never killed. When this reusable buffer is being used, the | ||
| 7788 | reused_workbuf_in_use flag is set. If we need another conversion | ||
| 7789 | buffer while the reusable one is in use (e.g., if code-conversion | ||
| 7790 | is reentered when another code-conversion is in progress), we | ||
| 7791 | create temporary buffers using the name of the reusable buffer as | ||
| 7792 | the base name, see code_conversion_save below. These temporary | ||
| 7793 | buffers are killed when the code-conversion operations that use | ||
| 7794 | them return, see code_conversion_restore below. */ | ||
| 7795 | |||
| 7796 | /* A string that serves as name of the reusable work buffer, and as base | ||
| 7797 | name of temporary work buffers used for code-conversion operations. */ | ||
| 7787 | static Lisp_Object Vcode_conversion_workbuf_name; | 7798 | static Lisp_Object Vcode_conversion_workbuf_name; |
| 7788 | 7799 | ||
| 7789 | /* A working buffer used by the top level conversion. Once it is | 7800 | /* The reusable working buffer, created once and never killed. */ |
| 7790 | created, it is never destroyed. It has the name | ||
| 7791 | Vcode_conversion_workbuf_name. The other working buffers are | ||
| 7792 | destroyed after the use is finished, and their names are modified | ||
| 7793 | versions of Vcode_conversion_workbuf_name. */ | ||
| 7794 | static Lisp_Object Vcode_conversion_reused_workbuf; | 7801 | static Lisp_Object Vcode_conversion_reused_workbuf; |
| 7795 | 7802 | ||
| 7796 | /* True iff Vcode_conversion_reused_workbuf is already in use. */ | 7803 | /* True iff Vcode_conversion_reused_workbuf is already in use. */ |