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
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
c561a0cb
Commit
c561a0cb
authored
Oct 13, 1994
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(gud-filter): Don't bind inhibit-quit.
Do nothing if buffer is dead.
parent
c171b42f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
lisp/gud.el
lisp/gud.el
+22
-22
No files found.
lisp/gud.el
View file @
c561a0cb
...
...
@@ -1009,28 +1009,28 @@ comint mode, which see."
(
defun
gud-filter
(
proc
string
)
;; Here's where the actual buffer insertion is done
(
let
(
(
inhibit-quit
t
)
output
)
(
save-excursion
(
set-buffer
(
process-buffer
proc
))
;; If we have been so requested, delete the debugger prompt.
(
if
(
marker-buffer
gud-delete-prompt-marker
)
(
progn
(
delete-region
(
process-mark
proc
)
gud-delete-prompt-marker
)
(
set-marker
gud-delete-prompt-marker
nil
)))
;; Save the process output, checking for source file markers.
(
setq
output
(
gud-marker-filter
string
))
;; Check for a filename-and-line number.
;; Don't display the specified file
;; unless (1) point is at or after the position where output appears
;; and (2) this buffer is on the screen.
(
if
(
and
gud-last-frame
(
>=
(
point
)
(
process-mark
proc
))
(
get-buffer-window
(
current-buffer
)))
(
gud-display-frame
))
;; Let the comint filter do the actual insertion.
;; That lets us inherit various comint features.
(
comint-output-filter
proc
output
))))
(
let
(
output
)
(
if
(
buffer-name
(
process-buffer
proc
)
)
(
save-excursion
(
set-buffer
(
process-buffer
proc
))
;; If we have been so requested, delete the debugger prompt.
(
if
(
marker-buffer
gud-delete-prompt-marker
)
(
progn
(
delete-region
(
process-mark
proc
)
gud-delete-prompt-marker
)
(
set-marker
gud-delete-prompt-marker
nil
)))
;; Save the process output, checking for source file markers.
(
setq
output
(
gud-marker-filter
string
))
;; Check for a filename-and-line number.
;; Don't display the specified file
;; unless (1) point is at or after the position where output appears
;; and (2) this buffer is on the screen.
(
if
(
and
gud-last-frame
(
>=
(
point
)
(
process-mark
proc
))
(
get-buffer-window
(
current-buffer
)))
(
gud-display-frame
))
;; Let the comint filter do the actual insertion.
;; That lets us inherit various comint features.
(
comint-output-filter
proc
output
)
))))
(
defun
gud-sentinel
(
proc
msg
)
(
cond
((
null
(
buffer-name
(
process-buffer
proc
)))
...
...
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