diff lisp/prim/subr.el @ 151:59463afc5666 r20-3b2

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