# HG changeset patch # User Karl Heuer # Date 904939119 0 # Node ID ff46f1893f6fb186e78b86bdea3043df79d71593 # Parent e3e7eca80c069a5c45cd22350eee193d6454b01f (ada-search-ignore-string-comment): In "found in comment" case, don't beginning-of-line after forward-line. diff -r e3e7eca80c06 -r ff46f1893f6f lisp/progmodes/ada-mode.el --- a/lisp/progmodes/ada-mode.el Fri Sep 04 19:57:32 1998 +0000 +++ b/lisp/progmodes/ada-mode.el Fri Sep 04 19:58:39 1998 +0000 @@ -3022,9 +3022,10 @@ (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 ;;