diff options
| author | Stefan Monnier | 2012-12-05 00:30:58 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2012-12-05 00:30:58 -0500 |
| commit | ef54d315e8b5472580501b25fc640aba62e98d41 (patch) | |
| tree | f430c4380a8b72bc50a0d08ce9bb61211915d765 | |
| parent | 82d384f014db7498be0664dfb860234a63742d35 (diff) | |
| download | emacs-ef54d315e8b5472580501b25fc640aba62e98d41.tar.gz emacs-ef54d315e8b5472580501b25fc640aba62e98d41.zip | |
* lisp/progmodes/octave-mod.el (octave-mark-block): Move out of tokens and
fix open-paren-like token test.
Fixes: debbugs:12785
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/octave-mod.el | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7fc65d2bb3e..5712dd9f8c9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-12-05 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * progmodes/octave-mod.el (octave-mark-block): Move out of tokens and | ||
| 4 | fix open-paren-like token test (bug#12785). | ||
| 5 | |||
| 1 | 2012-12-04 Glenn Morris <rgm@gnu.org> | 6 | 2012-12-04 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * mail/rmailsum.el (rmail-new-summary): Tweak for | 8 | * mail/rmailsum.el (rmail-new-summary): Tweak for |
diff --git a/lisp/progmodes/octave-mod.el b/lisp/progmodes/octave-mod.el index ab5a19f8a2f..da40cf51be9 100644 --- a/lisp/progmodes/octave-mod.el +++ b/lisp/progmodes/octave-mod.el | |||
| @@ -794,11 +794,14 @@ does not end in `...' or `\\' or is inside an open parenthesis list." | |||
| 794 | "Put point at the beginning of this Octave block, mark at the end. | 794 | "Put point at the beginning of this Octave block, mark at the end. |
| 795 | The block marked is the one that contains point or follows point." | 795 | The block marked is the one that contains point or follows point." |
| 796 | (interactive) | 796 | (interactive) |
| 797 | (if (and (looking-at "\\sw\\|\\s_") | ||
| 798 | (looking-back "\\sw\\|\\s_" (1- (point)))) | ||
| 799 | (skip-syntax-forward "w_")) | ||
| 797 | (unless (or (looking-at "\\s(") | 800 | (unless (or (looking-at "\\s(") |
| 798 | (save-excursion | 801 | (save-excursion |
| 799 | (let* ((token (funcall smie-forward-token-function)) | 802 | (let* ((token (funcall smie-forward-token-function)) |
| 800 | (level (assoc token smie-grammar))) | 803 | (level (assoc token smie-grammar))) |
| 801 | (and level (null (cadr level)))))) | 804 | (and level (not (numberp (cadr level))))))) |
| 802 | (backward-up-list 1)) | 805 | (backward-up-list 1)) |
| 803 | (mark-sexp)) | 806 | (mark-sexp)) |
| 804 | 807 | ||