aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/emulation
diff options
context:
space:
mode:
authorEric S. Raymond1992-05-30 23:54:21 +0000
committerEric S. Raymond1992-05-30 23:54:21 +0000
commitc0274f385fe5f39459cac5ea9ff9f92bacd3a8ef (patch)
tree925fc795c6471c7b0904feba14782fdc5689308b /lisp/emulation
parent84fc2cfa7d62e9ff77405340bae99cf5b1a9e164 (diff)
downloademacs-c0274f385fe5f39459cac5ea9ff9f92bacd3a8ef.tar.gz
emacs-c0274f385fe5f39459cac5ea9ff9f92bacd3a8ef.zip
*** empty log message ***
Diffstat (limited to 'lisp/emulation')
-rw-r--r--lisp/emulation/edt.el107
1 files changed, 107 insertions, 0 deletions
diff --git a/lisp/emulation/edt.el b/lisp/emulation/edt.el
index 8d60eeeb347..58874fd94aa 100644
--- a/lisp/emulation/edt.el
+++ b/lisp/emulation/edt.el
@@ -20,6 +20,113 @@
20;; along with GNU Emacs; see the file COPYING. If not, write to 20;; along with GNU Emacs; see the file COPYING. If not, write to
21;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 21;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
22 22
23;; From mike@yetti.UUCP Fri Aug 29 12:49:28 1986
24;; Path: yetti!mike@uunet.uu.net
25;; From: mike@yetti.UUCP (Mike Clarkson )
26;; Newsgroups: net.sources
27;; Subject: Gnu Emacs EDT Emulation - Introduction - 1/3
28;; Date: 27 Aug 86 23:30:33 GMT
29;; Reply-To: mike@yetti.UUCP (Mike Clarkson )
30;; Organization: York University Computer Science
31;;
32;; Here's my EDT emulation for GNU Emacs that is based on the EDT emulation
33;; for Gosling's Emacs sent out on the net a couple of years ago by Lynn Olson
34;; at Tektronics. This emulation was widely distributed as the file edt.ml
35;; in the maclib directory of most Emacs distributions.
36;;
37;; My emulation consists of two files: edt.el and edtdoc.el. The edtdoc.el
38;; file is the documentation, that you can add to the beginning of edt.el if
39;; you want. I have split them because I have been loading the edt.el file a
40;; lot during debugging.
41;;
42;; I will gladly take all criticisms and complaints to heart, and will fix what
43;; bugs I can find. As this is my first elisp hack, you may have to root out a
44;; few nasties hidden in the code. Please let me know if you find any (sorry,
45;; no rewards :-). I would also be interested if there are better, cleaner,
46;; faster ways of doing some of the things that I have done.
47;;
48;; You must understand some design considerations that I had in mind.
49;; The intention was not really to "emulate" EDT, but rather to take advantage
50;; of the years of EDT experience that had accumulated in my right hand,
51;; while at the same time taking advantage of EMACS.
52;;
53;; Some major differences are:
54;;
55;; HELP is describe-key;
56;; GOLD/HELP is describe-function;
57;; FIND is isearch-forward/backward;
58;; GOLD/HELP is occur-menu, which finds all instances of a search string;
59;; ENTER is other-window;
60;; SUBS is subprocess-command. Note that you have to change this
61;; to `shell' if you are running Un*x;
62;; PAGE is next-paragraph, because that's more useful than page.
63;; SPECINS is copy-to-killring;
64;; GOLD/GOLD is mark-section-wisely, which is my command to mark the
65;; section in a manner consistent with the major-mode. It
66;; uses mark-defun for emacs-lisp, lisp, mark-c-function for C,
67;; and mark-paragraph for other modes.
68;;
69;;
70;; Some subtle differences are:
71;;
72;; APPEND is append-to-buffer. One doesn't append to the kill ring
73;; much and SPECINS is now copy-to-killring;
74;; REPLACE is replace-regexp;
75;; FILL is fill-region-wisely, which uses indent-region for C, lisp
76;; emacs-lisp, and fill-region for others. It asks if you
77;; really want to fill-region in TeX-mode, because I find this
78;; to be very dangerous.
79;; CHNGCASE is case-flip for the character under the cursor only.
80;; I felt that case-flip region is unlikely, as usually you
81;; upcase-region or downcase region. Also, unlike EDT it
82;; is independent of the direction you are going, as that
83;; drives me nuts.
84;;
85;; I use Emacs definition of what a word is. This is considerably different
86;; from what EDT thinks a word is. This is not good for dyed-in-the-wool EDT
87;; fans, but is probably preferable for experienced Emacs users. My assumption
88;; is that the former are a dying breed now that GNU Emacs has made it to VMS,
89;; but let me know how you feel. Also, when you undelete a word it leave the
90;; point at the end of the undeleted text, rather than the beginning. I might
91;; change this as I'm not sure if I like this or not. I'm also not sure if I
92;; want it to set the mark each time you delete a character or word.
93;;
94;; Backspace does not invoke beginning-of-line, because ^H is the help prefix,
95;; and I felt it should be left as such. You can change this if you like.
96;;
97;; The ADVANCE and BACKUP keys do not work as terminators for forward or
98;; backward searches. In Emacs, all search strings are terminated by return.
99;; The searches will however go forward or backward depending on your current
100;; direction. Also, when you change directions, the mode line will not be
101;; updated immediately, but only when you next execute an emacs function.
102;; Personally, I consider this to be a bug, not a feature.
103;;
104;; This should also work with VT-2xx's, though I haven't tested it extensively
105;; on those terminals. It assumes that the CSI-map of vt_200.el has been
106;; defined.
107;;
108;; There are also a whole bunch of GOLD letter, and GOLD character bindings:
109;; look at edtdoc.el for them, or better still, look at the edt.el lisp code,
110;; because after all, in the true Lisp tradition, the source code is *assumed*
111;; to be self-documenting :-)
112;;
113;; Mike Clarkson, ...!allegra \ BITNET: mike@YUYETTI or
114;; CRESS, York University, ...!decvax \ SYMALG@YUSOL
115;; 4700 Keele Street, ...!ihnp4 > !utzoo!yetti!mike
116;; North York, Ontario, ...!linus /
117;; CANADA M3J 1P3. ...!watmath / Phone: +1 (416) 736-2100 x 7767
118;;
119;; Note that I am not on ARPA, and must gateway any ARPA mail through BITNET or
120;; UUCP. If you have a UUCP or BITNET address please use it for communication
121;; so that I can reach you directly. If you have both, the BITNET address
122;; is preferred.
123;; --
124;; Mike Clarkson, ...!allegra \ BITNET: mike@YUYETTI or
125;; CRESS, York University, ...!decvax \ SYMALG@YUSOL
126;; 4700 Keele Street, ...!ihnp4 > !utzoo!yetti!mike
127;; North York, Ontario, ...!linus /
128;; CANADA M3J 1P3. ...!watmath / Phone: +1 (416) 737-2100 x 7767
129
23(require 'keypad) 130(require 'keypad)
24 131
25(defvar edt-last-deleted-lines "" 132(defvar edt-last-deleted-lines ""