From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Janis Papanagnou Newsgroups: gmane.emacs.help Subject: Re: How do I convert hex numbers to decimal ? Date: Mon, 07 Sep 2009 04:11:13 +0300 Organization: Aioe.org NNTP Server Message-ID: References: <1bfadfca-66ba-4aec-bb90-eb3a460c660c@l13g2000yqb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1252344365 6351 80.91.229.12 (7 Sep 2009 17:26:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Sep 2009 17:26:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 07 15:54:59 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MkegL-0006jr-HQ for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Sep 2009 15:54:58 +0200 Original-Received: from localhost ([127.0.0.1]:60619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MkegL-0002S0-20 for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Sep 2009 09:54:57 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!goblin2!goblin.stu.neva.ru!aioe.org!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.lang.lisp,comp.unix.shell Original-Lines: 22 Original-NNTP-Posting-Host: hAPgze2CohYBe7bgINALbQ.user.aioe.org Original-X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.0 Cancel-Lock: sha1:n3RADnWhLlVZXgNSrR+6v9/1vKM= User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) Original-Xref: news.stanford.edu gnu.emacs.help:172781 comp.lang.lisp:274997 comp.unix.shell:229712 X-Mailman-Approved-At: Mon, 07 Sep 2009 09:54:35 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67934 bolega wrote: > I have a bunch of related questions, but the solution is desired in > emacs lisp and to work inside emacs only. So why post to comp.unix.shell then? (Using printf is a shell way of doing what you want.) > > 1) How do I convert hex numbers to decimal ? > 2) How do I convert ascii to the character that it represents, short > of a table ? Any function or simpler algorithm ? > 3) What are the variables and how to set their values ? > > read-quoted-char-radix > quoted-char-radix > > 4) How do i find the emacs lisp code for C-x = to see how it gives the > ascii of the char at the cursor and then use to find the reverse, ie > ascii to char ? > > Thanks a lot to the star who can explain.