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
36363ac1
Commit
36363ac1
authored
Mar 29, 1994
by
Karl Heuer
Browse files
(debug): Behave sensibly if pop-up-frames is set.
parent
97f99202
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
lisp/emacs-lisp/debug.el
lisp/emacs-lisp/debug.el
+13
-4
No files found.
lisp/emacs-lisp/debug.el
View file @
36363ac1
...
...
@@ -60,7 +60,7 @@ first will be printed into the backtrace buffer."
(
debug-on-error
nil
)
(
debug-on-quit
nil
)
(
debugger-buffer
(
let
((
default-major-mode
'fundamental-mode
))
(
ge
nerate-new-buffer
"*Backtrace*"
)))
(
ge
t-buffer-create
"*Backtrace*"
)))
(
debugger-old-buffer
(
current-buffer
))
(
debugger-step-after-exit
nil
)
;; Don't keep reading from an executing kbd macro!
...
...
@@ -136,9 +136,18 @@ first will be printed into the backtrace buffer."
(
buffer-read-only
t
))
(
message
""
)
(
recursive-edit
))))
;; So that users do not try to execute debugger commands
;; in an invalid context
(
kill-buffer
debugger-buffer
)
;; Kill or at least neuter the backtrace buffer, so that users
;; don't try to execute debugger commands in an invalid context.
(
if
(
get-buffer-window
debugger-buffer
'visible
)
;; Still visible despite the save-window-excursion? Maybe it
;; it's in a pop-up frame. It would be annoying to delete and
;; recreate it every time the debugger stops, so instead we'll
;; erase it but leave it visible.
(
save-excursion
(
set-buffer
debugger-buffer
)
(
erase-buffer
)
(
fundamental-mode
))
(
kill-buffer
debugger-buffer
))
(
store-match-data
debugger-match-data
)))
;; Put into effect the modified values of these variables
;; in case the user set them with the `e' command.
...
...
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