help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to see the value of each char in a string?


From: David Combs
Subject: Re: How to see the value of each char in a string?
Date: Wed, 27 Nov 2002 07:36:11 +0000 (UTC)

In article <viPE9.21$fP2.761@paloalto-snr1.gtei.net>,
Barry Margolin  <barmar@genuity.net> wrote:
>In article <arv4rj$qdk$1@panix2.panix.com>,
>David Combs <dkcombs@panix.com> 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 <return>, and got BEEP.
>>
>>I started hitting C-c's, couldn't kill the command I had
>>given.
>>
>>Whenever I hit another <return>, 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]