From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juang Dse Newsgroups: gmane.emacs.bugs Subject: bug#46794: 28.0.50; octave-mode: parse error in debug mode Date: Wed, 31 May 2023 11:35:58 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20087"; mail-complaints-to="usenet@ciao.gmane.io" To: 46794@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 31 11:37:32 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q4IGq-00051K-07 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 May 2023 11:37:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q4IGP-0002TC-28; Wed, 31 May 2023 05:37:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q4IGM-0002Sn-CX for bug-gnu-emacs@gnu.org; Wed, 31 May 2023 05:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q4IGM-0000ZJ-4Y for bug-gnu-emacs@gnu.org; Wed, 31 May 2023 05:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q4IGL-00009y-MA for bug-gnu-emacs@gnu.org; Wed, 31 May 2023 05:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juang Dse Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 May 2023 09:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46794 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.1685525781561 (code B ref -1); Wed, 31 May 2023 09:37:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 May 2023 09:36:21 +0000 Original-Received: from localhost ([127.0.0.1]:34903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q4IFg-00008z-OO for submit@debbugs.gnu.org; Wed, 31 May 2023 05:36:21 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:33394) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q4IFb-00008l-5V for submit@debbugs.gnu.org; Wed, 31 May 2023 05:36:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q4IFa-00022W-RK for bug-gnu-emacs@gnu.org; Wed, 31 May 2023 05:36:14 -0400 Original-Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q4IFZ-0000Pm-17 for bug-gnu-emacs@gnu.org; Wed, 31 May 2023 05:36:14 -0400 Original-Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-514ab6cb529so1523801a12.1 for ; Wed, 31 May 2023 02:36:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685525770; x=1688117770; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=CuhXUZf7gwsctCCnVA3rsQPmx4XeNDsLBnWxecDu/Bw=; b=JBtblm640u/uFzQtHkZ0FeDnXHDvU/36YBSK+yCC/scVvg6sYeaTZ/3AKe1lGl7EaI dGHKdxHtm0mFh9HuztqSL1cLGTrj6+eEVuyqqUCQvHVpm4wgxNWNoaxCTvfnnY2XMq32 Wmhm0o+bNBIBYyuE9/qgsh39Niw+9Zb/u1EfnASOpSxNz79pUWjIyizRXGlzA1ZukQHe QswDSx3lArDpm6mJ4HMVDnqYWpN8chp9lf2Z7+mRU0g9M0rTLl9CM4CiOIRA/eAInUM+ Rqch5u/0DMLFSDbQ8g4CAcPt/VO1EFoSnOKbJw4CFFUdkwDBODLllas9axJCAJG0y83L YYLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685525770; x=1688117770; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CuhXUZf7gwsctCCnVA3rsQPmx4XeNDsLBnWxecDu/Bw=; b=lc/6yIVfBGmeuSJIkVwnjFTn/LreGZFiIgSZb0pMTiFbuKGRxI8Suh3zUmRqsSJoEH XNRcsrptvNo9nbH6yIn6lSS7BbtRJ+vsjSE806NYIHLowXT2zPHb9kpFsm9tx+LFRltc JvaX9sl/0G4HnAfGhrbON2klrShDj+YyxZWNN/0X5sX1a/QIpHUwQB8cqispp/nPTcpy QbodxMqSm/C9e07d1IUNNMzFQtNCYhuRena/xaTRkkVjzLbhro6d7k10gTlPssumixp1 ghxCRO9uoEsU45G1B1/ajVzgaDy+w933Gvijl7hQ2TeP4980yOFynS2cSoS4zSg+0ZVO nrcQ== X-Gm-Message-State: AC+VfDxz3OlCYEif1IypaQM93brSsVid1WnEqR4aU61Ww6mciUYDBQv9 0BHq96N8sjraYVEpdKbPrYGxcSY8n2Hx2zSLRH3CvYJ8BKfPymHW X-Google-Smtp-Source: ACHHUZ41PK9hstQUsU9S0kod9ZAvqsfFLdXqACVZyW6MxxS4J/Zsj/aTgbwy00Oh+PGYHgx3QI3sAtNvn3zo8u0iYxA= X-Received: by 2002:a17:907:d28:b0:973:ddfe:e074 with SMTP id gn40-20020a1709070d2800b00973ddfee074mr5982677ejc.2.1685525770142; Wed, 31 May 2023 02:36:10 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::531; envelope-from=juangdse@gmail.com; helo=mail-ed1-x531.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262650 Archived-At: it is actually simpler. Forget the for-loop and use instead ------------------- # hoo.m function hoo () pi endfunction ------------------- By marking and sending the string 'pi' everything works. But marking and sending *the entire line* that contains 'pi' executes that line *twice*. So it must be related to the newline that ends the 'pi' line. On Fri, Feb 26, 2021 at 2:26=E2=80=AFPM Juang Dse wrot= e: > > Suppose the file > ------------------- > # hoo.m > function hoo () > for j =3D 1 : 10 > y(j) =3D j ; > endfor > endfunction > ------------------- > is in the search path (e.g. same directory). Then execute > dbstop hoo > hoo() ; > > from within emacs (octave-send-line twice), and in the file hoo.m mark > the region of the for-loop, followed by octave-send-region. The > following error is thrown: > > debug> debug> debug> for j =3D 1 : 10 > y(j) =3D j ; > endfor > > > > debug> error: parse error: > > syntax error > > >>> endfor > ^ > > > -------------------------------------------------------------------------= ----- > In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, cairo version 1.17.4) > Repository revision: 90ac40570280f4f423b55a2d9eea5a44317a66e3 > Repository branch: master > Windowing system distributor 'The X.Org Foundation', version 11.0.1201000= 0 > System Description: Manjaro Linux > > Configured using: > 'configure --prefix=3D/opt/emacs --without-docs --with-x-toolkit=3Dno' > > Configured features: > ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG > JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY > OLDXMENU PDUMPER PNG RSVG SOUND THREADS TIFF X11 XDBE XIM XPM ZLIB > > > Major mode: Octave > > Minor modes in effect: > tooltip-mode: t > global-eldoc-mode: t > eldoc-mode: t > electric-indent-mode: t > mouse-wheel-mode: t > tool-bar-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > line-number-mode: t > transient-mark-mode: t > > Load-path shadows: > None found. > > Features: > (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs > rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail > rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs > eieio-loaddefs password-cache json map time-date subr-x seq byte-opt gv > bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse > rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 > ietf-drums mm-util mail-prsvr mail-utils compile text-property-search > cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine > cc-vars cc-defs cl-loaddefs cl-lib octave smie easymenu comint > ansi-color ring iso-transl tooltip eldoc electric uniquify ediff-hook > vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd > tool-bar dnd fontset image regexp-opt fringe tabulated-list replace > newcomment text-mode elisp-mode lisp-mode prog-mode register page > tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse > jit-lock font-lock syntax facemenu font-core term/tty-colors frame > minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese > tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek > romanian slovak czech european ethiopic indian cyrillic chinese > composite charscript charprop case-table epa-hook jka-cmpr-hook help > simple abbrev obarray cl-preloaded nadvice button loaddefs faces > cus-face macroexp files window text-properties overlay sha1 md5 base64 > format env code-pages mule custom widget hashtable-print-readable > backquote threads dbusbind inotify lcms2 dynamic-setting > system-font-setting font-render-setting cairo x multi-tty > make-network-process emacs)