diff lisp/textmodes/xml-lite.el @ 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 65437de0940f
children 2eeb8d7f1161
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