all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* octave-mode/SMIE question
@ 2014-06-04 21:52 Eduard Wiebe
  2014-06-05  0:33 ` Leo Liu
  2014-06-05  0:43 ` Stefan Monnier
  0 siblings, 2 replies; 4+ messages in thread
From: Eduard Wiebe @ 2014-06-04 21:52 UTC (permalink / raw)
  To: emacs-devel


 Hello,

i have a question about `octave-mode' and/or SMIE.

Consider the following snippet:

(define-derived-mode matlab-mode octave-mode "MATLAB"
  "My poor man's MATLAB mode based on `octave-mode'.
\\{matlab-mode-map}"
  (setq-local octave-end-keywords '("end")) ;; Without an effect
  (setq-local octave-comment-char ?\%)
  (setq-local octave-comment-start "%")
  (setq-local octave-block-offset 4)
  (setq-local octave-block-comment-start "%% "))

If matlab-mode is loaded and i use `smie-close-block' (C-c /), then
each block is closed with Octave-specific close token ('if' is closed
with 'endif', 'while' with 'endwhile' and so on).

But MATLAB-grammar knows only `end' as a block close token.

How i can accomplish the intended behaviour of `smie-close-block' for
my matlab-mode? Or is an advice my last chace?

--
Eduard Wiebe




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-05 19:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-04 21:52 octave-mode/SMIE question Eduard Wiebe
2014-06-05  0:33 ` Leo Liu
2014-06-05  0:43 ` Stefan Monnier
2014-06-05 19:28   ` Eduard Wiebe

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.