From unknown Sat Aug 16 10:50:52 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#7060 <7060@debbugs.gnu.org> To: bug#7060 <7060@debbugs.gnu.org> Subject: Status: 23.2; emacs does not recognize the "end" keyword as a block-delimiter in octave-mode Reply-To: bug#7060 <7060@debbugs.gnu.org> Date: Sat, 16 Aug 2025 17:50:52 +0000 retitle 7060 23.2; emacs does not recognize the "end" keyword as a block-de= limiter in octave-mode reassign 7060 emacs submitter 7060 Manjul Apratim severity 7060 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 17 17:39:33 2010 Received: (at submit) by debbugs.gnu.org; 17 Sep 2010 21:39:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwieZ-00079o-VN for submit@debbugs.gnu.org; Fri, 17 Sep 2010 17:39:33 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwiUj-00074q-7W for submit@debbugs.gnu.org; Fri, 17 Sep 2010 17:29:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwiX0-0001Nr-Ns for submit@debbugs.gnu.org; Fri, 17 Sep 2010 17:31:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:59062) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwiX0-0001Nn-IJ for submit@debbugs.gnu.org; Fri, 17 Sep 2010 17:31:42 -0400 Received: from [140.186.70.92] (port=37632 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwiWx-0007EI-UZ for bug-gnu-emacs@gnu.org; Fri, 17 Sep 2010 17:31:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwiWv-0001ND-7L for bug-gnu-emacs@gnu.org; Fri, 17 Sep 2010 17:31:39 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:39551) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwiWu-0001Mx-OR for bug-gnu-emacs@gnu.org; Fri, 17 Sep 2010 17:31:37 -0400 Received: by bwz10 with SMTP id 10so4186110bwz.0 for ; Fri, 17 Sep 2010 14:31:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=NZTT0bCImagbQ6FQQhTsr6QFUjI8aQQoGSikr8tecDA=; b=NfHEBoQmZkuuzIRZebsRvF65EyJC018LrQY6LA74jBrNeI6FXYrCHOo5j08tiQ8dvA bLmL1p8JN1UhhBmugqoTnr4PmFFV1itkoOD3Xmy1LtBeePZj6UW4tGIxmyvzSUXkkHdD KU8ZROGs7nksXj44+WF11/iZCy67Dxn06EaE0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=NkVOZzVMaAzGg50C07oYKPEwalj3G9P1BfTtORb3+FE9OE1K9RjzhofNhK75UTbo8x OfNcb8T4E97uSpKyZQiva4LbA2M8EJRDghTd4+AMsMR6sVGhVa2k5VKMdCwAPXjm705K 2mgGWH2pB/CBPt/wOR1AZxVFLripdGfLsoIMs= MIME-Version: 1.0 Received: by 10.204.113.65 with SMTP id z1mr3234984bkp.25.1284759093787; Fri, 17 Sep 2010 14:31:33 -0700 (PDT) Received: by 10.204.65.13 with HTTP; Fri, 17 Sep 2010 14:31:33 -0700 (PDT) Date: Fri, 17 Sep 2010 17:31:33 -0400 Message-ID: Subject: 23.2; emacs does not recognize the "end" keyword as a block-delimiter in octave-mode From: Manjul Apratim To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=00504502cd8f683d1a04907b4958 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 17 Sep 2010 17:39:30 -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: -5.9 (-----) --00504502cd8f683d1a04907b4958 Content-Type: text/plain; charset=ISO-8859-1 Message-ID: <878w3083wr.fsf@chaar.i-did-not-set--mail-host-address--so-tickle-me> --text follows this line-- emacs does not recognize the "end" keyword as a block-delimiter in octave-mode. Upon inspecting the file octave-mod.el, I see the following line before the variable "octave-end-keywords": ";; FIXME: only use specific "end" tokens here to avoid confusion when "end" ;; is used in indexing (the real fix is much more complex)." I could not ascertain what the fix was, but I tried manually appending the "end" keyword in the "octave-end-keywords" list as well as the "octave-block-match-alist" environment, and I still could not get the "end" keyword to be recognized. I did not understand why this was so because upon doing a find for "endif" on the file, one sees that "endif" occurs exactly thrice - once for a short-cut, and once each in the above-mentioned environments, and putting the "end" keyword on the same footing as "endif" would be naively expected to work (also "endwhile" and "endfor"). I have the following in the my .emacs file: ;; octave bindings (autoload 'octave-mode "octave-mod" nil t) (setq auto-mode-alist (cons '("\\.m$" . octave-mode) auto-mode-alist)) (add-hook 'octave-mode-hook (lambda () (abbrev-mode 1) (auto-fill-mode 1) (if (eq window-system 'x) (font-lock-mode 1)))) (defun RET-behaves-as-LFD () (let ((x (key-binding "\C-j"))) (local-set-key "\C-m" x))) (add-hook 'octave-mode-hook 'RET-behaves-as-LFD) (setq octave-auto-indent t) Specifically, I want the "end" keyword to indent properly because I have to write matlab-compatible code - the University server I submit jobs on has matlab installed on it and the sysadmin is reluctant to install octave there. I can obtain matlab from my University for free, but I refuse to do so and I would rather continue to work in octave. Similarly, I would rather not use 'matlab-mode' and stick to 'octave-mode' instead. I have come across certain previous versions of octave-mod.el, and they seem to contain the "end" keyword alongwith the other octave-end-keywords. I tried to replace my original octave-mod.el file with one of those old files - specifically, one at (disdainfully on an apple site, but no immediate alternatives were available): opensource.apple.com/source/emacs/emacs-41/emacs/lisp/progmodes/octave-mod.el but that did not help either, and though all the other keywords still behaved the same, the "end" keyword was still not recognized. I also apologize for not sending the email directly from emacs, since I did not have my smtp settings configured at this time. Sincerely, Manjul Apratim In GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-09-01 on rutherfordium, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10706000 configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.2/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Octave Minor modes in effect: show-paren-mode: t cua-mode: t tooltip-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-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: x x x x x C-x M-x M-x r e p o r t - e m a c s - b u g Recent messages: Loading debian-ispell... Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done Loading debian-ispell...done Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done Loading /etc/emacs/site-start.d/50octave3.2-emacsen.el (source)...done Loading cua-base...done Loading paren...done For information about GNU Emacs and the GNU system, type C-h C-a. Mark set Load-path shadows: /usr/share/emacs/23.2/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs23/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/23.2/lisp/textmodes/flyspell /usr/share/emacs23/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/23.2/lisp/textmodes/ispell /usr/share/emacs/23.2/site-lisp/octave3.2-emacsen/octave-inf hides /usr/share/emacs/23.2/lisp/progmodes/octave-inf /usr/share/emacs/23.2/site-lisp/octave3.2-emacsen/octave-mod hides /usr/share/emacs/23.2/lisp/progmodes/octave-mod Features: (shadow sort mail-extr message sendmail regexp-opt ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug easymenu octave-mod paren cua-base cus-start cus-load tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) --00504502cd8f683d1a04907b4958 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <878w3083wr.fsf@chaar.i-did-not-set--mail-host-address--so-t= ickle-me>
--text follows this line--

emacs does not recognize = the "end" keyword as a block-delimiter in
octave-mode. Upon in= specting the file octave-mod.el, I see the following line before
the variable "octave-end-keywords":

";; FIXME: only u= se specific "end" tokens here to avoid confusion when "end&q= uot;
;; is used in indexing (the real fix is much more complex)."
I could not ascertain what the fix was, but I tried manually appending<= br>the "end" keyword in the "octave-end-keywords" list = as well as the
"octave-block-match-alist" environment, and I s= till could not get the
"end" keyword to be recognized. I did not understand why this was= so
because upon doing a find for "endif" on the file, one see= s that "endif"
occurs exactly thrice - once for a short-cut, a= nd once each in the
above-mentioned environments, and putting the "end" keyword on th= e same
footing as "endif" would be naively expected to work (a= lso "endwhile"
and "endfor"). I have the following i= n the my .emacs file:

;; octave bindings

(autoload 'octave-mode "octave-mod&q= uot; nil t)
(setq auto-mode-alist
(cons '("\\.m$" . oct= ave-mode) auto-mode-alist))

(add-hook 'octave-mode-hook
(lamb= da ()
(abbrev-mode 1)
(auto-fill-mode 1)
(if (eq window-system 'x)
(= font-lock-mode 1))))

(defun RET-behaves-as-LFD ()
(let ((x (key-b= inding "\C-j")))
(local-set-key "\C-m" x)))
(add-= hook 'octave-mode-hook 'RET-behaves-as-LFD)

(setq octave-auto-indent t)

Specifically, I want the "end&q= uot; keyword to indent properly because I have
to write matlab-compatibl= e code - the University server I submit jobs on
has matlab installed on = it and the sysadmin is reluctant to install
octave there. I can obtain matlab from my University for free, but I
ref= use to do so and I would rather continue to work in
octave. Similarly, I= would rather not use 'matlab-mode' and stick to
'octave-mod= e' instead.

I have come across certain previous versions of
octave-mod.el, and t= hey seem to contain the "end" keyword alongwith the
other octa= ve-end-keywords. I tried to replace my original octave-mod.el
file with = one of those old files - specifically, one at (disdainfully on
an apple site, but no immediate alternatives were available):
opensource.apple.com/source/emacs/emacs-41/emacs/lisp/progmodes= /octave-mod.el
but that did not help either, and though all the other keywords still
be= haved the same, the "end" keyword was still not recognized.
I also apologize for not sending the email directly from emacs, since I d= id not have my smtp settings
configured at this time.

Sincerely,

Manjul Apratim




In GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1)=A0of 2010-09-01 on rutherfordium, modified by Debian
Windowing system= distributor `The X.Org Foundation', version 11.0.10706000
configured using `configure=A0 '--build=3Di486-linux-gnu' '--ho= st=3Di486-linux-gnu' '--prefix=3D/usr' '--sharedstatedir=3D= /var/lib' '--libexecdir=3D/usr/lib' '--localstatedir=3D/var= /lib' '--infodir=3D/usr/share/info' '--mandir=3D/usr/share/= man' '--with-pop=3Dyes' '--enable-locallisppath=3D/etc/emac= s23:/etc/emacs:/usr/local/share/emacs/23.2/site-lisp:/usr/local/share/emacs= /site-lisp:/usr/share/emacs/23.2/site-lisp:/usr/share/emacs/site-lisp:/usr/= share/emacs/23.2/leim' '--with-x=3Dyes' '--with-x-toolkit= =3Dgtk' '--with-toolkit-scroll-bars' 'build_alias=3Di486-li= nux-gnu' 'host_alias=3Di486-linux-gnu' 'CFLAGS=3D-DDEBIAN -= g -O2' 'LDFLAGS=3D-g' 'CPPFLAGS=3D''

Important settings:
=A0 value of $LC_ALL: nil
=A0 value of $LC_CO= LLATE: nil
=A0 value of $LC_CTYPE: nil
=A0 value of $LC_MESSAGES: nil=
=A0 value of $LC_MONETARY: nil
=A0 value of $LC_NUMERIC: nil
=A0 = value of $LC_TIME: nil
=A0 value of $LANG: en_US.UTF-8
=A0 value of $XMODIFIERS: @im=3Dibus
= =A0 locale-coding-system: utf-8-unix
=A0 default enable-multibyte-charac= ters: t

Major mode: Octave

Minor modes in effect:
=A0 show= -paren-mode: t
=A0 cua-mode: t
=A0 tooltip-mode: t
=A0 mouse-wheel-mode: t
=A0 to= ol-bar-mode: t
=A0 menu-bar-mode: t
=A0 file-name-shadow-mode: t
= =A0 global-font-lock-mode: t
=A0 font-lock-mode: t
=A0 blink-cursor-m= ode: t
=A0 auto-encryption-mode: t
=A0 auto-compression-mode: t
=A0 line-number-mode: t
=A0 transient-ma= rk-mode: t
=A0 abbrev-mode: t

Recent input:
<next> <n= ext> <next> <next> <next> <down> <down> &l= t;down>
<down> <down> <down> <down> <down> <down&g= t; <down> <down>
<down> <down> <down> <= ;down> <down> <down> <down> <down>
<down&= gt; <down> <down> <down> <down> <down> <do= wn> <down>
<down> <down> <down> <down> <down> <down&g= t; <down> <down>
<down> <down> <down> <= ;down> <down> <down> <down> <down>
<down&= gt; <down> <down> <down> <down> <down> <do= wn> <down>
<down> <down> <down> <down> <down> <down&g= t; <down> <down>
<down> <down> <down> <= ;down> <down> <down> <down> <down>
<down&= gt; <down> <down> <down> <down> <down> <do= wn> <down>
<down> <down> <down> <down> <down> <down&g= t; <down> <down>
<down> <down> <down> <= ;down> <down> <down> <down> <down>
<next&= gt; <next> <prior> <prior> <prior> <prior> &l= t;prior>
<prior> <help-echo> <down-mouse-1> x <mouse-1> <= down-mouse-1>
<mouse-movement> x <drag-mouse-1> <down= -mouse-1> x
<mouse-1> <down-mouse-1> <mouse-1> <= ;double-down-mouse-1>
x <double-mouse-1> <down-mouse-1> x <mouse-1> <down-mo= use-1>
<mouse-1> C-x M-x <down-mouse-1> <mouse-1> = <down-mouse-1>
<mouse-1> M-x <help-echo> r e p o r t = - e m a c s -
b u g <return>

Recent messages:
Loading debian-ispell...Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source).= ..done
Loading debian-ispell...done
Loading /var/cache/dictionaries-c= ommon/emacsen-ispell-dicts.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...doneLoading /etc/emacs/site-start.d/50octave3.2-emacsen.el (source)...done
= Loading cua-base...done
Loading paren...done
For information about GN= U Emacs and the GNU system, type C-h C-a.
Mark set

Load-path shadows:
/usr/share/emacs/23.2/site-lisp/debia= n-startup hides /usr/share/emacs/site-lisp/debian-startup
/usr/share/ema= cs23/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/23.2/lis= p/textmodes/flyspell
/usr/share/emacs23/site-lisp/dictionaries-common/ispell hides /usr/share/em= acs/23.2/lisp/textmodes/ispell
/usr/share/emacs/23.2/site-lisp/octave3.2= -emacsen/octave-inf hides /usr/share/emacs/23.2/lisp/progmodes/octave-inf /usr/share/emacs/23.2/site-lisp/octave3.2-emacsen/octave-mod hides /usr/sha= re/emacs/23.2/lisp/progmodes/octave-mod

Features:
(shadow sort ma= il-extr message sendmail regexp-opt ecomplete rfc822 mml
mml-sec passwor= d-cache mm-decode mm-bodies mm-encode mailcap mail-parse
rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util
netr= c time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock
sha= 1 hex-util hashcash mail-utils emacsbug easymenu octave-mod paren
cua-ba= se cus-start cus-load tooltip ediff-hook vc-hooks lisp-float-type
mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe
lisp-m= ode register page menu-bar rfn-eshadow timer select scroll-bar
mldrag mo= use jit-lock font-lock syntax facemenu font-core frame cham
georgian utf= -8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
ind= ian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbre= v loaddefs button minibuffer faces cus-face files text-properties
overla= y md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
system-= font-setting font-render-setting gtk x-toolkit x multi-tty emacs)

--00504502cd8f683d1a04907b4958-- From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 17 20:40:26 2010 Received: (at 7060) by debbugs.gnu.org; 18 Sep 2010 00:40:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwlTe-0000fA-En for submit@debbugs.gnu.org; Fri, 17 Sep 2010 20:40:26 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwlTc-0000f3-L3 for 7060@debbugs.gnu.org; Fri, 17 Sep 2010 20:40:24 -0400 Received: from ceviche.home (vpn-132-204-232-72.acd.umontreal.ca [132.204.232.72]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id o8I0gilL018148; Fri, 17 Sep 2010 20:42:45 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 8114266289; Sat, 18 Sep 2010 02:42:43 +0200 (CEST) From: Stefan Monnier To: Manjul Apratim Subject: Re: bug#7060: 23.2; emacs does not recognize the "end" keyword as a block-delimiter in octave-mode Message-ID: References: Date: Sat, 18 Sep 2010 02:42:43 +0200 In-Reply-To: (Manjul Apratim's message of "Fri, 17 Sep 2010 17:31:33 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3625=0 X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 7060 Cc: 7060@debbugs.gnu.org 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 (--) > emacs does not recognize the "end" keyword as a block-delimiter in > octave-mode. Upon inspecting the file octave-mod.el, I see the following > line before > the variable "octave-end-keywords": The octave-mod.el that will be in Emacs-24 has completely rewritten the indentation and block navigation code. I cannot reproduce the problem there. Sadly it uses a new package smie.el that's not in Emacs-23. This said, the octave-mod.el that's in the emacs-23 branch (and that will be released as Emacs-23.3 in the not too distant future) also seems to correctly handle "end". If you could confirm that one of those two versions works for you, that would be great (of course I recommend the version from `trunk' which uses smie.el since I'm the author of that code). Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 18 15:53:36 2010 Received: (at submit) by debbugs.gnu.org; 18 Sep 2010 19:53:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ox3Tb-0002zp-MZ for submit@debbugs.gnu.org; Sat, 18 Sep 2010 15:53:36 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ox38D-0002qQ-Al for submit@debbugs.gnu.org; Sat, 18 Sep 2010 15:31:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ox3AX-0002N9-Q8 for submit@debbugs.gnu.org; Sat, 18 Sep 2010 15:33:54 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:46806) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ox3AX-0002Mz-NC for submit@debbugs.gnu.org; Sat, 18 Sep 2010 15:33:53 -0400 Received: from [140.186.70.92] (port=55572 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ox39K-00077D-0R for bug-gnu-emacs@gnu.org; Sat, 18 Sep 2010 15:32:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ox39I-0002Ck-SN for bug-gnu-emacs@gnu.org; Sat, 18 Sep 2010 15:32:37 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:55361) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ox39I-0002CU-LK for bug-gnu-emacs@gnu.org; Sat, 18 Sep 2010 15:32:36 -0400 Received: by bwz10 with SMTP id 10so4884384bwz.0 for ; Sat, 18 Sep 2010 12:32:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=mlo3vMmxCak5hI08DrqT5I8sDYRu2l0LuNgqxZoy9Zk=; b=M2PAwLEZoTjwDOYT6rskfZRYO5HCV1UftCpaMv1dK5vffR5cM4qaRcEoU0YX5APnhp ei45ZSJsY7qn5ttvi7PkYHzf9tAqDV63Tzawdl9JvgdrxCELNXrRLKd2ynIaxGr8RDqi dLxNKW3Z8nyqE9AMXzIWyTLOdzKm/sHTekYgg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=DqG7bdpFHHu4NtSDz7fc8NlQedKaQnWFCc12Ios9XoL02BTGbW98h11qS+6HrtfVnB KjNB7pAWOU+H426pdnMTrUrezGi2/1P/SoK7hzV19Quoa+ujzfwXp85UxP0FgrXNmEZG R6nfhjCV0F9I++gMWI//Db9l7YU9cFeMLduGY= MIME-Version: 1.0 Received: by 10.204.57.75 with SMTP id b11mr5314579bkh.29.1284838355683; Sat, 18 Sep 2010 12:32:35 -0700 (PDT) Received: by 10.204.65.13 with HTTP; Sat, 18 Sep 2010 12:32:35 -0700 (PDT) Date: Sat, 18 Sep 2010 15:32:35 -0400 Message-ID: Subject: bug#7060: 23.2; emacs does not recognize the "end" keyword as a block-delimiter in octave-mode From: Manjul Apratim To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=001636d34c29c8c81004908dbd32 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 18 Sep 2010 15:53:34 -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: -5.9 (-----) --001636d34c29c8c81004908dbd32 Content-Type: text/plain; charset=ISO-8859-1 Very nice! I pulled the trunk version of emacs - 24.0.50 - from bazaar and checkinstalled it. "end" is working perfectly on this version, as also all the other keywords. One thing however - emacs does not warn anymore if two non-matching block delimiters are tried, say if I put in "endif" with "for", while in the previous version, it did warn that the keywords do not match. I think I understand from the "make bootstrap" process why merely changing the octave-mod.el file did not work before - I believe it needed to be compiled into an elc file, which would only happen if I were to rebuild the source from scratch - is that correct? Manjul --001636d34c29c8c81004908dbd32 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Very nice! I pulled the trunk version of emacs - 24.0.50 - from bazaar and = checkinstalled it. "end" is working perfectly on this version, as= also all the other keywords. One thing however - emacs does not warn anymo= re if two non-matching block delimiters are tried, say if I put in "en= dif" with "for", while in the previous version, it did warn = that the keywords do not match.

I think I understand from the "make bootstrap" process why me= rely changing the octave-mod.el file did not work before - I believe it nee= ded to be compiled into an elc file, which would only happen if I were to r= ebuild the source from scratch - is that correct?

Manjul


--001636d34c29c8c81004908dbd32-- From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 07 16:42:41 2011 Received: (at control) by debbugs.gnu.org; 7 Aug 2011 20:42:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QqABE-0002kQ-Nj for submit@debbugs.gnu.org; Sun, 07 Aug 2011 16:42:41 -0400 Received: from vm-emlprdomr-02.its.yale.edu ([130.132.50.143]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QqABB-0002kH-Ab for control@debbugs.gnu.org; Sun, 07 Aug 2011 16:42:37 -0400 Received: from furball (c-71-192-165-84.hsd1.ct.comcast.net [71.192.165.84]) (authenticated bits=0) by vm-emlprdomr-02.its.yale.edu (8.14.4/8.14.4) with ESMTP id p77Kfbiu004449 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Sun, 7 Aug 2011 16:41:38 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 7060 Date: Sun, 07 Aug 2011 16:41:37 -0400 Message-ID: <8762m9rm2m.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.143 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control 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.6 (--) close 7060 thanks From unknown Sat Aug 16 10:50:52 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 05 Sep 2011 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