changeset 44189:ee2adfa7e248

(xml-lite-in-string-p): Simplify.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 27 Mar 2002 22:27:44 +0000
parents dcccdfe56268
children 598fbedb891e
files lisp/textmodes/xml-lite.el
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/xml-lite.el	Wed Mar 27 22:26:22 2002 +0000
+++ b/lisp/textmodes/xml-lite.el	Wed Mar 27 22:27:44 2002 +0000
@@ -95,15 +95,17 @@
     (bolp)))
 
 (defun xml-lite-in-string-p (&optional limit)
-  "Determine whether point is inside a string."
+  "Determine whether point is inside a string.
+ 
+Parse begins from LIMIT, which defaults to the preceding occurence of a tag
+at the beginning of a line."
   (let (syntax-info)
     (or limit
         (setq limit (or (save-excursion 
                           (re-search-backward "^[ \t]*<" nil t))
                         (point-min))))
     (setq syntax-info (parse-partial-sexp limit (point)))
-    (if (nth 3 syntax-info)
-        (list (nth 3 syntax-info) (nth 8 syntax-info)))))
+    (if (nth 3 syntax-info) (nth 8 syntax-info))))
 
 
 ;; Parsing