diff options
| author | Glenn Morris | 2019-06-01 12:04:41 -0700 |
|---|---|---|
| committer | Glenn Morris | 2019-06-01 12:04:41 -0700 |
| commit | 17a1dae4af751c82e78991350559481e9fa42959 (patch) | |
| tree | 9d913268de49269e6116a8d368910dd6883ddb03 /src/coding.c | |
| parent | 1860b6d57bb51cff082d4cf596bdd054f493c4cd (diff) | |
| parent | 2168165ec05aa663d41998adb518e778899a8edd (diff) | |
| download | emacs-17a1dae4af751c82e78991350559481e9fa42959.tar.gz emacs-17a1dae4af751c82e78991350559481e9fa42959.zip | |
Merge from origin/emacs-26
2168165 ; * doc/lispref/nonascii.texi (Explicit Encoding): Fix typo.
8f18d12 Improve documentation of decoding into a unibyte buffer
7681a57 Remove redundants "See" before @xref or @pxref (Bug#35793)
9bee762 ; * src/coding.c: Improve commentary. (Bug#34765)
e61349c Fix customization type of recentf-max-saved-items
# Conflicts:
# src/coding.c
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/src/coding.c b/src/coding.c index 9cba6494a8d..5b9bfa17dd2 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -7803,15 +7803,22 @@ encode_coding (struct coding_system *coding) | |||
| 7803 | SAFE_FREE (); | 7803 | SAFE_FREE (); |
| 7804 | } | 7804 | } |
| 7805 | 7805 | ||
| 7806 | 7806 | /* Code-conversion operations use internal buffers. There's a single | |
| 7807 | /* Name (or base name) of work buffer for code conversion. */ | 7807 | reusable buffer, which is created the first time it is needed, and |
| 7808 | then never killed. When this reusable buffer is being used, the | ||
| 7809 | reused_workbuf_in_use flag is set. If we need another conversion | ||
| 7810 | buffer while the reusable one is in use (e.g., if code-conversion | ||
| 7811 | is reentered when another code-conversion is in progress), we | ||
| 7812 | create temporary buffers using the name of the reusable buffer as | ||
| 7813 | the base name, see code_conversion_save below. These temporary | ||
| 7814 | buffers are killed when the code-conversion operations that use | ||
| 7815 | them return, see code_conversion_restore below. */ | ||
| 7816 | |||
| 7817 | /* A string that serves as name of the reusable work buffer, and as base | ||
| 7818 | name of temporary work buffers used for code-conversion operations. */ | ||
| 7808 | Lisp_Object Vcode_conversion_workbuf_name; | 7819 | Lisp_Object Vcode_conversion_workbuf_name; |
| 7809 | 7820 | ||
| 7810 | /* A working buffer used by the top level conversion. Once it is | 7821 | /* The reusable working buffer, created once and never killed. */ |
| 7811 | created, it is never destroyed. It has the name | ||
| 7812 | Vcode_conversion_workbuf_name. The other working buffers are | ||
| 7813 | destroyed after the use is finished, and their names are modified | ||
| 7814 | versions of Vcode_conversion_workbuf_name. */ | ||
| 7815 | static Lisp_Object Vcode_conversion_reused_workbuf; | 7822 | static Lisp_Object Vcode_conversion_reused_workbuf; |
| 7816 | 7823 | ||
| 7817 | /* True iff Vcode_conversion_reused_workbuf is already in use. */ | 7824 | /* True iff Vcode_conversion_reused_workbuf is already in use. */ |
| @@ -9402,7 +9409,8 @@ START and END are buffer positions. | |||
| 9402 | Optional 4th arguments DESTINATION specifies where the decoded text goes. | 9409 | Optional 4th arguments DESTINATION specifies where the decoded text goes. |
| 9403 | If nil, the region between START and END is replaced by the decoded text. | 9410 | If nil, the region between START and END is replaced by the decoded text. |
| 9404 | If buffer, the decoded text is inserted in that buffer after point (point | 9411 | If buffer, the decoded text is inserted in that buffer after point (point |
| 9405 | does not move). | 9412 | does not move). If that buffer is unibyte, it receives the individual |
| 9413 | bytes of the internal representation of the decoded text. | ||
| 9406 | In those cases, the length of the decoded text is returned. | 9414 | In those cases, the length of the decoded text is returned. |
| 9407 | If DESTINATION is t, the decoded text is returned. | 9415 | If DESTINATION is t, the decoded text is returned. |
| 9408 | 9416 | ||
| @@ -9560,7 +9568,9 @@ if the decoding operation is trivial. | |||
| 9560 | 9568 | ||
| 9561 | Optional fourth arg BUFFER non-nil means that the decoded text is | 9569 | Optional fourth arg BUFFER non-nil means that the decoded text is |
| 9562 | inserted in that buffer after point (point does not move). In this | 9570 | inserted in that buffer after point (point does not move). In this |
| 9563 | case, the return value is the length of the decoded text. | 9571 | case, the return value is the length of the decoded text. If that |
| 9572 | buffer is unibyte, it receives the individual bytes of the internal | ||
| 9573 | representation of the decoded text. | ||
| 9564 | 9574 | ||
| 9565 | This function sets `last-coding-system-used' to the precise coding system | 9575 | This function sets `last-coding-system-used' to the precise coding system |
| 9566 | used (which may be different from CODING-SYSTEM if CODING-SYSTEM is | 9576 | used (which may be different from CODING-SYSTEM if CODING-SYSTEM is |