[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [h-e-w] look for help with emacs and chinese GB
From: |
Eli Daniel |
Subject: |
RE: [h-e-w] look for help with emacs and chinese GB |
Date: |
Tue, 29 Jan 2002 10:19:46 -0500 |
Joe,
This is just an elisp error. If the example you give is really in the FAQ,
it needs to be changed.
The problem is that you can't evaluate functions inside a quoted list. The
simplest way to get this to work is to use the backtick operator:
(setq default-frame-alist
(append
`((font . ,(create-fontset-from-ascii-font "chinese-gb2312:-*-MS
Song-normal-r-*-*-12-*-*-*-c-*-gb2312-*")))
default-frame-alist))(add-to-list 'default-frame-alist
Or more simply,
(add-to-list 'default-frame-alist
`((font . ,(create-fontset-from-ascii-font
"chinese-gb2312:-*-MS Song-normal-r-*-*-12-*-*-*-c-*-gb2312-*"))))
The elisp manual has a detailed explanation of how this works (under
backtick) if you're interested.
-Eli Daniel
> hi
> firstly , thank you for your help.
> but i found another problem that when i add the lines below to my .emacs
>
> (setq default-frame-alist
> (append
> '((font . (create-fontset-from-ascii-font
> "chinese-gb2312:-*-MS
> Song-normal-r-*-*-12-*-*-*-c-*-gb2312-*")))
> default-frame-alist))
>
> emacs 21.1 reports error when starting
> " wrong type argument: stringp,(create-fontset-from-ascii-font
> "chinese-gb2312:-*-MS Song-normal-r-*-*-12-*-*-*-c-*-gb2312-*") "