comparison lisp/international/mule-cmds.el @ 90085:f8a7a9ba3d08

Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-7 Merge from emacs--cvs-trunk--0 Patches applied: * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-52 - miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-53 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-54 Update from CVS: lisp/cus-start.el (all): Add `undo-outer-limit'. * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-55 - miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-57 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-58 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-7 Merge from emacs--cvs-trunk--0 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-8 - miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-11 Update from CVS
author Miles Bader <miles@gnu.org>
date Sat, 29 Jan 2005 00:06:24 +0000
parents 197b7306b2bb baaed9bd0e12
children ac848d0fb1d2
comparison
equal deleted inserted replaced
90084:befae6bafecb 90085:f8a7a9ba3d08
1 ;;; mule-cmds.el --- commands for mulitilingual environment -*-coding: iso-2022-7bit -*- 1 ;;; mule-cmds.el --- commands for mulitilingual environment -*-coding: iso-2022-7bit -*-
2 2
3 ;; Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. 3 ;; Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
4 ;; Copyright (C) 1995, 2003 Electrotechnical Laboratory, JAPAN. 4 ;; Copyright (C) 1995, 2003 Electrotechnical Laboratory, JAPAN.
5 ;; Licensed to the Free Software Foundation. 5 ;; Licensed to the Free Software Foundation.
6 ;; Copyright (C) 2003 6 ;; Copyright (C) 2003
7 ;; National Institute of Advanced Industrial Science and Technology (AIST) 7 ;; National Institute of Advanced Industrial Science and Technology (AIST)
8 ;; Registration Number H13PRO009 8 ;; Registration Number H13PRO009
1837 ;; Unibyte Emacs on MS-DOS wants to display all 8-bit characters with 1837 ;; Unibyte Emacs on MS-DOS wants to display all 8-bit characters with
1838 ;; the native font, and codes 160 and 146 stand for something very 1838 ;; the native font, and codes 160 and 146 stand for something very
1839 ;; different there. 1839 ;; different there.
1840 (or (and (eq window-system 'pc) (not default-enable-multibyte-characters)) 1840 (or (and (eq window-system 'pc) (not default-enable-multibyte-characters))
1841 (progn 1841 (progn
1842 ;; Make non-line-break space display as a plain space. 1842 ;; Most X fonts used to do the wrong thing for latin-1 code 160.
1843 ;; Most X fonts do the wrong thing for code 160. 1843 (unless (and (eq window-system 'x)
1844 (aset standard-display-table 160 [32]) 1844 ;; XFree86 4 has fixed the fonts.
1845 ;; With luck, non-Latin-1 fonts are more recent and so don't 1845 (string= "The XFree86 Project, Inc" (x-server-vendor))
1846 ;; have this bug. 1846 (> (aref (number-to-string (nth 2 (x-server-version))) 0)
1847 (aset standard-display-table (make-char 'latin-iso8859-1 160) [32]) 1847 ?3))
1848 ;; Make non-line-break space display as a plain space.
1849 (aset standard-display-table 160 [32]))
1848 ;; Most Windows programs send out apostrophes as \222. Most X fonts 1850 ;; Most Windows programs send out apostrophes as \222. Most X fonts
1849 ;; don't contain a character at that position. Map it to the ASCII 1851 ;; don't contain a character at that position. Map it to the ASCII
1850 ;; apostrophe. [This is actually RIGHT SINGLE QUOTATION MARK, 1852 ;; apostrophe. [This is actually RIGHT SINGLE QUOTATION MARK,
1851 ;; U+2019, normally from the windows-1252 character set. XFree 4 1853 ;; U+2019, normally from the windows-1252 character set. XFree 4
1852 ;; fonts probably have the appropriate glyph at this position, 1854 ;; fonts probably have the appropriate glyph at this position,
1853 ;; so they could use standard-display-8bit. It's better to use a 1855 ;; so they could use standard-display-8bit. It's better to use a
1854 ;; proper windows-1252 coding system. --fx] 1856 ;; proper windows-1252 coding system. --fx]
1855 (aset standard-display-table 146 [39]) 1857 (aset standard-display-table 146 [39]))))
1856 ;; XFree86 4 has changed most of the fonts from their designed
1857 ;; versions such that `' no longer appears as balanced quotes.
1858 ;; Assume it has iso10646 fonts installed, so we can display
1859 ;; balanced quotes.
1860 (when (and (eq window-system 'x)
1861 (string= "The XFree86 Project, Inc" (x-server-vendor))
1862 (> (aref (number-to-string (nth 2 (x-server-version))) 0)
1863 ?3))
1864 ;; We suppress these setting for the moment because the
1865 ;; above assumption is wrong.
1866 ;; (aset standard-display-table ?' [?,F"(B])
1867 ;; (aset standard-display-table ?` [?,F!(B])
1868 ;; The fonts don't have the relevant bug.
1869 (aset standard-display-table 160 nil)
1870 (aset standard-display-table (make-char 'latin-iso8859-1 160)
1871 nil)))))
1872 1858
1873 (defun set-language-environment-coding-systems (language-name 1859 (defun set-language-environment-coding-systems (language-name
1874 &optional eol-type) 1860 &optional eol-type)
1875 "Do various coding system setups for language environment LANGUAGE-NAME. 1861 "Do various coding system setups for language environment LANGUAGE-NAME.
1876 1862
1922 (error "No documentation for the specified language")) 1908 (error "No documentation for the specified language"))
1923 (if (symbolp language-name) 1909 (if (symbolp language-name)
1924 (setq language-name (symbol-name language-name))) 1910 (setq language-name (symbol-name language-name)))
1925 (dolist (feature (get-language-info language-name 'features)) 1911 (dolist (feature (get-language-info language-name 'features))
1926 (require feature)) 1912 (require feature))
1927 (let ((doc (get-language-info language-name 'documentation)) 1913 (let ((doc (get-language-info language-name 'documentation)))
1928 pos)
1929 (help-setup-xref (list #'describe-language-environment language-name) 1914 (help-setup-xref (list #'describe-language-environment language-name)
1930 (interactive-p)) 1915 (interactive-p))
1931 (with-output-to-temp-buffer (help-buffer) 1916 (with-output-to-temp-buffer (help-buffer)
1932 (save-excursion 1917 (save-excursion
1933 (set-buffer standard-output) 1918 (set-buffer standard-output)