]> git.eshelyaron.com Git - emacs.git/commitdiff
(ada-search-ignore-string-comment):
authorKarl Heuer <kwzh@gnu.org>
Fri, 4 Sep 1998 19:58:39 +0000 (19:58 +0000)
committerKarl Heuer <kwzh@gnu.org>
Fri, 4 Sep 1998 19:58:39 +0000 (19:58 +0000)
In "found in comment" case, don't beginning-of-line after forward-line.

lisp/progmodes/ada-mode.el

index 8614ca4421af0eae7c0aa237793757ce6af38510..bf4860d75bf58e3c39149554ba6004a3c2634af6 100644 (file)
@@ -3022,9 +3022,10 @@ This works by two steps:
             (progn
               (re-search-backward "--" nil 1)
               (goto-char (match-beginning 0)))
-          (progn
-            (forward-line 1)
-            (beginning-of-line))))
+         (forward-line 1)
+         ;; Used to have (beginning-of-line) here,
+         ;; but that caused trouble at end of buffer with no newline.
+         ))
        ;;
        ;; found in string => skip it
        ;;