comparison lisp/x-init.el @ 4489:b75b075a9041

Support displaying invalid UTF-8 in language-environment-specific ways. 2008-08-05 Aidan Kehoe <kehoea@parhasard.net> * specifier.el (current-display-table): Initialise this here, not in x-init.el, since we want it even on non-X builds to use the support for displaying Unicode error sequences according to the current locale. * mule/mule-cmds.el (set-language-info): Document error-sequence-coding-system, used to describe how to display characters that are not valid Unicode on disk. * mule/mule-cmds.el (finish-set-language-environment): Implement error-sequence-coding-system. * unicode.el (unicode-error-sequence-warning-face): New face, to make it possible to distinguish invalid Unicode sequences from the characters given by the valid Unicode sequences. * mule/cyrillic.el ("Russian"): ("Ukrainian"): ("Bulgarian"): ("Belarusian"): ("Cyrillic-ALT"): Add support for error-sequence-coding-system for all these languages. * mule/latin.el: Add support for error-sequence-coding-system for the Latin-alphabet language environments.
author Aidan Kehoe <kehoea@parhasard.net>
date Tue, 05 Aug 2008 09:06:41 +0200
parents e3ef34f57070
children fdc76fec36d3
comparison
equal deleted inserted replaced
4488:6b0000935adc 4489:b75b075a9041
310 This function is a trivial wrapper around `make-frame-on-device'." 310 This function is a trivial wrapper around `make-frame-on-device'."
311 (interactive "sMake frame on display: ") 311 (interactive "sMake frame on display: ")
312 (if (equal display "") (setq display nil)) 312 (if (equal display "") (setq display nil))
313 (make-frame-on-device 'x display props)) 313 (make-frame-on-device 'x display props))
314 314
315 ;; Character 160 (octal 0240) displays incorrectly under X apparently
316 ;; due to a universally crocked font width specification. Display it
317 ;; as a space since that's what seems to be expected.
318 ;;
319 ;; (make-char-table 'generic) instead of (make-display-table) because
320 ;; make-display-table isn't dumped, and this file is.
321
322 (let ((tab (make-char-table 'generic)))
323 (put-char-table 160 " " tab)
324 (set-specifier current-display-table tab 'global 'x))
325
326 ;;; x-init.el ends here 315 ;;; x-init.el ends here