Mercurial > emacs
comparison lisp/time.el @ 7017:6884e6e907c9
(display-time): Force use of pipe, not pty.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 22 Apr 1994 04:37:36 +0000 |
parents | 5e38d151ac1a |
children | cc7cd83ccf3f |
comparison
equal
deleted
inserted
replaced
7016:af3a2472ad48 | 7017:6884e6e907c9 |
---|---|
70 (or global-mode-string (setq global-mode-string '(""))) | 70 (or global-mode-string (setq global-mode-string '(""))) |
71 (or (memq 'display-time-string global-mode-string) | 71 (or (memq 'display-time-string global-mode-string) |
72 (setq global-mode-string | 72 (setq global-mode-string |
73 (append global-mode-string '(display-time-string)))) | 73 (append global-mode-string '(display-time-string)))) |
74 (setq display-time-string "") | 74 (setq display-time-string "") |
75 (setq display-time-process | 75 ;; Using a pty is wasteful, and the separate session causes |
76 (start-process "display-time" nil | 76 ;; annoyance sometimes (some systems kill idle sessions). |
77 (expand-file-name "wakeup" exec-directory) | 77 (let ((process-connection-type nil)) |
78 (int-to-string display-time-interval))) | 78 (setq display-time-process |
79 (start-process "display-time" nil | |
80 (expand-file-name "wakeup" exec-directory) | |
81 (int-to-string display-time-interval)))) | |
79 (process-kill-without-query display-time-process) | 82 (process-kill-without-query display-time-process) |
80 (set-process-sentinel display-time-process 'display-time-sentinel) | 83 (set-process-sentinel display-time-process 'display-time-sentinel) |
81 (set-process-filter display-time-process 'display-time-filter))))) | 84 (set-process-filter display-time-process 'display-time-filter))))) |
82 | 85 |
83 (defun display-time-sentinel (proc reason) | 86 (defun display-time-sentinel (proc reason) |