comparison lisp/progmodes/octave-mod.el @ 106697:ac408704629c

lisp/*: Fix typos in docstrings and messages.
author Juanma Barranquero <lekktu@gmail.com>
date Sat, 02 Jan 2010 02:05:44 +0100
parents f14ff1a09863
children 4039413a8b1d
comparison
equal deleted inserted replaced
106696:9084997e41f6 106697:ac408704629c
408 (defun octave-mode () 408 (defun octave-mode ()
409 "Major mode for editing Octave code. 409 "Major mode for editing Octave code.
410 410
411 This mode makes it easier to write Octave code by helping with 411 This mode makes it easier to write Octave code by helping with
412 indentation, doing some of the typing for you (with Abbrev mode) and by 412 indentation, doing some of the typing for you (with Abbrev mode) and by
413 showing keywords, comments, strings, etc.. in different faces (with 413 showing keywords, comments, strings, etc. in different faces (with
414 Font Lock mode on terminals that support it). 414 Font Lock mode on terminals that support it).
415 415
416 Octave itself is a high-level language, primarily intended for numerical 416 Octave itself is a high-level language, primarily intended for numerical
417 computations. It provides a convenient command line interface for 417 computations. It provides a convenient command line interface for
418 solving linear and nonlinear problems numerically. Function definitions 418 solving linear and nonlinear problems numerically. Function definitions
1258 (indent-according-to-mode)) 1258 (indent-according-to-mode))
1259 1259
1260 (defun octave-electric-semi () 1260 (defun octave-electric-semi ()
1261 "Insert a semicolon in Octave mode. 1261 "Insert a semicolon in Octave mode.
1262 Maybe expand abbrevs and blink matching block open keywords. 1262 Maybe expand abbrevs and blink matching block open keywords.
1263 Reindent the line of `octave-auto-indent' is non-nil. 1263 Reindent the line if `octave-auto-indent' is non-nil.
1264 Insert a newline if `octave-auto-newline' is non-nil." 1264 Insert a newline if `octave-auto-newline' is non-nil."
1265 (interactive) 1265 (interactive)
1266 (if (not (octave-not-in-string-or-comment-p)) 1266 (if (not (octave-not-in-string-or-comment-p))
1267 (insert ";") 1267 (insert ";")
1268 (if abbrev-mode (expand-abbrev)) 1268 (if abbrev-mode (expand-abbrev))
1275 (newline-and-indent)))) 1275 (newline-and-indent))))
1276 1276
1277 (defun octave-electric-space () 1277 (defun octave-electric-space ()
1278 "Insert a space in Octave mode. 1278 "Insert a space in Octave mode.
1279 Maybe expand abbrevs and blink matching block open keywords. 1279 Maybe expand abbrevs and blink matching block open keywords.
1280 Reindent the line of `octave-auto-indent' is non-nil." 1280 Reindent the line if `octave-auto-indent' is non-nil."
1281 (interactive) 1281 (interactive)
1282 (setq last-command-event ? ) 1282 (setq last-command-event ? )
1283 (if (and octave-auto-indent 1283 (if (and octave-auto-indent
1284 (not (octave-not-in-string-or-comment-p))) 1284 (not (octave-not-in-string-or-comment-p)))
1285 (progn 1285 (progn