all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "John W. Eaton" <jwe@bevo.che.wisc.edu>
Cc: "John W. Eaton" <jwe@bevo.che.wisc.edu>,
	help-octave@bevo.che.wisc.edu, bug-gnu-emacs@gnu.org
Subject: Re: %-Comments in Emacs Octave-Mode
Date: Mon, 27 Oct 2003 15:12:30 -0600	[thread overview]
Message-ID: <16285.35390.659885.780388@devzero.bogus.domain> (raw)
In-Reply-To: <20031027215316.6cdc4f61.christoph.dalitz@hs-niederrhein.de>

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



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



      reply	other threads:[~2003-10-27 21:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20031024134043.78714d06.christoph.dalitz@hs-niederrhein.de>
2003-10-24 17:54 ` %-Comments in Emacs Octave-Mode John W. Eaton
2003-10-27 20:53   ` Christoph Dalitz
2003-10-27 21:12     ` John W. Eaton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16285.35390.659885.780388@devzero.bogus.domain \
    --to=jwe@bevo.che.wisc.edu \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=help-octave@bevo.che.wisc.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.