]> git.eshelyaron.com Git - emacs.git/commitdiff
(xml-lite-in-string-p): Simplify.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 27 Mar 2002 22:27:44 +0000 (22:27 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 27 Mar 2002 22:27:44 +0000 (22:27 +0000)
lisp/textmodes/xml-lite.el

index a32a7a8f8f4f651e288dc2a68e70f57efbc2762f..2833ea88356e67f2a77dd15e238c13a2481d2079 100644 (file)
@@ -95,15 +95,17 @@ Set this to nil if you don't want a modeline indicator for xml-lite-mode."
     (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))))
 
 \f
 ;; Parsing