aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/simula.el
diff options
context:
space:
mode:
authorJuanma Barranquero2011-04-22 20:44:26 +0200
committerJuanma Barranquero2011-04-22 20:44:26 +0200
commite02f48d76bfd57f014ffbe3ba56b62f2d5ccc794 (patch)
treed27a2d9fd6838d6e619c824deb12a568ceac54f6 /lisp/progmodes/simula.el
parent7ede3b6577ae99a3e7ac45baa7cace439bf5070c (diff)
downloademacs-e02f48d76bfd57f014ffbe3ba56b62f2d5ccc794.tar.gz
emacs-e02f48d76bfd57f014ffbe3ba56b62f2d5ccc794.zip
lisp/progmodes/*.el: Lexical-binding cleanup.
Diffstat (limited to 'lisp/progmodes/simula.el')
-rw-r--r--lisp/progmodes/simula.el17
1 files changed, 9 insertions, 8 deletions
diff --git a/lisp/progmodes/simula.el b/lisp/progmodes/simula.el
index 976ec202483..dc2773a9efe 100644
--- a/lisp/progmodes/simula.el
+++ b/lisp/progmodes/simula.el
@@ -324,7 +324,7 @@ for SIMULA mode to function correctly."
324 "Keymap used in `simula-mode'.") 324 "Keymap used in `simula-mode'.")
325 325
326;; menus for Lucid 326;; menus for Lucid
327(defun simula-popup-menu (e) 327(defun simula-popup-menu (_e)
328 "Pops up the SIMULA menu." 328 "Pops up the SIMULA menu."
329 (interactive "@e") 329 (interactive "@e")
330 (popup-menu (cons (concat mode-name " Mode Commands") simula-mode-menu))) 330 (popup-menu (cons (concat mode-name " Mode Commands") simula-mode-menu)))
@@ -1202,9 +1202,8 @@ If COUNT is negative, move backward instead."
1202 ((eq simula-abbrev-keyword 'downcase) (downcase-word -1)) 1202 ((eq simula-abbrev-keyword 'downcase) (downcase-word -1))
1203 ((eq simula-abbrev-keyword 'capitalize) (capitalize-word -1))) 1203 ((eq simula-abbrev-keyword 'capitalize) (capitalize-word -1)))
1204 (let ((pos (- (point-max) (point))) 1204 (let ((pos (- (point-max) (point)))
1205 (case-fold-search t) 1205 (case-fold-search t))
1206 null) 1206 (condition-case nil
1207 (condition-case null
1208 (progn 1207 (progn
1209 ;; check if the expanded word is on the beginning of the line. 1208 ;; check if the expanded word is on the beginning of the line.
1210 (if (and (eq (char-syntax (preceding-char)) ?w) 1209 (if (and (eq (char-syntax (preceding-char)) ?w)
@@ -1244,8 +1243,9 @@ An optional second argument BOUND bounds the search, it is a buffer position.
1244The match found must not extend after that position. Optional third argument 1243The match found must not extend after that position. Optional third argument
1245NOERROR, if t, means if fail just return nil (no error). 1244NOERROR, if t, means if fail just return nil (no error).
1246If not nil and not t, move to limit of search and return nil." 1245If not nil and not t, move to limit of search and return nil."
1247 (let (begin end context (comb-regexp (concat regexp "\\|\\<end\\>")) 1246 (let ((comb-regexp (concat regexp "\\|\\<end\\>"))
1248 match (start-point (point))) 1247 (start-point (point))
1248 context match)
1249 (catch 'simula-backward 1249 (catch 'simula-backward
1250 (while (re-search-backward comb-regexp bound 1) 1250 (while (re-search-backward comb-regexp bound 1)
1251 ;; We have a match, check SIMULA context at match-beginning 1251 ;; We have a match, check SIMULA context at match-beginning
@@ -1306,8 +1306,9 @@ An optional second argument BOUND bounds the search, it is a buffer position.
1306The match found must not extend after that position. Optional third argument 1306The match found must not extend after that position. Optional third argument
1307NOERROR, if t, means if fail just return nil (no error). 1307NOERROR, if t, means if fail just return nil (no error).
1308If not nil and not t, move to limit of search and return nil." 1308If not nil and not t, move to limit of search and return nil."
1309 (let (begin end context (comb-regexp (concat regexp "\\|\\<begin\\>")) 1309 (let ((comb-regexp (concat regexp "\\|\\<begin\\>"))
1310 match (start-point (point))) 1310 (start-point (point))
1311 context match)
1311 (catch 'simula-forward 1312 (catch 'simula-forward
1312 (while (re-search-forward comb-regexp bound 1) 1313 (while (re-search-forward comb-regexp bound 1)
1313 ;; We have a match, check SIMULA context at match-beginning 1314 ;; We have a match, check SIMULA context at match-beginning