Next: Goals, Previous: Quick start, Up: Overview [Contents]

### 1.2 What’s New in Version 4.0

Version 4.0 contains the following enhancements:

1. 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 function `edt-set-scroll-margins` in your `.emacs` file. For example, the following line

       (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-margins` interactively 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-margin` and `edt-bottom-scroll-margin`.

   Enter the Emacs `customize` command. First select the ‘`Editing`’ group and then select the ‘`Emulations`’ group. Finally, select the ‘`Edt`’ group and follow the directions.

2. The ‘`SUBS`’ command is now supported and bound to `GOLD-Enter` by default. (This design was copied from `tpu-edt.el`.) Note, in earlier versions of EDT Emulation, `GOLD-Enter` was assigned to the Emacs function `query-replace`. The binding of `query-replace` has been moved to `GOLD-/`. If you prefer to restore `query-replace` to `GOLD-Enter`, then use an EDT user customization file, `edt-user.el`, to do this (see Customizing).
3. EDT Emulation now also works in XEmacs, including the highlighting of selected text.
4. If you access a workstation using an X Server, observe that the initialization file generated by `edt-mapper.el` will 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.el` will 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.
5. Also, `edt-mapper.el` is 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 in `function-key-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 ‘`<ESC>Ow`’ and ‘`<ESC>O`’ is already bound to a function, pressing `KP7` when told to do so by `edt-mapper.el` will result in `edt-mapper.el` incorrectly mapping ‘`<ESC>O`’ 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.)
6. The `edt-quit` function (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.

Next: Goals, Previous: Quick start, Up: Overview [Contents]