diff options
| author | Glenn Morris | 2018-01-09 22:54:46 -0800 |
|---|---|---|
| committer | Glenn Morris | 2018-01-09 22:54:46 -0800 |
| commit | a94cbaab9ff63d269f62b8619445d4f598f72aaf (patch) | |
| tree | dd02c71e6faaba53f40939ec8dbe0e37b1f97969 | |
| parent | ddb26f79b20329ada5f5bc6e1742807d029e06c0 (diff) | |
| download | emacs-a94cbaab9ff63d269f62b8619445d4f598f72aaf.tar.gz emacs-a94cbaab9ff63d269f62b8619445d4f598f72aaf.zip | |
Remove some obsolete compat code in fortran.el
* lisp/progmodes/fortran.el (fortran-abbrev-start):
Remove obsolete compat code. This file uses modern features.
| -rw-r--r-- | lisp/progmodes/fortran.el | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el index 3fddf2392ea..bfbf6c09b27 100644 --- a/lisp/progmodes/fortran.el +++ b/lisp/progmodes/fortran.el | |||
| @@ -1040,13 +1040,9 @@ With non-nil ARG, uncomments the region." | |||
| 1040 | Any other key combination is executed normally." | 1040 | Any other key combination is executed normally." |
| 1041 | (interactive "*") | 1041 | (interactive "*") |
| 1042 | (insert last-command-event) | 1042 | (insert last-command-event) |
| 1043 | (let* ((event (if (fboundp 'next-command-event) ; XEmacs | 1043 | (let ((event (read-event))) |
| 1044 | (next-command-event) | ||
| 1045 | (read-event))) | ||
| 1046 | (char (if (fboundp 'event-to-character) | ||
| 1047 | (event-to-character event) event))) | ||
| 1048 | ;; Insert char if not equal to `?', or if abbrev-mode is off. | 1044 | ;; Insert char if not equal to `?', or if abbrev-mode is off. |
| 1049 | (if (and abbrev-mode (or (eq char ??) (eq char help-char) | 1045 | (if (and abbrev-mode (or (eq event ??) (eq event help-char) |
| 1050 | (memq event help-event-list))) | 1046 | (memq event help-event-list))) |
| 1051 | (fortran-abbrev-help) | 1047 | (fortran-abbrev-help) |
| 1052 | (push event unread-command-events)))) | 1048 | (push event unread-command-events)))) |