[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: %-Comments in Emacs Octave-Mode
From: |
John W. Eaton |
Subject: |
Re: %-Comments in Emacs Octave-Mode |
Date: |
Mon, 27 Oct 2003 15:12:30 -0600 |
On 27-Oct-2003, Christoph Dalitz <christoph.dalitz@hs-niederrhein.de> wrote:
| Thanks for the hint. I could achieve the same with the entry
|
| (add-hook 'octave-mode-hook '(lambda () (modify-syntax-entry ?\% "<")))
|
| in my ~/.emacs file. There is one quibble yet: '%'-comments are indented
| to end of the line rather than left were they are put. Is there a way
| to make '%' comments behave like '##' comments?
Use %% comments, or modify the code so that it does what you want?
| > The problem that the deleted comment
| > refers to has apparently been fixed, so indenting and font locking
| > both appear to work properly now for things like
| >
| > sprintf ("%s" "some string")
| >
| This works correctly, but
|
| sprintf ('%s', 'some string')
|
| not. I am using emacs 20.7 which ships with the latest Debian.
What is your definition of latest? I think you can get 21.x with the
testing distribution.
the real problem here is that it is much more complicated to decide
whether ' should be a transpose operator or a string delimiter.
I don't really care whether octave-mode supports these features (I'm
happy with " for strings and # for comments) but I would be happy to
accept changes that would make this work better.
jwe