]> git.eshelyaron.com Git - emacs.git/commitdiff
(sgml-looking-back-at): Move definition before use.
authorGlenn Morris <rgm@gnu.org>
Sat, 24 Oct 2009 03:45:50 +0000 (03:45 +0000)
committerGlenn Morris <rgm@gnu.org>
Sat, 24 Oct 2009 03:45:50 +0000 (03:45 +0000)
lisp/ChangeLog
lisp/textmodes/sgml-mode.el

index d748c4e9885f46b62c09c05555b5c21f623fff18..d96feb4c22280ae97bf0768ffdb889c59db8c964 100644 (file)
@@ -1,5 +1,8 @@
 2009-10-24  Glenn Morris  <rgm@gnu.org>
 
+       * textmodes/sgml-mode.el (sgml-looking-back-at): Move definition before
+       use.
+
        * emacs-lisp/checkdoc.el (generate-autoload-cookie): Define for
        compiler.
 
index ff3054423b976c2ccd6cf1c572fa0d942de6dc34..26360df261bcfa6c2ae768d2ff911a9d6c7c6fe2 100644 (file)
@@ -873,6 +873,12 @@ Return t if after a closing tag."
        (setq arg (1- arg)))
       return)))
 
+(defsubst sgml-looking-back-at (str)
+  "Return t if the test before point matches STR."
+  (let ((start (- (point) (length str))))
+    (and (>= start (point-min))
+         (equal str (buffer-substring-no-properties start (point))))))
+
 (defun sgml-delete-tag (arg)
   ;; FIXME: Should be called sgml-kill-tag or should not touch the kill-ring.
   "Delete tag on or after cursor, and matching closing or opening tag.
@@ -1159,12 +1165,6 @@ You might want to turn on `auto-fill-mode' to get better results."
   (buffer-substring-no-properties
    (point) (progn (skip-syntax-forward "w_") (point))))
 
-(defsubst sgml-looking-back-at (str)
-  "Return t if the test before point matches STR."
-  (let ((start (- (point) (length str))))
-    (and (>= start (point-min))
-         (equal str (buffer-substring-no-properties start (point))))))
-
 (defun sgml-tag-text-p (start end)
   "Return non-nil if text between START and END is a tag.
 Checks among other things that the tag does not contain spurious