From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: dkcombs@panix.com (David Combs) Newsgroups: gmane.emacs.help Subject: Re: How to see the value of each char in a string? Date: Wed, 27 Nov 2002 07:36:11 +0000 (UTC) Organization: Public Access Networks Corp. Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1038382859 4124 80.91.224.249 (27 Nov 2002 07:40:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 27 Nov 2002 07:40:59 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Gwob-00014G-00 for ; Wed, 27 Nov 2002 08:40:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18GwpC-000650-00; Wed, 27 Nov 2002 02:41:34 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 49 Original-NNTP-Posting-Host: panix1.panix.com Original-X-Trace: reader1.panix.com 1038382571 5350 166.84.1.1 (27 Nov 2002 07:36:11 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Wed, 27 Nov 2002 07:36:11 +0000 (UTC) X-Newsreader: trn 4.0-test74 (May 26, 2000) Originator: dkcombs@panix.com (David Combs) Original-Xref: shelby.stanford.edu gnu.emacs.help:107539 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:4089 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4089 In article , Barry Margolin wrote: >In article , >David Combs wrote: >>How to see the value of each char in a (long) string? >> >>Here's why I need to do that: >> >>In *shell*, (using csh), I yanked a command onto after the >>shell-promt, hit , and got BEEP. >> >>I started hitting C-c's, couldn't kill the command I had >>given. >> >>Whenever I hit another , I'd get echoed a ^G. > >My guess is that the command included a pipe to "more", and that's more's >prompt. Full-screen programs like this don't work well in the *shell* >buffer. Try typing "q" to get out. > >I don't understand what this problem has to do with your original question >about seeing the value of each character in a string. It doesn't have anything to do with it, except that I was puzzled by what it was doing, with all the BEEPS I was getting. The real question is: how to find the value of each char in a string. Is there a function that already does that? Maybe someone can show me the two or three lines of elisp code to show the string with, for each char, its numerical value (er, index, I guess). Like, for "foo": f 146 o 157 o 157 Easy to whip out something that? (Would take me *many hours*, with my lack of elisp ability!) Thanks! David