diff options
| author | Jason Rumney | 2001-11-20 22:14:20 +0000 |
|---|---|---|
| committer | Jason Rumney | 2001-11-20 22:14:20 +0000 |
| commit | 086ceb30ca77205fa51b2ae34ad45f4f2ec08d7a (patch) | |
| tree | d63ef794fb010450b1247966895694d2cfff7897 | |
| parent | 33399dce783eda8f6296c9eb49cce4edc19cc176 (diff) | |
| download | emacs-086ceb30ca77205fa51b2ae34ad45f4f2ec08d7a.tar.gz emacs-086ceb30ca77205fa51b2ae34ad45f4f2ec08d7a.zip | |
(w32-system-coding-system): Change to an alias for
locale-coding-system.
(set-w32-system-coding-system): Document the above change.
Set locale-coding-system instead.
| -rw-r--r-- | lisp/w32-fns.el | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/lisp/w32-fns.el b/lisp/w32-fns.el index 7dd98e49e30..79b4e5c3007 100644 --- a/lisp/w32-fns.el +++ b/lisp/w32-fns.el | |||
| @@ -291,17 +291,22 @@ with a definition that really does change some file names." | |||
| 291 | "Set the coding system used by the Windows System to CODING-SYSTEM. | 291 | "Set the coding system used by the Windows System to CODING-SYSTEM. |
| 292 | This is used for things like passing font names with non-ASCII | 292 | This is used for things like passing font names with non-ASCII |
| 293 | characters in them to the system. For a list of possible values of | 293 | characters in them to the system. For a list of possible values of |
| 294 | CODING-SYSTEM, use \\[list-coding-systems]." | 294 | CODING-SYSTEM, use \\[list-coding-systems]. |
| 295 | |||
| 296 | This function is provided for backward compatibility, since | ||
| 297 | w32-system-coding-system is now an alias for `locale-coding-system'." | ||
| 295 | (interactive | 298 | (interactive |
| 296 | (list (let ((default w32-system-coding-system)) | 299 | (list (let ((default locale-coding-system)) |
| 297 | (read-coding-system | 300 | (read-coding-system |
| 298 | (format "Coding system for system calls (default, %s): " | 301 | (format "Coding system for system calls (default, %s): " |
| 299 | default) | 302 | default) |
| 300 | default)))) | 303 | default)))) |
| 301 | (check-coding-system coding-system) | 304 | (check-coding-system coding-system) |
| 302 | (setq w32-system-coding-system coding-system)) | 305 | (setq locale-coding-system coding-system)) |
| 303 | ;; Set system coding system initially to iso-latin-1 | 306 | |
| 304 | (set-w32-system-coding-system 'iso-latin-1) | 307 | ;; locale-coding-system was introduced to do the same thing as |
| 308 | ;; w32-system-coding-system. Use that instead. | ||
| 309 | (defvaralias 'w32-system-coding-system 'locale-coding-system) | ||
| 305 | 310 | ||
| 306 | ;;; Set to a system sound if you want a fancy bell. | 311 | ;;; Set to a system sound if you want a fancy bell. |
| 307 | (set-message-beep nil) | 312 | (set-message-beep nil) |