[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/subr.el
From: |
David Kastrup |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/subr.el |
Date: |
Sat, 19 Feb 2005 13:54:19 -0500 |
Index: emacs/lisp/subr.el
diff -c emacs/lisp/subr.el:1.434 emacs/lisp/subr.el:1.435
*** emacs/lisp/subr.el:1.434 Wed Feb 9 15:50:41 2005
--- emacs/lisp/subr.el Sat Feb 19 18:54:17 2005
***************
*** 2221,2230 ****
(defun subregexp-context-p (regexp pos &optional start)
"Return non-nil if POS is in a normal subregexp context in REGEXP.
A subregexp context is one where a sub-regexp can appear.
! A non-subregexp context is for example within brackets, or within a repetition
! bounds operator \\{..\\}, or right after a \\.
! If START is non-nil, it should be a position in REGEXP, smaller than POS,
! and known to be in a subregexp context."
;; Here's one possible implementation, with the great benefit that it
;; reuses the regexp-matcher's own parser, so it understands all the
;; details of the syntax. A disadvantage is that it needs to match the
--- 2221,2230 ----
(defun subregexp-context-p (regexp pos &optional start)
"Return non-nil if POS is in a normal subregexp context in REGEXP.
A subregexp context is one where a sub-regexp can appear.
! A non-subregexp context is for example within brackets, or within a
! repetition bounds operator `\\=\\{...\\}', or right after a `\\'.
! If START is non-nil, it should be a position in REGEXP, smaller
! than POS, and known to be in a subregexp context."
;; Here's one possible implementation, with the great benefit that it
;; reuses the regexp-matcher's own parser, so it understands all the
;; details of the syntax. A disadvantage is that it needs to match the