emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs-25 939eb75: Fix bug in default setting of 'ps-paper-


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-25 939eb75: Fix bug in default setting of 'ps-paper-type'
Date: Mon, 16 May 2016 15:16:10 +0000 (UTC)

branch: emacs-25
commit 939eb753d521830cd931b45d72a745f1dd85ec09
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Fix bug in default setting of 'ps-paper-type'
    
    * lisp/international/mule-cmds.el (set-locale-environment): Don't
    inherit the value of locale from previous examination of different
    environment variables, which didn't look at LC_PAPER, and so using
    that value would effectively ignore the setting of LC_PAPER.
    (Bug#23544)
---
 lisp/international/mule-cmds.el |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index 001aad1..e7c7049 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -2733,8 +2733,8 @@ See also `locale-charset-language-names', 
`locale-language-names',
     ;; Default to A4 paper if we're not in a C, POSIX or US locale.
     ;; (See comments in Flocale_info.)
     (unless frame
-      (let ((locale locale)
-           (paper (locale-info 'paper)))
+      (let ((paper (locale-info 'paper))
+            locale)
        (if paper
            ;; This will always be null at the time of writing.
            (cond



reply via email to

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