diff options
| author | Pavel Janík | 2001-10-10 05:57:24 +0000 |
|---|---|---|
| committer | Pavel Janík | 2001-10-10 05:57:24 +0000 |
| commit | 744da4d88e0ba408ee6bb247d5fd796a18cedf52 (patch) | |
| tree | dd0239f4339cd42065b702256197eb46d77bab78 | |
| parent | 71f19cda0505724d6256e0fae9f0f2259911e6a5 (diff) | |
| download | emacs-744da4d88e0ba408ee6bb247d5fd796a18cedf52.tar.gz emacs-744da4d88e0ba408ee6bb247d5fd796a18cedf52.zip | |
use defalias instead of fset for user-visible commands.
| -rw-r--r-- | lisp/emulation/tpu-edt.el | 66 |
1 files changed, 35 insertions, 31 deletions
diff --git a/lisp/emulation/tpu-edt.el b/lisp/emulation/tpu-edt.el index 5ed679e5c1a..30abf1392ce 100644 --- a/lisp/emulation/tpu-edt.el +++ b/lisp/emulation/tpu-edt.el | |||
| @@ -783,51 +783,55 @@ This is useful for inserting control characters." | |||
| 783 | ;;; Command and Function Aliases | 783 | ;;; Command and Function Aliases |
| 784 | ;;; | 784 | ;;; |
| 785 | ;;;###autoload | 785 | ;;;###autoload |
| 786 | (fset 'tpu-edt-mode 'tpu-edt-on) | 786 | (defalias 'tpu-edt-mode 'tpu-edt-on) |
| 787 | (fset 'TPU-EDT-MODE 'tpu-edt-on) | 787 | (defalias 'TPU-EDT-MODE 'tpu-edt-on) |
| 788 | 788 | ||
| 789 | ;;;###autoload | 789 | ;;;###autoload |
| 790 | (fset 'tpu-edt 'tpu-edt-on) | 790 | (defalias 'tpu-edt 'tpu-edt-on) |
| 791 | (fset 'TPU-EDT 'tpu-edt-on) | 791 | (defalias 'TPU-EDT 'tpu-edt-on) |
| 792 | 792 | ||
| 793 | (fset 'exit 'tpu-exit) | 793 | ;; Note: The following functions have no `tpu-' prefix. This is unavoidable. |
| 794 | (fset 'EXIT 'tpu-exit) | 794 | ;; The real TPU/edt editor has interactive commands with these names, |
| 795 | ;; so tpu-edt.el users expect things like M-x exit RET and M-x help RET | ||
| 796 | ;; to work. Therefore it really is necessary to define these functions, | ||
| 797 | ;; even in cases where they redefine existing Emacs functions. | ||
| 795 | 798 | ||
| 796 | (fset 'Get 'tpu-get) | 799 | (defalias 'exit 'tpu-exit) |
| 797 | (fset 'GET 'tpu-get) | 800 | (defalias 'EXIT 'tpu-exit) |
| 798 | 801 | ||
| 799 | (fset 'include 'tpu-include) | 802 | (defalias 'Get 'tpu-get) |
| 800 | (fset 'INCLUDE 'tpu-include) | 803 | (defalias 'GET 'tpu-get) |
| 801 | 804 | ||
| 802 | (fset 'quit 'tpu-quit) | 805 | (defalias 'include 'tpu-include) |
| 803 | (fset 'QUIT 'tpu-quit) | 806 | (defalias 'INCLUDE 'tpu-include) |
| 804 | 807 | ||
| 805 | (fset 'spell 'tpu-spell-check) | 808 | (defalias 'quit 'tpu-quit) |
| 806 | (fset 'SPELL 'tpu-spell-check) | 809 | (defalias 'QUIT 'tpu-quit) |
| 807 | 810 | ||
| 808 | (fset 'what\ line 'tpu-what-line) | 811 | (defalias 'spell 'tpu-spell-check) |
| 809 | (fset 'WHAT\ LINE 'tpu-what-line) | 812 | (defalias 'SPELL 'tpu-spell-check) |
| 810 | 813 | ||
| 811 | (fset 'replace 'tpu-lm-replace) | 814 | (defalias 'what\ line 'tpu-what-line) |
| 812 | (fset 'REPLACE 'tpu-lm-replace) | 815 | (defalias 'WHAT\ LINE 'tpu-what-line) |
| 813 | 816 | ||
| 814 | ;; Apparently TPU users really expect to do M-x help RET to get help. | 817 | (defalias 'replace 'tpu-lm-replace) |
| 815 | ;; So it is really necessary to redefine this. | 818 | (defalias 'REPLACE 'tpu-lm-replace) |
| 816 | (fset 'help 'tpu-help) | ||
| 817 | (fset 'HELP 'tpu-help) | ||
| 818 | 819 | ||
| 819 | ;; Real TPU error messages end in periods. | 820 | (defalias 'help 'tpu-help) |
| 820 | ;; Define this to avoid openly flouting Emacs coding standards. | 821 | (defalias 'HELP 'tpu-help) |
| 821 | (defalias 'tpu-error 'error) | 822 | |
| 823 | (defalias 'set\ cursor\ free 'tpu-set-cursor-free) | ||
| 824 | (defalias 'SET\ CURSOR\ FREE 'tpu-set-cursor-free) | ||
| 822 | 825 | ||
| 823 | (fset 'set\ cursor\ free 'tpu-set-cursor-free) | 826 | (defalias 'set\ cursor\ bound 'tpu-set-cursor-bound) |
| 824 | (fset 'SET\ CURSOR\ FREE 'tpu-set-cursor-free) | 827 | (defalias 'SET\ CURSOR\ BOUND 'tpu-set-cursor-bound) |
| 825 | 828 | ||
| 826 | (fset 'set\ cursor\ bound 'tpu-set-cursor-bound) | 829 | (defalias 'set\ scroll\ margins 'tpu-set-scroll-margins) |
| 827 | (fset 'SET\ CURSOR\ BOUND 'tpu-set-cursor-bound) | 830 | (defalias 'SET\ SCROLL\ MARGINS 'tpu-set-scroll-margins) |
| 828 | 831 | ||
| 829 | (fset 'set\ scroll\ margins 'tpu-set-scroll-margins) | 832 | ;; Real TPU error messages end in periods. |
| 830 | (fset 'SET\ SCROLL\ MARGINS 'tpu-set-scroll-margins) | 833 | ;; Define this to avoid openly flouting Emacs coding standards. |
| 834 | (defalias 'tpu-error 'error) | ||
| 831 | 835 | ||
| 832 | 836 | ||
| 833 | ;; Around emacs version 18.57, function line-move was renamed to | 837 | ;; Around emacs version 18.57, function line-move was renamed to |