Re: Substring-no-properties with Xemacs?
<[email protected]> Thu, 7 May 2009 16:05:22 +0200
| Newsgroups | gmane.emacs.code-browser |
|---|---|
| Message-ID | <[email protected]> |
Is your supplied function save, means it does not change the original string but returns a copy without properties? Thanks! Klaus -----Ursprüngliche Nachricht----- Von: Henry S. Thompson [mailto:[email protected]] Gesendet: Donnerstag, 7. Mai 2009 15:59 An: Berndl, Klaus Cc: [email protected] Betreff: Re: [ECB-list] Substring-no-properties with Xemacs? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [anon] writes: > what is the equivalent of this functrion in XEmacs? (defun substring-no-properties (string &optional start end) (let* ((start (or start 0)) (end (or end (length string))) (string (substring string start end))) (set-text-properties start end nil string) string)) :-) As far as I can see, there is no equivalent supplied with XEmacs. Even buffer-substring-no-properties is a builtin. ht - -- Henry S. Thompson, School of Informatics, University of Edinburgh Half-time member of W3C Team 10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440 Fax: (44) 131 651-1426, e-mail: [email protected] URL: http://www.ltg.ed.ac.uk/~ht/ [mail really from me _always_ has this .sig -- mail without it is forged spam] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFKAukSkjnJixAXWBoRAhveAJ40MyZ1f1RKBYedLSosdJl1MW+c0gCdHsfU CiEN4qH98ZFmv4rt57wZKoc= =IYvp -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com