all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kurt Hornik <Kurt.Hornik@wu.ac.at>
To: Pascal Dupuis <Pascal.Dupuis@uclouvain.be>
Cc: Kurt Hornik <Kurt.Hornik@wu-wien.ac.at>, bug-gnu-emacs@gnu.org
Subject: bug#6014: processing of "'" inside Emacs octave-mode
Date: Sun, 25 Apr 2010 09:42:23 +0200	[thread overview]
Message-ID: <19411.62047.38420.16902@fangorn.hornik.net> (raw)
In-Reply-To: <4BD198E9.10605@uclouvain.be>

>>>>> Pascal Dupuis writes:

> Emacs  : GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3)
>   of 2010-03-26 on palmer, modified by Debian
> Package: Emacs version 23.1.1

> current state:
> ==============
> (setq
>   octave-auto-indent nil
>   octave-auto-newline nil
>   octave-blink-matching-block t
>   octave-block-offset 2
>   octave-comment-char 35
>   octave-continuation-offset 4
>   octave-continuation-string "\\"
>   octave-send-echo-input t
>   octave-send-line-auto-forward t
>   octave-send-show-buffer t
>   )

> Hello,

> I have to interchange programs with collegues working under
> MatLab. This implies that I have to use the single quote as string
> delimiter. I enclose a simple .m file where MatLab's editor smart
> indent feature works OK, but octave-mode chokes on the seventh
> line. It considers a brace is opened; this doesn't occur if I use a
> double quote instead. Would it be possible to have the single and
> double quote treated the same way ?

Not easily: one would need to emulate the Octave parser which can
distinguish between single quotes for transposition and string
delimiting.  You should really use matlab-mode for such code.

Regards
-k

> Regards

> Pascal

> -- 
> Dr. ir. Pascal Dupuis, assistant de recherche / research assistant
> U.C.Louvain EPL/ELEC/DICE :  http://www.dice.ucl.ac.be/
> Batiment Maxwell; Place du Levant, 3; B-1348 Louvain-la-Neuve Belgium
> Tel. +32-10-47 22 74; Fax +32-10-47 25 98

> ----------------------------------------------------------------------
> x = 'aa';

> for indi = 1:length(x),
>   disp(x(indi));
> end

> x = ['{'];

> for indi = 1:length(x),
>     disp(x(indi));
> end
> y = rand(2, 5);
> x = y.';
> disp(size(x))







  reply	other threads:[~2010-04-25  7:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-23 12:56 bug#6014: processing of "'" inside Emacs octave-mode Pascal Dupuis
2010-04-25  7:42 ` Kurt Hornik [this message]
2010-08-31 12:56 ` Stefan Monnier

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=19411.62047.38420.16902@fangorn.hornik.net \
    --to=kurt.hornik@wu.ac.at \
    --cc=Kurt.Hornik@wu-wien.ac.at \
    --cc=Pascal.Dupuis@uclouvain.be \
    --cc=bug-gnu-emacs@gnu.org \
    /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.