Re: Substring-no-properties with Xemacs?

<[email protected]> Thu, 7 May 2009 18:03:35 +0200
Newsgroups gmane.emacs.code-browser
Message-ID <[email protected]>
Thank you - i will integrate this to ECB... I will check in and upload another CVS-snapshot tonight - including some fixes related to vc-support... 

-----Ursprüngliche Nachricht-----
Von: Henry S. Thompson [mailto:[email protected]] 
Gesendet: Donnerstag, 7. Mai 2009 17:49
An: Berndl, Klaus
Cc: [email protected]
Betreff: Re: [ECB-list] Substring-no-properties with Xemacs?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ht writes:

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

And to clarify further, I have checked, the above does _not_ have side-effects.  That is, the original string does not lose its properties.

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)

iD4DBQFKAwLXkjnJixAXWBoRAh3yAJwNqk6CxNmH4qCKCug47BPt0o+ZlQCVHdo1
ZmP3n4q+J9AjeQp8aIrMjA==
=ZY6B
-----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