emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master b69f640b31 1/2: ; Improve doc string of 'with-locale-environment'


From: Eli Zaretskii
Subject: master b69f640b31 1/2: ; Improve doc string of 'with-locale-environment'
Date: Sun, 2 Oct 2022 09:24:25 -0400 (EDT)

branch: master
commit b69f640b316bdeac253d0fec09fb2649c8b900e9
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    ; Improve doc string of 'with-locale-environment'
    
    * lisp/international/mule-cmds.el (with-locale-environment): Doc
    fix.
---
 lisp/international/mule-cmds.el | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index 8bece9a3ee..48e5c9aa1f 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\"."
   "The currently set locale environment.")
 
 (defmacro with-locale-environment (locale-name &rest body)
-  "Execute BODY with the locale set to LOCALE-NAME."
+  "Execute BODY with the locale set to LOCALE-NAME.
+
+Note that changing the locale modifies settings that affect
+the display, such as `terminal-coding-system' and `standard-display-table',
+but this macro does not by itself perform redisplay.  If BODY needs to
+display something with LOCALE-NAME's settings, include a call
+to `redraw-frame' in BODY."
   (declare (indent 1) (debug (sexp def-body)))
   (let ((current (gensym)))
     `(let ((,current current-locale-environment))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]