Mercurial > emacs
comparison lisp/progmodes/octave-mod.el @ 101002:3b3c7e10cd97
Replace last-command-char with last-command-event.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Fri, 09 Jan 2009 04:15:52 +0000 |
parents | a9dc0e7c3f2b |
children | 89a1bad44673 |
comparison
equal
deleted
inserted
replaced
101001:14b421290b2f | 101002:3b3c7e10cd97 |
---|---|
1310 (defun octave-electric-space () | 1310 (defun octave-electric-space () |
1311 "Insert a space in Octave mode. | 1311 "Insert a space in Octave mode. |
1312 Maybe expand abbrevs and blink matching block open keywords. | 1312 Maybe expand abbrevs and blink matching block open keywords. |
1313 Reindent the line of `octave-auto-indent' is non-nil." | 1313 Reindent the line of `octave-auto-indent' is non-nil." |
1314 (interactive) | 1314 (interactive) |
1315 (setq last-command-char ? ) | 1315 (setq last-command-event ? ) |
1316 (if (and octave-auto-indent | 1316 (if (and octave-auto-indent |
1317 (not (octave-not-in-string-or-comment-p))) | 1317 (not (octave-not-in-string-or-comment-p))) |
1318 (progn | 1318 (progn |
1319 (indent-according-to-mode) | 1319 (indent-according-to-mode) |
1320 (self-insert-command 1)) | 1320 (self-insert-command 1)) |
1336 Note that all Octave mode abbrevs start with a grave accent." | 1336 Note that all Octave mode abbrevs start with a grave accent." |
1337 (interactive) | 1337 (interactive) |
1338 (if (not abbrev-mode) | 1338 (if (not abbrev-mode) |
1339 (self-insert-command 1) | 1339 (self-insert-command 1) |
1340 (let (c) | 1340 (let (c) |
1341 (insert last-command-char) | 1341 (insert last-command-event) |
1342 (if (if (featurep 'xemacs) | 1342 (if (if (featurep 'xemacs) |
1343 (or (eq (event-to-character (setq c (next-event))) ??) | 1343 (or (eq (event-to-character (setq c (next-event))) ??) |
1344 (eq (event-to-character c) help-char)) | 1344 (eq (event-to-character c) help-char)) |
1345 (or (eq (setq c (read-event)) ??) | 1345 (or (eq (setq c (read-event)) ??) |
1346 (eq c help-char))) | 1346 (eq c help-char))) |