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

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

Re: Char Printing


From: Ryan Bowman
Subject: Re: Char Printing
Date: Wed, 25 May 2005 12:39:21 -0700 (PDT)

--- Kevin Rodgers <ihs_4664@yahoo.com> wrote:
> Ryan Bowman wrote:
>  > Suppose I have an integer, say 10.  If I (format
> "%c" 10)
>  > it prints a newline.
> 
> No, it returns a string containing just a linefeed
> character.
> 
>  > If I do (text-char-description 10) it prints
> "^J".
> 
> No, it returns a string containing two characters,
> caret and capital J.
> 
>  > Is there a function that will take an int (10)
> and print "\n"?
> 
> If you want to print a newline, use (terpri).  If
> you want to insert a
> newline, use (insert ?\n).
> 
> -- 
> Kevin Rodgers

Sorry I wasn't precise enough, I want something that
it returns a string containing the chars \ and n,  I
can use text-char-description if I have to, but I'm
more use to \n than ^J.

----
Ryan Bowman

All truth can be reduced to a Seinfeld episode.

----

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




reply via email to

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