comparison lisp/extents.el @ 272:c5d627a313b1 r21-0b34

Import from CVS: tag r21-0b34
author cvs
date Mon, 13 Aug 2007 10:28:48 +0200
parents 78478c60bfcd
children
comparison
equal deleted inserted replaced
271:c7b7086b0a39 272:c5d627a313b1
15 ;; WITHOUT ANY WARRANTY; without even the implied warranty of 15 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 ;; General Public License for more details. 17 ;; General Public License for more details.
18 18
19 ;; You should have received a copy of the GNU General Public License 19 ;; You should have received a copy of the GNU General Public License
20 ;; along with XEmacs; see the file COPYING. If not, write to the 20 ;; along with XEmacs; see the file COPYING. If not, write to the
21 ;; Free Software Foundation, 59 Temple Place - Suite 330, 21 ;; Free Software Foundation, 59 Temple Place - Suite 330,
22 ;; Boston, MA 02111-1307, USA. 22 ;; Boston, MA 02111-1307, USA.
23 23
24 ;;; Synched up with: Not in FSF. 24 ;;; Synched up with: Not in FSF.
25 25
30 ;;; Code: 30 ;;; Code:
31 31
32 ;; an alternative to map-extents. 32 ;; an alternative to map-extents.
33 (defun mapcar-extents (function &optional predicate buffer-or-string from to 33 (defun mapcar-extents (function &optional predicate buffer-or-string from to
34 flags property value) 34 flags property value)
35 "Applies FUNCTION to all extents which overlap a region in BUFFER-OR-STRING. 35 "Apply FUNCTION to all extents which overlap a region in BUFFER-OR-STRING.
36 The region is delimited by FROM and TO. FUNCTION is called with 36 The region is delimited by FROM and TO. FUNCTION is called with
37 one argument, the extent. A list of the values returned by FUNCTION 37 one argument, the extent. A list of the values returned by FUNCTION
38 is returned. An optional PREDICATE may be used to further limit the 38 is returned. An optional PREDICATE may be used to further limit the
39 extents over which FUNCTION is mapped. The optional arguments FLAGS, 39 extents over which FUNCTION is mapped. The optional arguments FLAGS,
40 PROPERTY, and VALUE may also be used to control the extents passed to 40 PROPERTY, and VALUE may also be used to control the extents passed to