diff options
| author | Eli Zaretskii | 2022-10-02 16:21:05 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2022-10-02 16:21:05 +0300 |
| commit | b69f640b316bdeac253d0fec09fb2649c8b900e9 (patch) | |
| tree | 7761ed16bfc43bac5c1c51c53cd419c599f7649b | |
| parent | 98dd8c6ebff7613721dadf294957916e23aaa8cf (diff) | |
| download | emacs-b69f640b316bdeac253d0fec09fb2649c8b900e9.tar.gz emacs-b69f640b316bdeac253d0fec09fb2649c8b900e9.zip | |
; Improve doc string of 'with-locale-environment'
* lisp/international/mule-cmds.el (with-locale-environment): Doc
fix.
| -rw-r--r-- | lisp/international/mule-cmds.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 8bece9a3ee6..48e5c9aa1fe 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -2664,7 +2664,13 @@ For example, translate \"swedish\" into \"sv_SE.ISO8859-1\"." | |||
| 2664 | "The currently set locale environment.") | 2664 | "The currently set locale environment.") |
| 2665 | 2665 | ||
| 2666 | (defmacro with-locale-environment (locale-name &rest body) | 2666 | (defmacro with-locale-environment (locale-name &rest body) |
| 2667 | "Execute BODY with the locale set to LOCALE-NAME." | 2667 | "Execute BODY with the locale set to LOCALE-NAME. |
| 2668 | |||
| 2669 | Note that changing the locale modifies settings that affect | ||
| 2670 | the display, such as `terminal-coding-system' and `standard-display-table', | ||
| 2671 | but this macro does not by itself perform redisplay. If BODY needs to | ||
| 2672 | display something with LOCALE-NAME's settings, include a call | ||
| 2673 | to `redraw-frame' in BODY." | ||
| 2668 | (declare (indent 1) (debug (sexp def-body))) | 2674 | (declare (indent 1) (debug (sexp def-body))) |
| 2669 | (let ((current (gensym))) | 2675 | (let ((current (gensym))) |
| 2670 | `(let ((,current current-locale-environment)) | 2676 | `(let ((,current current-locale-environment)) |