From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Liu Newsgroups: gmane.emacs.bugs Subject: bug#14457: 24.3; buggy forward-sexp in octave mode? Date: Fri, 24 May 2013 11:07:02 +0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1369364899 8880 80.91.229.3 (24 May 2013 03:08:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 May 2013 03:08:19 +0000 (UTC) To: 14457@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 24 05:08:19 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UfiMc-0004mA-JX for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 May 2013 05:08:18 +0200 Original-Received: from localhost ([::1]:53441 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfiMc-0007Lp-5P for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 May 2013 23:08:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfiMV-0007KR-73 for bug-gnu-emacs@gnu.org; Thu, 23 May 2013 23:08:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfiMU-00024E-2v for bug-gnu-emacs@gnu.org; Thu, 23 May 2013 23:08:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfiMT-00024A-Vu for bug-gnu-emacs@gnu.org; Thu, 23 May 2013 23:08:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UfiNK-0002Bv-Rh for bug-gnu-emacs@gnu.org; Thu, 23 May 2013 23:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Leo Liu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 May 2013 03:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14457 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13693649028281 (code B ref -1); Fri, 24 May 2013 03:09:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 May 2013 03:08:22 +0000 Original-Received: from localhost ([127.0.0.1]:59198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UfiMf-00029V-St for submit@debbugs.gnu.org; Thu, 23 May 2013 23:08:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41712) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UfiMa-00028Y-BP for submit@debbugs.gnu.org; Thu, 23 May 2013 23:08:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfiLb-0001VE-6R for submit@debbugs.gnu.org; Thu, 23 May 2013 23:07:17 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:34783) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfiLb-0001VA-2v for submit@debbugs.gnu.org; Thu, 23 May 2013 23:07:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfiLZ-00076H-Tv for bug-gnu-emacs@gnu.org; Thu, 23 May 2013 23:07:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfiLY-0001Tx-M3 for bug-gnu-emacs@gnu.org; Thu, 23 May 2013 23:07:13 -0400 Original-Received: from mail-pa0-f45.google.com ([209.85.220.45]:44676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfiLY-0001Td-Em for bug-gnu-emacs@gnu.org; Thu, 23 May 2013 23:07:12 -0400 Original-Received: by mail-pa0-f45.google.com with SMTP id lj1so3750498pab.32 for ; Thu, 23 May 2013 20:07:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=5xZiRTcQGV8ikTgWZswkGxTzTuZCzH/2D2Md8pn78gQ=; b=DW1mj8G3KO4s5gZ/Stgji2UzBFFx80gMqT9JzfqEtGPvMNAY2Bh5P3EMvlICerynnK 3YNzifvITX2fBT10uioOwls9A+ZEmfXfgsDNkxfvSc0WrClm9OrBNp/9O3csWCdM5ted 6rYWHdZ19Mvup4DI+iZen2mFEmto91GoDMKmptOc36MxyXFHMUdskdGgoZv0nUL+x+/X D/I6RmoY+HoG2nYjFlBmFgpnqKKpE40LlpYWMUY6dsA3HxqvrYXgdQa1xlCaed6YVouZ CZOP9Dc2quYGPfEG5woF7ILTpw6lOozyWEj5RETTCkVjj6hfgy+LPmlPloTZpIG5vtd2 AQWw== X-Received: by 10.66.154.195 with SMTP id vq3mr16351233pab.105.1369364831318; Thu, 23 May 2013 20:07:11 -0700 (PDT) Original-Received: from Zeuss-MacBook.local ([119.161.133.157]) by mx.google.com with ESMTPSA id cp1sm14169497pbc.42.2013.05.23.20.07.09 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 23 May 2013 20:07:10 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74514 Archived-At: --=-=-= Content-Type: text/plain 1. Open the attached file 2. Move point to end of the word 'otherwise' 3. M-: (forward-sexp -1) Is this correct behaviour? I noticed this via smie-highlight-matching-block-mode. Leo --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=unimplemented.m Content-Description: unimplemented.m ## -*- mode: octave; -*- function txt = unimplemented (fcn) is_matlab_function = true; ## Some smarter cases, add more as needed. switch (fcn) case "importdata" txt = ["importdata is not implemented. Similar functionality is ",... "available through @code{load}, @code{dlmread}, @code{csvread}, ",... "or @code{textscan}."]; case "quad2d" txt = ["quad2d is not implemented. Consider using dblquad."]; case "gsvd" txt = ["gsvd is not currently part of core Octave. See the ",... "linear-algebra package at ",... "@url{http://octave.sourceforge.net/linear-algebra/}."]; case "linprog" txt = ["Octave does not currently provide linprog. ",... "Linear programming problems may be solved using @code{glpk}. ",... "Try @code{help glpk} for more info."]; case {"ode113", "ode15i", "ode15s", "ode23", "ode23s", "ode23t", "ode45", "odeget", "odeset"} txt = ["Octave provides lsode for solving differential equations. ",... "For more information try @code{help lsode}. ",... "Matlab-compatible ODE functions are provided by the odepkg package. ",... "See @url{http://octave.sourceforge.net/odepkg/}."]; otherwise if (ismember (fcn, missing_functions ())) txt = sprintf ("the '%s' function is not yet implemented in Octave", fcn); else is_matlab_function = false; txt = ""; endif endswitch if (is_matlab_function) txt = [txt, "\n\n@noindent\nPlease read ",... "@url{http://www.octave.org/missing.html} to learn how ",... "you can contribute missing functionality."]; txt = __makeinfo__ (txt); endif if (nargout == 0) warning ("Octave:missing-function", "%s", txt); endif endfunction --=-=-=--