From unknown Thu Jun 19 13:57:37 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#6014 <6014@debbugs.gnu.org> To: bug#6014 <6014@debbugs.gnu.org> Subject: Status: processing of "'" inside Emacs octave-mode Reply-To: bug#6014 <6014@debbugs.gnu.org> Date: Thu, 19 Jun 2025 20:57:37 +0000 retitle 6014 processing of "'" inside Emacs octave-mode reassign 6014 emacs submitter 6014 Pascal Dupuis severity 6014 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 23 09:16:23 2010 Received: (at submit) by debbugs.gnu.org; 23 Apr 2010 13:16:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5Ik2-0002AX-5e for submit@debbugs.gnu.org; Fri, 23 Apr 2010 09:16:23 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5ITu-000202-B2 for submit@debbugs.gnu.org; Fri, 23 Apr 2010 08:59:43 -0400 Received: from lists.gnu.org ([199.232.76.165]:57179) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O5ITp-0003QY-8f for submit@debbugs.gnu.org; Fri, 23 Apr 2010 08:59:37 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O5ITo-0000iX-Qh for bug-gnu-emacs@gnu.org; Fri, 23 Apr 2010 08:59:36 -0400 Received: from [140.186.70.92] (port=50382 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5ITn-0000ho-98 for bug-gnu-emacs@gnu.org; Fri, 23 Apr 2010 08:59:36 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.0 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O5ITk-000597-Jd for bug-gnu-emacs@gnu.org; Fri, 23 Apr 2010 08:59:34 -0400 Received: from smtp.sgsi.ucl.ac.be ([130.104.5.67]:43440 helo=smtp2.sgsi.ucl.ac.be) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5ITk-00058p-7a for bug-gnu-emacs@gnu.org; Fri, 23 Apr 2010 08:59:32 -0400 Received: from [130.104.206.173] (tournesol.emic.ucl.ac.be [130.104.206.173]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: pasdupuis@smtp2.sgsi.ucl.ac.be) by smtp2.sgsi.ucl.ac.be (Postfix) with ESMTPSA id 34A93ECB65; Fri, 23 Apr 2010 14:56:10 +0200 (CEST) X-DKIM: Sendmail DKIM Filter v2.8.2 smtp2.sgsi.ucl.ac.be 34A93ECB65 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=uclouvain.be; s=selucl; t=1272027370; bh=0bKhWshHFpO0GQgso/lLXEC2HOaOQT3mluwAOWK+qDg=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type; b=xt+VYGKo21CEMN3YKBDYQpZH1U4YgFkt1h27sV2VRmtms6TqX1+BdtU5f1kke9mIv jKAt0blfwy5uL+ZYjBIw5LK/lnDSO29aC4AI8AZC4bbe5vd9rghPs0pFWAWvjej32I pWVsXN1kSWvbok0TykzY+jpeHf1g/xT4LAcuQPB8= Message-ID: <4BD198E9.10605@uclouvain.be> Date: Fri, 23 Apr 2010 14:56:09 +0200 From: Pascal Dupuis User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: Kurt Hornik , bug-gnu-emacs@gnu.org Subject: processing of "'" inside Emacs octave-mode Content-Type: multipart/mixed; boundary="------------080904090403030005050400" X-Virus-Scanned: clamav-milter 0.96-exp at smtp-2.sipr-dc.ucl.ac.be X-Virus-Status: Clean X-Sgsi-Spamcheck: SASL authenticated, X-SGSI-MailScanner-ID: 34A93ECB65.00000 X-SGSI-MailScanner: Found to be clean X-SGSI-From: pascal.dupuis@uclouvain.be X-SGSI-Spam-Status: No X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 23 Apr 2010 09:16:21 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.7 (----) This is a multi-part message in MIME format. --------------080904090403030005050400 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 ? 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 --------------080904090403030005050400 Content-Type: text/x-objcsrc; name="mysimple.m" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="mysimple.m" eCA9ICdhYSc7Cgpmb3IgaW5kaSA9IDE6bGVuZ3RoKHgpLAogIGRpc3AoeChpbmRpKSk7CmVu ZAoKeCA9IFsneyddOwoKZm9yIGluZGkgPSAxOmxlbmd0aCh4KSwKICAgIGRpc3AoeChpbmRp KSk7CmVuZAp5ID0gcmFuZCgyLCA1KTsKeCA9IHkuJzsKZGlzcChzaXplKHgpKQ== --------------080904090403030005050400-- From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 25 07:05:20 2010 Received: (at submit) by debbugs.gnu.org; 25 Apr 2010 11:05:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5zeJ-0001lE-1p for submit@debbugs.gnu.org; Sun, 25 Apr 2010 07:05:20 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5wUL-0000C4-Cz for submit@debbugs.gnu.org; Sun, 25 Apr 2010 03:42:50 -0400 Received: from lists.gnu.org ([199.232.76.165]:51771) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O5wUK-0008B5-Uc for submit@debbugs.gnu.org; Sun, 25 Apr 2010 03:42:49 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O5wUJ-0000fb-Ne for bug-gnu-emacs@gnu.org; Sun, 25 Apr 2010 03:42:48 -0400 Received: from [140.186.70.92] (port=42050 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5wUH-0000f3-4i for bug-gnu-emacs@gnu.org; Sun, 25 Apr 2010 03:42:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.0 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O5wUD-0002Yj-9u for bug-gnu-emacs@gnu.org; Sun, 25 Apr 2010 03:42:45 -0400 Received: from sslwuacat1.wu-wien.ac.at ([137.208.3.141]:39406) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5wUC-0002Wk-Tn for bug-gnu-emacs@gnu.org; Sun, 25 Apr 2010 03:42:41 -0400 Received: from fangorn.hornik.net (213-33-9-125.adsl.highway.telekom.at [213.33.9.125]) (authenticated bits=0) by sslwuacat1.wu-wien.ac.at (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o3P7gSSW000922 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 25 Apr 2010 09:42:29 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wu.ac.at; s=sslmail2009; t=1272181350; bh=WYiqQ7Ls/+7nfyClX1sWLKDeeLPVpPqVZKV /OieXNJs=; h=MIME-Version:Content-Type:Content-Transfer-Encoding: Message-ID:Date:To:Cc:Subject:In-Reply-To:References:Reply-To: From; b=IuzJzBLGkgnrgQ+bSWZ+KjnhnM1BVtGzX1Dq3M476dV2J/k0l87JMFnW1I Bh4vhilQtc5Fns4OTEwp2PKlQCfjl3DBsX5ZLGl3OwboiDBdsM69vRtP7h1ONn+pvGm ZOmxSudXZgHtKD0Ma2FInkf3fBKA92C83LsvtFmdwbufiQ= Received: from hornik by fangorn.hornik.net with local (Exim 4.71) (envelope-from ) id 1O5wTv-0003km-7H; Sun, 25 Apr 2010 09:42:23 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19411.62047.38420.16902@fangorn.hornik.net> Date: Sun, 25 Apr 2010 09:42:23 +0200 To: Pascal Dupuis Subject: Re: processing of "'" inside Emacs octave-mode In-Reply-To: <4BD198E9.10605@uclouvain.be> References: <4BD198E9.10605@uclouvain.be> X-Mailer: VM 8.1.0 under 23.1.1 (i486-pc-linux-gnu) From: Kurt Hornik X-AntiVirus: checked by Avira MailGate (version: 3.1.2; AVE: 8.2.1.224; VDF: 7.10.6.197; host: pocken); id=22394-O79VMN X-Virus-Scanned: clamav-milter 0.95.1 at herpes X-Virus-Status: Clean X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 25 Apr 2010 07:05:15 -0400 Cc: Kurt Hornik , bug-gnu-emacs@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Kurt.Hornik@wu.ac.at List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.3 (-----) >>>>> 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)) From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 31 09:11:59 2010 Received: (at 6014-done) by debbugs.gnu.org; 31 Aug 2010 13:11:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqQd3-0007Sb-St for submit@debbugs.gnu.org; Tue, 31 Aug 2010 09:11:58 -0400 Received: from chene.dit.umontreal.ca ([132.204.246.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqQM8-0007LV-6D for 6014-done@debbugs.gnu.org; Tue, 31 Aug 2010 08:54:28 -0400 Received: from ceviche.home (vpn-132-204-232-70.acd.umontreal.ca [132.204.232.70]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id o7VCu2wf009518; Tue, 31 Aug 2010 08:56:03 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 2CD92660DF; Tue, 31 Aug 2010 14:56:01 +0200 (CEST) From: Stefan Monnier To: Pascal Dupuis Subject: Re: bug#6014: processing of "'" inside Emacs octave-mode Message-ID: References: <4BD198E9.10605@uclouvain.be> Date: Tue, 31 Aug 2010 14:56:01 +0200 In-Reply-To: <4BD198E9.10605@uclouvain.be> (Pascal Dupuis's message of "Fri, 23 Apr 2010 14:56:09 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3611=0 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 6014-done X-Mailman-Approved-At: Tue, 31 Aug 2010 09:11:56 -0400 Cc: Kurt.Hornik@wu-wien.ac.at X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > 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 ? The latest code in Emacs's trunk (slated for Emacs-24) handles your example correctly. Please try it (it also includes a complete rewrite of the indentation and navigation code). Stefan From unknown Thu Jun 19 13:57:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 29 Sep 2010 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator