diff options
| author | Juanma Barranquero | 2008-12-03 16:36:59 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2008-12-03 16:36:59 +0000 |
| commit | 555e23cf94dbb05ef4f7a69d04a43d4b0c4672a7 (patch) | |
| tree | 810aea9f3bbd9672b02081b0cd2a27b0cfd5aa00 | |
| parent | e4fe4569a9f4fb296dbcc154ea2b0a502f98b2b2 (diff) | |
| download | emacs-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/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/w32-fns.el | 25 |
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 @@ | |||
| 1 | 2008-12-03 Juanma Barranquero <lekktu@gmail.com> | 1 | 2008-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, |