aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2018-01-09 22:56:31 -0800
committerGlenn Morris2018-01-09 22:56:31 -0800
commitd697faca37f8bec92128a278c0a57f6f685df29a (patch)
treeed1ea1a683c6746fec5fc9e5c2915ee94a668aaf
parenta94cbaab9ff63d269f62b8619445d4f598f72aaf (diff)
downloademacs-d697faca37f8bec92128a278c0a57f6f685df29a.tar.gz
emacs-d697faca37f8bec92128a278c0a57f6f685df29a.zip
Remove some obsolete compat code in f90.el
* lisp/progmodes/f90.el (f90-mark-subprogram, f90-indent-region) (f90-fill-region): Remove obsolete compat code. This file uses modern features.
-rw-r--r--lisp/progmodes/f90.el15
1 files changed, 4 insertions, 11 deletions
diff --git a/lisp/progmodes/f90.el b/lisp/progmodes/f90.el
index 2105377a165..c3e085dda5b 100644
--- a/lisp/progmodes/f90.el
+++ b/lisp/progmodes/f90.el
@@ -123,7 +123,6 @@
123;; mechanism for treating multi-line directives (continued by \ ). 123;; mechanism for treating multi-line directives (continued by \ ).
124;; 7) f77 do-loops do 10 i=.. ; ; 10 continue are not correctly indented. 124;; 7) f77 do-loops do 10 i=.. ; ; 10 continue are not correctly indented.
125;; You are urged to use f90-do loops (with labels if you wish). 125;; You are urged to use f90-do loops (with labels if you wish).
126;; 8) The highlighting mode under XEmacs is not as complete as under Emacs.
127 126
128;; List of user commands 127;; List of user commands
129;; f90-previous-statement f90-next-statement 128;; f90-previous-statement f90-next-statement
@@ -1847,10 +1846,8 @@ A block is a subroutine, if-endif, etc."
1847 (push-mark) 1846 (push-mark)
1848 (goto-char pos) 1847 (goto-char pos)
1849 (setq program (f90-beginning-of-subprogram)) 1848 (setq program (f90-beginning-of-subprogram))
1850 (if (featurep 'xemacs) 1849 (setq mark-active t
1851 (zmacs-activate-region) 1850 deactivate-mark nil)
1852 (setq mark-active t
1853 deactivate-mark nil))
1854 program)) 1851 program))
1855 1852
1856(defun f90-comment-region (beg-region end-region) 1853(defun f90-comment-region (beg-region end-region)
@@ -2042,9 +2039,7 @@ If run in the middle of a line, the line is not broken."
2042 (goto-char save-point) 2039 (goto-char save-point)
2043 (set-marker end-region-mark nil) 2040 (set-marker end-region-mark nil)
2044 (set-marker save-point nil) 2041 (set-marker save-point nil)
2045 (if (featurep 'xemacs) 2042 (deactivate-mark)))
2046 (zmacs-deactivate-region)
2047 (deactivate-mark))))
2048 2043
2049(defun f90-indent-subprogram () 2044(defun f90-indent-subprogram ()
2050 "Properly indent the subprogram containing point." 2045 "Properly indent the subprogram containing point."
@@ -2157,9 +2152,7 @@ Like `join-line', but handles F90 syntax."
2157 f90-cache-position (point))) 2152 f90-cache-position (point)))
2158 (setq f90-cache-position nil) 2153 (setq f90-cache-position nil)
2159 (set-marker end-region-mark nil) 2154 (set-marker end-region-mark nil)
2160 (if (featurep 'xemacs) 2155 (deactivate-mark)))
2161 (zmacs-deactivate-region)
2162 (deactivate-mark))))
2163 2156
2164(defun f90-fill-paragraph (&optional justify) 2157(defun f90-fill-paragraph (&optional justify)
2165 "In a comment, fill it as a paragraph, else fill the current statement. 2158 "In a comment, fill it as a paragraph, else fill the current statement.