aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1992-06-01 08:28:58 +0000
committerRichard M. Stallman1992-06-01 08:28:58 +0000
commit9c50f912085d060637d239a9417e70513a89b736 (patch)
tree4544c26b25f4e9f5ddba338046ce5ca81bdde6ce
parent75d0ce1bd516f655c22c003cf27543b767810703 (diff)
downloademacs-9c50f912085d060637d239a9417e70513a89b736.tar.gz
emacs-9c50f912085d060637d239a9417e70513a89b736.zip
*** empty log message ***
-rw-r--r--lisp/diff.el4
-rw-r--r--lisp/flow-ctrl.el14
-rw-r--r--lisp/mail/mailabbrev.el1
3 files changed, 12 insertions, 7 deletions
diff --git a/lisp/diff.el b/lisp/diff.el
index 138f674ea08..7a0dd95387c 100644
--- a/lisp/diff.el
+++ b/lisp/diff.el
@@ -62,8 +62,8 @@
62;;;###autoload 62;;;###autoload
63(defun diff (old new) 63(defun diff (old new)
64 "Find and display the differences between OLD and NEW files. 64 "Find and display the differences between OLD and NEW files.
65Interactively you are prompted with the current buffer's file name for NEW 65Interactively the current buffer's file name is the default for for NEW
66and what appears to be it's backup for OLD." 66and a backup file for NEW is the default for OLD."
67 (interactive 67 (interactive
68 (let (oldf newf) 68 (let (oldf newf)
69 (reverse 69 (reverse
diff --git a/lisp/flow-ctrl.el b/lisp/flow-ctrl.el
index 68d5165dc45..4d3d68f49be 100644
--- a/lisp/flow-ctrl.el
+++ b/lisp/flow-ctrl.el
@@ -37,8 +37,7 @@
37;;; won't work outside of UNIX-like environments. 37;;; won't work outside of UNIX-like environments.
38 38
39(defun evade-flow-control () 39(defun evade-flow-control ()
40 "Replace C-s with C-\ and C-q with C-^ and tell emacs to pass C-s 40 "Enable use of flow control; let user type C-s as C-\ and C-q as C-^."
41and C-q characters to OS."
42 (interactive) 41 (interactive)
43 ;; Tell emacs to pass C-s and C-q to OS. 42 ;; Tell emacs to pass C-s and C-q to OS.
44 (set-input-mode nil t) 43 (set-input-mode nil t)
@@ -65,19 +64,24 @@ and C-q characters to OS."
65 ": use C-\\ for C-s and use C-^ for C-q.")) 64 ": use C-\\ for C-s and use C-^ for C-q."))
66 (sleep-for 2)) ; Give user a chance to see message. 65 (sleep-for 2)) ; Give user a chance to see message.
67 66
68(defun memstr= (e s) 67(defun evade-flow-control-memstr= (e s)
69 (cond ((null s) nil) 68 (cond ((null s) nil)
70 ((string= e (car s)) t) 69 ((string= e (car s)) t)
71 (t (memstr= e (cdr s))))) 70 (t (evade-flow-control-memstr= e (cdr s)))))
72 71
73;;;###autoload 72;;;###autoload
74(defun evade-flow-control-on (&rest losing-terminal-types) 73(defun evade-flow-control-on (&rest losing-terminal-types)
74 "Enable flow control if using one of a specified set of terminal types.
75Use `(evade-flow-control-on "vt100" "h19")' to enable flow control
76on VT-100 and H19 terminals. When flow control is enabled,
77you must type C-\ to get the effect of a C-s, and type C-^
78to get the effect of a C-q."
75 (let ((term (getenv "TERM")) 79 (let ((term (getenv "TERM"))
76 hyphend) 80 hyphend)
77 ;; Strip off hyphen and what follows 81 ;; Strip off hyphen and what follows
78 (while (setq hyphend (string-match "[-_][^-_]+$" term)) 82 (while (setq hyphend (string-match "[-_][^-_]+$" term))
79 (setq term (substring term 0 hyphend))) 83 (setq term (substring term 0 hyphend)))
80 (and (memstr= term losing-terminal-types) (evade-flow-control))) 84 (and (evade-flow-control-memstr= term losing-terminal-types) (evade-flow-control)))
81 ) 85 )
82 86
83(provide 'flow-ctrl) 87(provide 'flow-ctrl)
diff --git a/lisp/mail/mailabbrev.el b/lisp/mail/mailabbrev.el
index 71077a1760e..6b8bfefd199 100644
--- a/lisp/mail/mailabbrev.el
+++ b/lisp/mail/mailabbrev.el
@@ -1,3 +1,4 @@
1;;; ??? We must get papers for this or delete it.
1;;; mailabbrev.el --- abbrev-expansion of mail aliases. 2;;; mailabbrev.el --- abbrev-expansion of mail aliases.
2 3
3;;; Copyright (C) 1985, 1986, 1987, 1992 Free Software Foundation, Inc. 4;;; Copyright (C) 1985, 1986, 1987, 1992 Free Software Foundation, Inc.