Mercurial > emacs
comparison lisp/term.el @ 11570:f210b0ee984a
(term-update-mode-line, term-process-pager): Use force-mode-line-update.
(term-pager-continue): Use force-mode-line-update.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 25 Apr 1995 22:25:25 +0000 |
parents | 8d2f156b72ff |
children | 697c01e75adc |
comparison
equal
deleted
inserted
replaced
11569:a2b107c4f2f1 | 11570:f210b0ee984a |
---|---|
768 (defun term-update-mode-line () | 768 (defun term-update-mode-line () |
769 (setq mode-line-process | 769 (setq mode-line-process |
770 (if (term-in-char-mode) | 770 (if (term-in-char-mode) |
771 (if (term-pager-enabled) '(": char page %s") '(": char %s")) | 771 (if (term-pager-enabled) '(": char page %s") '(": char %s")) |
772 (if (term-pager-enabled) '(": line page %s") '(": line %s")))) | 772 (if (term-pager-enabled) '(": line page %s") '(": line %s")))) |
773 (set-buffer-modified-p (buffer-modified-p))) ;; Force mode line update. | 773 (force-mode-line-update)) |
774 | 774 |
775 (defun term-check-proc (buffer) | 775 (defun term-check-proc (buffer) |
776 "True if there is a process associated w/buffer BUFFER, and | 776 "True if there is a process associated w/buffer BUFFER, and |
777 it is alive (status RUN or STOP). BUFFER can be either a buffer or the | 777 it is alive (status RUN or STOP). BUFFER can be either a buffer or the |
778 name of one" | 778 name of one" |
2543 (setq mode-line-format | 2543 (setq mode-line-format |
2544 (list "-- **MORE** " | 2544 (list "-- **MORE** " |
2545 mode-line-buffer-identification | 2545 mode-line-buffer-identification |
2546 " [Type ? for help] " | 2546 " [Type ? for help] " |
2547 "%-")) | 2547 "%-")) |
2548 (set-buffer-modified-p (buffer-modified-p))) ;;No-op, but updates mode line. | 2548 (force-mode-line-update)) |
2549 | 2549 |
2550 (defun term-pager-line (lines) | 2550 (defun term-pager-line (lines) |
2551 (interactive "p") | 2551 (interactive "p") |
2552 (let* ((moved (vertical-motion (1+ lines))) | 2552 (let* ((moved (vertical-motion (1+ lines))) |
2553 (deficit (- lines moved))) | 2553 (deficit (- lines moved))) |
2656 (defun term-pager-continue (new-count) | 2656 (defun term-pager-continue (new-count) |
2657 (let ((process (get-buffer-process (current-buffer)))) | 2657 (let ((process (get-buffer-process (current-buffer)))) |
2658 (use-local-map term-pager-old-local-map) | 2658 (use-local-map term-pager-old-local-map) |
2659 (setq term-pager-old-local-map nil) | 2659 (setq term-pager-old-local-map nil) |
2660 (setq mode-line-format term-old-mode-line-format) | 2660 (setq mode-line-format term-old-mode-line-format) |
2661 (set-buffer-modified-p (buffer-modified-p)) ;; Updates mode line. | 2661 (force-mode-line-update) |
2662 (setq term-pager-count new-count) | 2662 (setq term-pager-count new-count) |
2663 (set-process-filter process term-pager-old-filter) | 2663 (set-process-filter process term-pager-old-filter) |
2664 (funcall term-pager-old-filter process "") | 2664 (funcall term-pager-old-filter process "") |
2665 (continue-process process))) | 2665 (continue-process process))) |
2666 | 2666 |