aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2011-04-16 16:30:15 -0700
committerGlenn Morris2011-04-16 16:30:15 -0700
commit239da61d98110076ed1cf0161ffc609ff508246a (patch)
tree1684d5c236bf9b06657ac3dbf3e4582f7295e96d
parentfd35b6f96777be3305879a9ca60ab5befb254042 (diff)
downloademacs-239da61d98110076ed1cf0161ffc609ff508246a.tar.gz
emacs-239da61d98110076ed1cf0161ffc609ff508246a.zip
Use lexcical-binding in f90.el.
* lisp/progmodes/f90.el: Use lexical-binding. Use utf-8 coding. (f90-get-correct-indent): Remove unnecessary local variable `cont'.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/f90.el12
2 files changed, 13 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index da2995840da..66865f4320e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-04-16 Glenn Morris <rgm@gnu.org>
2
3 * progmodes/f90.el: Use lexical-binding.
4 (f90-get-correct-indent): Remove unnecessary local variable `cont'.
5
12011-04-15 Stefan Monnier <monnier@iro.umontreal.ca> 62011-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * mail/sendmail.el (mail-mode-map): Use completion-at-point. 8 * mail/sendmail.el (mail-mode-map): Use completion-at-point.
diff --git a/lisp/progmodes/f90.el b/lisp/progmodes/f90.el
index 232299da4db..53aa95498da 100644
--- a/lisp/progmodes/f90.el
+++ b/lisp/progmodes/f90.el
@@ -2,7 +2,7 @@
2 2
3;; Copyright (C) 1995-1997, 2000-2011 Free Software Foundation, Inc. 3;; Copyright (C) 1995-1997, 2000-2011 Free Software Foundation, Inc.
4 4
5;; Author: Torbj\"orn Einarsson <Torbjorn.Einarsson@era.ericsson.se> 5;; Author: Torbjรถrn Einarsson <Torbjorn.Einarsson@era.ericsson.se>
6;; Maintainer: Glenn Morris <rgm@gnu.org> 6;; Maintainer: Glenn Morris <rgm@gnu.org>
7;; Keywords: fortran, f90, languages 7;; Keywords: fortran, f90, languages
8 8
@@ -1355,11 +1355,10 @@ if all else fails."
1355(defun f90-get-correct-indent () 1355(defun f90-get-correct-indent ()
1356 "Get correct indent for a line starting with line number. 1356 "Get correct indent for a line starting with line number.
1357Does not check type and subprogram indentation." 1357Does not check type and subprogram indentation."
1358 (let ((epnt (line-end-position)) icol cont) 1358 (let ((epnt (line-end-position)) icol)
1359 (save-excursion 1359 (save-excursion
1360 (while (and (f90-previous-statement) 1360 (while (and (f90-previous-statement)
1361 (or (memq (setq cont (f90-present-statement-cont)) 1361 (or (memq (f90-present-statement-cont) '(middle end))
1362 '(middle end))
1363 (looking-at "[ \t]*[0-9]")))) 1362 (looking-at "[ \t]*[0-9]"))))
1364 (setq icol (current-indentation)) 1363 (setq icol (current-indentation))
1365 (beginning-of-line) 1364 (beginning-of-line)
@@ -2223,4 +2222,9 @@ escape character."
2223 2222
2224(provide 'f90) 2223(provide 'f90)
2225 2224
2225;; Local Variables:
2226;; coding: utf-8
2227;; lexical-binding: t
2228;; End:
2229
2226;;; f90.el ends here 2230;;; f90.el ends here