From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Char code to Emacs string. Date: Wed, 01 Jun 2011 09:12:02 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1306934220 24029 80.91.229.12 (1 Jun 2011 13:17:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Jun 2011 13:17:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 01 15:16:56 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QRlI8-0000VZ-2W for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Jun 2011 15:16:56 +0200 Original-Received: from localhost ([::1]:48413 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRlI5-00059L-V9 for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Jun 2011 09:16:54 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:36399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRlDQ-0004US-UI for help-gnu-emacs@gnu.org; Wed, 01 Jun 2011 09:12:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRlDO-0003qh-L7 for help-gnu-emacs@gnu.org; Wed, 01 Jun 2011 09:12:04 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:42426) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRlDO-0003qY-CC for help-gnu-emacs@gnu.org; Wed, 01 Jun 2011 09:12:02 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1QRlDO-0000KD-0R for help-gnu-emacs@gnu.org; Wed, 01 Jun 2011 09:12:02 -0400 In-reply-to: (message from Oleksandr Gavenko on Wed, 01 Jun 2011 10:59:29 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81274 Archived-At: > From: Oleksandr Gavenko > Date: Wed, 01 Jun 2011 10:59:29 +0300 > > This code not work because 'make-char' do not understand 'unicode' arg > (which intended to print chars with it unicode code): > > (let (i (start ?\x1B6) (end ?\x1B7C)) > (setq i start) > (while (<= i end) > (message "%s - %x" (make-char 'unicode i) i) > (setq i (+ 1 i)) > ) ) > > How I can get list of possible CHARSET for 'make-char' > and how this code must be fixed to work properly? make-char is an obsolete function that makes no sense at all in Unicode-based Emacs. Don't use it. And it wouldn't have helped you, because it returns the numerical code point of the character. That's because in Emacs, a character is just an integer, so every function that _creates_ characters always returns an integer value. What you want is not the character, but its string representation. That's what prin1-char is for.