emacs-devel
[Top][All Lists]
Advanced

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

address@hidden: princ does not preserve text properties]


From: Richard Stallman
Subject: address@hidden: princ does not preserve text properties]
Date: Fri, 26 Dec 2003 23:13:31 -0500

What do people think of this idea?

------- Start of forwarded message -------
To: address@hidden
From: Kevin Rodgers <address@hidden>
Newsgroups: gnu.emacs.bug
Date: Wed, 24 Sep 2003 12:41:53 -0600
X-Orig-NNTP-Posting-Host: 170.207.51.80
X-Orig-X-Trace: news.uni-berlin.de 1064428906 5735133 170.207.51.80 (16
        [82742])
X-Accept-Language: en-us
Cc: 
Subject: princ does not preserve text properties
Sender: address@hidden

`princ' is used to print objects without quoting, which is the
recommended way to generate output that looks nice for humans (according
to the Output Functions node of the Emacs Lisp manual).  But outputting
strings that have text properties to a buffer with `princ' does not
preserve them.

For example, wouldn't it be nice if this worked:

(with-output-to-temp-buffer "*Foo Bar*"
   (princ (propertize "foo: bar" 'face 'bold))
   (terpri))

- -- 
Kevin Rodgers



_______________________________________________
Bug-gnu-emacs mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs
------- End of forwarded message -------




reply via email to

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