unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Christoph Dalitz <christoph.dalitz@hs-niederrhein.de>
Cc: help-octave@bevo.che.wisc.edu, bug-gnu-emacs@gnu.org
Subject: Re: %-Comments in Emacs Octave-Mode
Date: Mon, 27 Oct 2003 21:53:16 +0100	[thread overview]
Message-ID: <20031027215316.6cdc4f61.christoph.dalitz@hs-niederrhein.de> (raw)
In-Reply-To: <16281.26431.103647.908189@devzero.bogus.domain>

On Fri, 24 Oct 2003 12:54:07 -0500
"John W. Eaton" <jwe@bevo.che.wisc.edu> wrote:
> 
> | just observed that the Emacs octave-mode does not recognize lines
> | beginning wiht % as comment lines.
>
> Please try the following patch.
>
> -    (modify-syntax-entry ?\% "."  table) ; see above
> +    (modify-syntax-entry ?\% "<"  table)
>
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?

> 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.

Thanks,

Christoph



-------------------------------------------------------------
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 20:53 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 [this message]
2003-10-27 21:12     ` John W. Eaton

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=20031027215316.6cdc4f61.christoph.dalitz@hs-niederrhein.de \
    --to=christoph.dalitz@hs-niederrhein.de \
    --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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).