diff options
| author | Andreas Schwab | 1997-11-21 10:34:10 +0000 |
|---|---|---|
| committer | Andreas Schwab | 1997-11-21 10:34:10 +0000 |
| commit | 1a3ce5c4663378934ba7fa43444da7b6d7b7836f (patch) | |
| tree | be81d13447011ac9178bd61a88d9aa47fc1cbd63 | |
| parent | 8b784951b917ae5582f7cfef0a89d5a7719351f3 (diff) | |
| download | emacs-1a3ce5c4663378934ba7fa43444da7b6d7b7836f.tar.gz emacs-1a3ce5c4663378934ba7fa43444da7b6d7b7836f.zip | |
(gud-sentinel): Set mode-line-process in the process
buffer, not the current buffer.
| -rw-r--r-- | lisp/gud.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/gud.el b/lisp/gud.el index 0509ae60ff2..cce7f123a69 100644 --- a/lisp/gud.el +++ b/lisp/gud.el | |||
| @@ -1380,10 +1380,6 @@ It is saved for when this flag is not set.") | |||
| 1380 | ((memq (process-status proc) '(signal exit)) | 1380 | ((memq (process-status proc) '(signal exit)) |
| 1381 | ;; Stop displaying an arrow in a source file. | 1381 | ;; Stop displaying an arrow in a source file. |
| 1382 | (setq overlay-arrow-position nil) | 1382 | (setq overlay-arrow-position nil) |
| 1383 | ;; Fix the mode line. | ||
| 1384 | (setq mode-line-process | ||
| 1385 | (concat ":" | ||
| 1386 | (symbol-name (process-status proc)))) | ||
| 1387 | (let* ((obuf (current-buffer))) | 1383 | (let* ((obuf (current-buffer))) |
| 1388 | ;; save-excursion isn't the right thing if | 1384 | ;; save-excursion isn't the right thing if |
| 1389 | ;; process-buffer is current-buffer | 1385 | ;; process-buffer is current-buffer |
| @@ -1391,6 +1387,10 @@ It is saved for when this flag is not set.") | |||
| 1391 | (progn | 1387 | (progn |
| 1392 | ;; Write something in *compilation* and hack its mode line, | 1388 | ;; Write something in *compilation* and hack its mode line, |
| 1393 | (set-buffer (process-buffer proc)) | 1389 | (set-buffer (process-buffer proc)) |
| 1390 | ;; Fix the mode line. | ||
| 1391 | (setq mode-line-process | ||
| 1392 | (concat ":" | ||
| 1393 | (symbol-name (process-status proc)))) | ||
| 1394 | (force-mode-line-update) | 1394 | (force-mode-line-update) |
| 1395 | (if (eobp) | 1395 | (if (eobp) |
| 1396 | (insert ?\n mode-name " " msg) | 1396 | (insert ?\n mode-name " " msg) |