What’s New in Version 4.0
Version 4.0 contains the following enhancements:
Scroll margins at the top and bottom of the window are now supported. (The design was copied from
tpu-extras.el.) By default, this feature is enabled with the top margin set to 10% of the window and the bottom margin set to 15% of the window. To change these settings, you can invoke the functionedt-set-scroll-marginsin your.emacsfile. For example, the following lineemacs-lisp(edt-set-scroll-margins "20%" "25%")sets the top margin to 20% of the window and the bottom margin to 25% of the window. To disable this feature, set each margin to 0%. You can also invoke
edt-set-scroll-marginsinteractively while EDT Emulation is active to change the settings for that session.Please note: Another way to set the scroll margins is to use the Emacs customization feature to set the following two variables directly:
edt-top-scroll-marginandedt-bottom-scroll-margin.Enter the Emacs
customizecommand. First select the ‘Editing’ group and then select the ‘Emulations’ group. Finally, select the ‘Edt’ group and follow the directions.The ‘
SUBS’ command is now supported and bound to GOLD-Enter by default. (This design was copied fromtpu-edt.el.) Note, in earlier versions of EDT Emulation, GOLD-Enter was assigned to the Emacs functionquery-replace. The binding ofquery-replacehas been moved to GOLD-/. If you prefer to restorequery-replaceto GOLD-Enter, then use an EDT user customization file,edt-user.el, to do this (see Customizing Emulation).If you access a workstation using an X Server, observe that the initialization file generated by
edt-mapper.elwill now contain the name of the X Server vendor. This is a convenience for those who have access to their Unix account from more than one type of X Server. Since different X Servers typically require different EDT emulation initialization files,edt-mapper.elwill now generate these different initialization files and save them with different names. Then, the correct initialization file for the particular X server in use is loaded correctly automatically.Also,
edt-mapper.elis now capable of binding an ASCII key sequence, providing the ASCII key sequence prefix is already known by Emacs to be a prefix. As a result of providing this support, some terminal/keyboard/window system configurations, which don’t have a complete set of sensible function key bindings built into Emacs ininput-decode-map, can still be configured for use with EDT Emulation. (Note: In a few rare circumstances this does not work properly. In particular, it does not work if a subset of the leading ASCII characters in a key sequence are recognized by Emacs as having an existing binding. For example, if the keypad 7 (KP7) key generates the sequence ‘ESCOw’ and ‘ESCO’ is already bound to a function, pressing KP7 when told to do so byedt-mapper.elwill result inedt-mapper.elincorrectly mapping ‘ESCO’ to KP7 and ‘w’ to KP8. If something like this happens to you, it is probably a bug in the support for your keyboard within Emacs or a bug in the Unix termcap/terminfo support for your terminal or a bug in the terminal emulation software you are using.)The
edt-quitfunction (bound to GOLD-q by default) has been modified to warn the user when file-related buffer modifications exist. It now cautions the user that those modifications will be lost if the user quits without saving those buffers.