diff lisp/prim/subr.el @ 171:929b76928fce r20-3b12

Import from CVS: tag r20-3b12
author cvs
date Mon, 13 Aug 2007 09:47:52 +0200
parents 5a88923fcbfe
children 6075d714658b
line wrap: on
line diff
--- a/lisp/prim/subr.el	Mon Aug 13 09:47:00 2007 +0200
+++ b/lisp/prim/subr.el	Mon Aug 13 09:47:52 2007 +0200
@@ -519,11 +519,9 @@
 ;;;; Miscellanea.
 
 (defun buffer-substring-no-properties (beg end)
-  "Return the text from BEG to END, without extents, as a string."
+  "Return the text from BEG to END, without text properties, as a string."
   (let ((string (buffer-substring beg end)))
-    (map-extents (lambda (ext &rest junk)
-		   (delete-extent ext))
-		 string)
+    (set-text-properties 0 (length string) nil string)
     string))
 
 (defun ignore (&rest ignore)