From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mauro Aranda Newsgroups: gmane.emacs.bugs Subject: bug#36459: 27.0.50; octave-mode ElDoc support bug Date: Thu, 4 Jul 2019 13:15:14 -0300 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000299969058cdd496c" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="108195"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36459@debbugs.gnu.org, Leo Liu To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 04 18:32:14 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hj4eb-000R6s-F9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Jul 2019 18:32:13 +0200 Original-Received: from localhost ([::1]:47508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hj4Ps-0001QW-5M for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Jul 2019 12:17:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45651) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hj4P2-0000PV-9e for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2019 12:16:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hj4Oz-0007g9-UW for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2019 12:16:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42974) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hj4Ow-0007dY-6J for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2019 12:16:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hj4Ov-00051M-WE for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2019 12:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Jul 2019 16:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36459 X-GNU-PR-Package: emacs Original-Received: via spool by 36459-submit@debbugs.gnu.org id=B36459.156225693517666 (code B ref 36459); Thu, 04 Jul 2019 16:16:01 +0000 Original-Received: (at 36459) by debbugs.gnu.org; 4 Jul 2019 16:15:35 +0000 Original-Received: from localhost ([127.0.0.1]:51795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hj4OU-0004aX-QT for submit@debbugs.gnu.org; Thu, 04 Jul 2019 12:15:35 -0400 Original-Received: from mail-lf1-f42.google.com ([209.85.167.42]:33497) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hj4OS-0004SB-QE for 36459@debbugs.gnu.org; Thu, 04 Jul 2019 12:15:33 -0400 Original-Received: by mail-lf1-f42.google.com with SMTP id y17so4604715lfe.0 for <36459@debbugs.gnu.org>; Thu, 04 Jul 2019 09:15:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ocw/GP6zQr/WLbQ7BTygoddlGuUwWEPRaVERk2njEqU=; b=Zfxfr9OwGwaDURzKI1QXzC3D9hBjAycRmha+vED/xEbcKqGQpWcVU5iPvhx6hoWEQr dcMETQyq8x+K/sX8LoMwh8dgFU4ll5Uq8wf4U3NaflNcKrbTEyRQ3wmNUH5HICYH98lU HuEmT3uUwQsmiPufRyK1glrprgGCLJ7EapYB6oohL6SZw10q/Dop2IuWgYUXNzEonm4x zWYagpeziommNx3rI4SSkoelnAjYAjaMuzW2ZEdkdsw4beqA6JvnlYYAib5SQGYUfkcW AA0phy5NgaPPJoY9dpSZCI4N6jyYR+ZOtx80C6ZMgIKy7IQ47DRo2GHaYLDQEeRuw39M dc7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ocw/GP6zQr/WLbQ7BTygoddlGuUwWEPRaVERk2njEqU=; b=HQPo9cn2FYELyLRQLmaJeW9YP+K29JYwMMT1Cs+htfQHSWPVRCuMcwn7LURQ1OtukZ viJPK/QnaU3kQV8Rz+FE9GtsxiZ+CRoEHARR+Tn2FLgeSM6RLCcJ+Fo7CHTbPORpzuxU jkisryV8OXAF2u43wOohaR+MpZVW4COy700Hx6jlrM0CrYJ3N/MEVbBT+BNEwD/wloaG yQhU+7IGz8tI3hbcCQ+BnQzJzWZzFOpfwxg0Ofs7F1Hxe1Wd3bkAdxOWH/jNo0rPNtUL yULaW3f0FQjLWEDHhzkOEMyp9BpfSeh9uOTeXqtAG/0EnzRf1t2yr+AbOP83+4bOTJxS wZrw== X-Gm-Message-State: APjAAAUQF5HJruJSHLptyN5fUiTQuU6OHs8361okcGQ9Bh7FXJr+d3+i oOYSMq57epyHjwnFudAU3Aua6A5SdJm0F7w1/mw= X-Google-Smtp-Source: APXvYqw05RxQmvAUekEtPYj0+D/aBPLFKfN4XEB28N7sAwC2fVt8VVM/B6EV76KDVDt9bCMsqvhMqoBMMvNiJgCw+Ik= X-Received: by 2002:a19:c7ca:: with SMTP id x193mr7141988lff.151.1562256926676; Thu, 04 Jul 2019 09:15:26 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:162069 Archived-At: --000000000000299969058cdd496c Content-Type: text/plain; charset="UTF-8" I forgot to say that my version of GNU Octave is 4.0.0 The problem is with the regexp used in octave-eldoc-function-signatures. It matches the signatures of the function, that are output with a call to the GNU Octave function print_usage. It also matches an old-style of outputting these function signatures, which was: usage: bar = foo () This output was also generated by calling the GNU Octave function usage, like this: usage ("bar = foo ()") But usage has been deprecated in GNU Octave, I think in major version 4. It's still present in my version, but I don't know about latest releases (there's a recent GNU Octave 5.1.0) I don't know why the author chose print_usage over the GNU Octave function help, but when print_usage fails, due to being called with a nonexistent function in his argument, like this: print_usage ('A') An error message like this one is output: error: print_usage: 'A' not found The regexp used is wrongly matching this line and therefore octave-eldoc-function-signatures is not returning nil, as it should in this case. Best regards, Mauro. --000000000000299969058cdd496c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I forgot to say that my version of GNU Oc= tave is 4.0.0

The problem is with the regexp used in
octave-eldoc= -function-signatures.=C2=A0 It matches the signatures of the
function, t= hat are output with a call to the GNU Octave function
print_usage.=C2=A0= It also matches an old-style of outputting these function
signatures, w= hich was:
usage: =C2=A0bar =3D foo ()

This output was also generated by calling the GNU Octave= function usage,
like this:
usage ("bar =3D foo ()")
But usage has been deprecated in GNU Octave, I think in major version 4.<= /div>
It's still present in my version, but I don't know about = latest releases
(there's a recent GNU Octave 5.1.0)
=
I don't know why the author chose print_usage over the GNU Octavefunction help, but when print_usage fails, due to being called with a
= nonexistent function in his argument, like this:
print_usage ('A'= ;)
An error message like this one is output:
error: print_usage: '= ;A' not found

The regexp used is wrongly matching this line and = therefore
octave-eldoc-function-signatures is not returning nil, as it s= hould in
this case.

Best regards,
Mauro.

--000000000000299969058cdd496c--