Mercurial > emacs
comparison lisp/progmodes/f90.el @ 87941:d77b6e5ee8af
* sieve.el (sieve-make-overlay, sieve-overlay-put, sieve-overlays-at):
* message.el (message-beginning-of-line): Use featurep instead of bound
tests in order to resolve conditionals at compile time.
* textmodes/reftex-toc.el (reftex-toc-next, reftex-toc-previous)
(reftex-toc-restore-region):
* textmodes/reftex-index.el (reftex-index-initialize-phrases-buffer)
(reftex-index-phrases-apply-to-region):
* textmodes/ispell.el (ispell-word):
* progmodes/vhdl-mode.el (vhdl-keep-region-active):
* progmodes/pascal.el (pascal-mark-defun):
* progmodes/f90.el (f90-mark-subprogram, f90-indent-region)
(f90-fill-region):
* emulation/tpu-edt.el (tpu-set-mark):
* emulation/crisp.el (crisp-region-active):
* winner.el (winner-active-region):
* ansi-color.el (ansi-color-set-extent-face): Use featurep instead
of bound tests in order to resolve conditionals at compile time.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Thu, 24 Jan 2008 15:14:52 +0000 |
parents | 107ccd98fa12 |
children | c70e45a7acfd 9c73b1f69e7e |
comparison
equal
deleted
inserted
replaced
87940:657fb7a7fe8e | 87941:d77b6e5ee8af |
---|---|
1679 (let ((pos (point)) program) | 1679 (let ((pos (point)) program) |
1680 (f90-end-of-subprogram) | 1680 (f90-end-of-subprogram) |
1681 (push-mark) | 1681 (push-mark) |
1682 (goto-char pos) | 1682 (goto-char pos) |
1683 (setq program (f90-beginning-of-subprogram)) | 1683 (setq program (f90-beginning-of-subprogram)) |
1684 (if (fboundp 'zmacs-activate-region) | 1684 (if (featurep 'xemacs) |
1685 (zmacs-activate-region) | 1685 (zmacs-activate-region) |
1686 (setq mark-active t | 1686 (setq mark-active t |
1687 deactivate-mark nil)) | 1687 deactivate-mark nil)) |
1688 program)) | 1688 program)) |
1689 | 1689 |
1864 ;; Restore point, etc. | 1864 ;; Restore point, etc. |
1865 (setq f90-cache-position nil) | 1865 (setq f90-cache-position nil) |
1866 (goto-char save-point) | 1866 (goto-char save-point) |
1867 (set-marker end-region-mark nil) | 1867 (set-marker end-region-mark nil) |
1868 (set-marker save-point nil) | 1868 (set-marker save-point nil) |
1869 (if (fboundp 'zmacs-deactivate-region) | 1869 (if (featurep 'xemacs) |
1870 (zmacs-deactivate-region) | 1870 (zmacs-deactivate-region) |
1871 (deactivate-mark)))) | 1871 (deactivate-mark)))) |
1872 | 1872 |
1873 (defun f90-indent-subprogram () | 1873 (defun f90-indent-subprogram () |
1874 "Properly indent the subprogram containing point." | 1874 "Properly indent the subprogram containing point." |
1974 (setq go-on (and (< (point) end-region-mark) | 1974 (setq go-on (and (< (point) end-region-mark) |
1975 (zerop (forward-line 1))) | 1975 (zerop (forward-line 1))) |
1976 f90-cache-position (point))) | 1976 f90-cache-position (point))) |
1977 (setq f90-cache-position nil) | 1977 (setq f90-cache-position nil) |
1978 (set-marker end-region-mark nil) | 1978 (set-marker end-region-mark nil) |
1979 (if (fboundp 'zmacs-deactivate-region) | 1979 (if (featurep 'xemacs) |
1980 (zmacs-deactivate-region) | 1980 (zmacs-deactivate-region) |
1981 (deactivate-mark)))) | 1981 (deactivate-mark)))) |
1982 | 1982 |
1983 (defun f90-block-match (beg-block beg-name end-block end-name) | 1983 (defun f90-block-match (beg-block beg-name end-block end-name) |
1984 "Match end-struct with beg-struct and complete end-block if possible. | 1984 "Match end-struct with beg-struct and complete end-block if possible. |