Mercurial > emacs
comparison lisp/terminal.el @ 11569:a2b107c4f2f1
(te-edit, te-more-break-unwind): Use force-mode-line-update.
(te-update-pending-output-display): Use force-mode-line-update.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 25 Apr 1995 22:24:57 +0000 |
parents | e591f74ac16e |
children | 5c78211aa9e0 |
comparison
equal
deleted
inserted
replaced
11568:9b2265dc03a6 | 11569:a2b107c4f2f1 |
---|---|
497 | 497 |
498 (defun te-edit () | 498 (defun te-edit () |
499 "Start editing the terminal emulator buffer with ordinary Emacs commands." | 499 "Start editing the terminal emulator buffer with ordinary Emacs commands." |
500 (interactive) | 500 (interactive) |
501 (terminal-edit-mode) | 501 (terminal-edit-mode) |
502 (set-buffer-modified-p (buffer-modified-p)) | 502 (force-mode-line-update) |
503 ;; Make mode line update. | 503 ;; Make mode line update. |
504 (if (eq (key-binding "\C-c\C-c") 'terminal-cease-edit) | 504 (if (eq (key-binding "\C-c\C-c") 'terminal-cease-edit) |
505 (message "Editing: Type C-c C-c to return to Terminal") | 505 (message "Editing: Type C-c C-c to return to Terminal") |
506 (message (substitute-command-keys | 506 (message (substitute-command-keys |
507 "Editing: Type \\[terminal-cease-edit] to return to Terminal")))) | 507 "Editing: Type \\[terminal-cease-edit] to return to Terminal")))) |
587 (defun te-more-break-unwind () | 587 (defun te-more-break-unwind () |
588 (use-local-map te-more-old-local-map) | 588 (use-local-map te-more-old-local-map) |
589 (set-process-filter te-process te-more-old-filter) | 589 (set-process-filter te-process te-more-old-filter) |
590 (goto-char te-more-old-point) | 590 (goto-char te-more-old-point) |
591 (setq mode-line-format te-more-old-mode-line-format) | 591 (setq mode-line-format te-more-old-mode-line-format) |
592 (set-buffer-modified-p (buffer-modified-p)) | 592 (force-mode-line-update) |
593 (let ((buffer-read-only nil)) | 593 (let ((buffer-read-only nil)) |
594 (cond ((eobp)) | 594 (cond ((eobp)) |
595 (terminal-more-break-insertion | 595 (terminal-more-break-insertion |
596 (forward-char 1) | 596 (forward-char 1) |
597 (delete-region (point) | 597 (delete-region (point) |
991 (let ((length (te-pending-output-length))) | 991 (let ((length (te-pending-output-length))) |
992 (if (< length 1500) | 992 (if (< length 1500) |
993 (setq te-pending-output-info "") | 993 (setq te-pending-output-info "") |
994 (setq te-pending-output-info (format "(%dK chars output pending) " | 994 (setq te-pending-output-info (format "(%dK chars output pending) " |
995 (/ (+ length 512) 1024)))))) | 995 (/ (+ length 512) 1024)))))) |
996 ;; update mode line | 996 (force-mode-line-update)) |
997 (set-buffer-modified-p (buffer-modified-p))) | |
998 | 997 |
999 | 998 |
1000 (defun te-sentinel (process message) | 999 (defun te-sentinel (process message) |
1001 (cond ((eq (process-status process) 'run)) | 1000 (cond ((eq (process-status process) 'run)) |
1002 ((null (buffer-name (process-buffer process)))) ;deleted | 1001 ((null (buffer-name (process-buffer process)))) ;deleted |