aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2008-12-03 16:36:59 +0000
committerJuanma Barranquero2008-12-03 16:36:59 +0000
commit555e23cf94dbb05ef4f7a69d04a43d4b0c4672a7 (patch)
tree810aea9f3bbd9672b02081b0cd2a27b0cfd5aa00
parente4fe4569a9f4fb296dbcc154ea2b0a502f98b2b2 (diff)
downloademacs-555e23cf94dbb05ef4f7a69d04a43d4b0c4672a7.tar.gz
emacs-555e23cf94dbb05ef4f7a69d04a43d4b0c4672a7.zip
* w32-fns.el (w32-list-locales): Use `with-output-to-temp-buffer',
like most list-* commands.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/w32-fns.el25
2 files changed, 14 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 707b4bc3616..674ee0959a0 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12008-12-03 Juanma Barranquero <lekktu@gmail.com> 12008-12-03 Juanma Barranquero <lekktu@gmail.com>
2 2
3 * w32-fns.el (w32-list-locales): Use `with-output-to-temp-buffer',
4 like most list-* commands.
5
3 * international/mule-diag.el (unicodedata-file, unicode-data): Remove. 6 * international/mule-diag.el (unicodedata-file, unicode-data): Remove.
4 They already exist in descr-text.el as `describe-char-unicodedata-file' 7 They already exist in descr-text.el as `describe-char-unicodedata-file'
5 and `describe-char-unicode-data'. 8 and `describe-char-unicode-data'.
diff --git a/lisp/w32-fns.el b/lisp/w32-fns.el
index 557681e86e5..5228e4f8fdf 100644
--- a/lisp/w32-fns.el
+++ b/lisp/w32-fns.el
@@ -219,20 +219,17 @@ You should set this to t when using a non-system shell.\n\n"))))
219 (interactive) 219 (interactive)
220 (when (null w32-valid-locales) 220 (when (null w32-valid-locales)
221 (setq w32-valid-locales (sort (w32-get-valid-locale-ids) #'<))) 221 (setq w32-valid-locales (sort (w32-get-valid-locale-ids) #'<)))
222 (switch-to-buffer-other-window (get-buffer-create "*Supported Locales*")) 222 (with-output-to-temp-buffer "*Supported Locales*"
223 (erase-buffer) 223 (princ "LCID\tAbbrev\tFull name\n\n")
224 (insert "LCID\tAbbrev\tFull name\n\n") 224 (princ (decode-coding-string (mapconcat
225 (insert (decode-coding-string (mapconcat 225 (lambda (x)
226 (lambda (x) 226 (format "%d\t%s\t%s"
227 (format "%d\t%s\t%s" 227 x
228 x 228 (w32-get-locale-info x)
229 (w32-get-locale-info x) 229 (w32-get-locale-info x t)))
230 (w32-get-locale-info x t))) 230 w32-valid-locales "\n")
231 w32-valid-locales "\n") 231 locale-coding-system))
232 locale-coding-system)) 232 (princ "\n")))
233 (insert "\n")
234 (goto-char (point-min)))
235
236 233
237;;; Setup Info-default-directory-list to include the info directory 234;;; Setup Info-default-directory-list to include the info directory
238;;; near where Emacs executable was installed. We used to set INFOPATH, 235;;; near where Emacs executable was installed. We used to set INFOPATH,