all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: Char Printing
@ 2005-05-25 19:39 Ryan Bowman
  0 siblings, 0 replies; 5+ messages in thread
From: Ryan Bowman @ 2005-05-25 19:39 UTC (permalink / raw)



--- 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 

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <mailman.1788.1117043746.25862.help-gnu-emacs@gnu.org>]
* Char Printing
@ 2005-05-25 17:31 Ryan Bowman
  2005-05-25 18:05 ` Drew Adams
  2005-05-25 18:21 ` Kevin Rodgers
  0 siblings, 2 replies; 5+ messages in thread
From: Ryan Bowman @ 2005-05-25 17:31 UTC (permalink / raw)


Suppose I have an integer, say 10.  If I (format "%c"
10) it prints a newline.  If I do
(text-char-description 10) it prints "^J".  Is there a
function that will take an int (10) and print "\n"?

----
Ryan Bowman

All truth can be reduced to a Seinfeld episode.

----


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-05-25 20:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-25 19:39 Char Printing Ryan Bowman
     [not found] <mailman.1788.1117043746.25862.help-gnu-emacs@gnu.org>
2005-05-25 20:31 ` Pascal Bourguignon
  -- strict thread matches above, loose matches on Subject: below --
2005-05-25 17:31 Ryan Bowman
2005-05-25 18:05 ` Drew Adams
2005-05-25 18:21 ` Kevin Rodgers

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.