unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* why is `propertize' defined in C?
@ 2011-10-21 16:49 Drew Adams
  2011-10-23  7:25 ` Chong Yidong
  0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2011-10-21 16:49 UTC (permalink / raw)
  To: emacs-devel

Does the C definition of `propertize' do anything other than this? 

(defun propertize (string &rest properties)
  (let ((new  (copy-sequence string))
    (add-text-properties 0 (length new) properties new)
    new))

(Well, to get the exact same result as the C version, PROPERTIES would need to
be reversed before adding.)

What's the point of defining something like this in C?




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

* Re: why is `propertize' defined in C?
  2011-10-21 16:49 why is `propertize' defined in C? Drew Adams
@ 2011-10-23  7:25 ` Chong Yidong
  0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2011-10-23  7:25 UTC (permalink / raw)
  To: Drew Adams; +Cc: emacs-devel

"Drew Adams" <drew.adams@oracle.com> writes:

> What's the point of defining something like this in C?

No reason AFAICT; we can move it to Lisp in a future version.



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

end of thread, other threads:[~2011-10-23  7:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-21 16:49 why is `propertize' defined in C? Drew Adams
2011-10-23  7:25 ` Chong Yidong

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).