emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lisp-outline-level.


From: Lute Kamstra
Subject: Re: lisp-outline-level.
Date: Sun, 13 Feb 2005 19:23:47 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

David Kastrup <address@hidden> writes:

[...]

> or even (if preservation of match data is definitely not required)
>
> (defun lisp-outline-level
>   (let ((len (- (match-end 0) (match-beginning 0))))
>     (if  (looking-at ...)
>        1000
>      len)))

A quick look at lisp/outline.el gave me the impression that calls to
outline-level functions are embedded in (save-match-data ...) if the
match data should be preserved.

Lute.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]