aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorKarl Heuer1998-09-04 19:58:39 +0000
committerKarl Heuer1998-09-04 19:58:39 +0000
commit452b2285752ce73265424f56a684ad5c8ee9755a (patch)
tree96c435b0d68657d449a5900a33818355a47bda47 /lisp
parent223a2a62985b8bad856872a2cb3ff827f76949fb (diff)
downloademacs-452b2285752ce73265424f56a684ad5c8ee9755a.tar.gz
emacs-452b2285752ce73265424f56a684ad5c8ee9755a.zip
(ada-search-ignore-string-comment):
In "found in comment" case, don't beginning-of-line after forward-line.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/ada-mode.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/progmodes/ada-mode.el b/lisp/progmodes/ada-mode.el
index 8614ca4421a..bf4860d75bf 100644
--- a/lisp/progmodes/ada-mode.el
+++ b/lisp/progmodes/ada-mode.el
@@ -3022,9 +3022,10 @@ This works by two steps:
3022 (progn 3022 (progn
3023 (re-search-backward "--" nil 1) 3023 (re-search-backward "--" nil 1)
3024 (goto-char (match-beginning 0))) 3024 (goto-char (match-beginning 0)))
3025 (progn 3025 (forward-line 1)
3026 (forward-line 1) 3026 ;; Used to have (beginning-of-line) here,
3027 (beginning-of-line)))) 3027 ;; but that caused trouble at end of buffer with no newline.
3028 ))
3028 ;; 3029 ;;
3029 ;; found in string => skip it 3030 ;; found in string => skip it
3030 ;; 3031 ;;