Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
582761a6
Commit
582761a6
authored
Jan 06, 2006
by
Nick Roberts
Browse files
(gdb-script-skip-to-head, gdb-script-calculate-indentation):
Indent for breakpoint command lists also.
parent
753c278e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lisp/progmodes/gud.el
lisp/progmodes/gud.el
+2
-2
No files found.
lisp/progmodes/gud.el
View file @
582761a6
...
...
@@ -3139,7 +3139,7 @@ class of the file (using s to separate nested class ids)."
(defun gdb-script-skip-to-head ()
"We're just in front of an `end' and we need to go to its head."
(while (and (re-search-backward "^\\s-*\\(\\(end\\)\\|define\\|document\\|if\\|while\\)\\>" nil 'move)
(while (and (re-search-backward "^\\s-*\\(\\(end\\)\\|define\\|document\\|if\\|while\\
|commands\\
)
\\>
" nil 'move)
(match-end 2))
(gdb-script-skip-to-head)))
...
...
@@ -3158,7 +3158,7 @@ class of the file (using s to separate nested class ids)."
(forward-line 0)
(skip-chars-forward " \t")
(+ (current-indentation)
(if (looking-at "
\\
(
if\\|while\\|define\\|else\\)\\>")
(if (looking-at "\\(if\\|while\\|define\\|else\\
|commands\\
)\\>")
gdb-script-basic-indent 0)))))
(defun gdb-script-indent-line ()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment