GNU bug report logs - #21150
24.5; octave-inf mode does not need --no-line-editing

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Francesco Potortì <pot@HIDDEN>; merged with #21162, #21163; dated Tue, 28 Jul 2015 13:41:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 21150 21162 21163. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Jul 2015 13:40:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 28 09:40:27 2015
Received: from localhost ([127.0.0.1]:60829 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZK57K-0005Hs-9L
	for submit <at> debbugs.gnu.org; Tue, 28 Jul 2015 09:40:27 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60628)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <pot@HIDDEN>) id 1ZK57E-0005Hg-Gx
 for submit <at> debbugs.gnu.org; Tue, 28 Jul 2015 09:40:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <pot@HIDDEN>) id 1ZK579-00078m-DM
 for submit <at> debbugs.gnu.org; Tue, 28 Jul 2015 09:40:20 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:39000)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <pot@HIDDEN>)
 id 1ZK579-00078i-As
 for submit <at> debbugs.gnu.org; Tue, 28 Jul 2015 09:40:15 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:45875)
 by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <pot@HIDDEN>)
 id 1ZK574-0002NO-OM
 for bug-gnu-emacs@HIDDEN; Tue, 28 Jul 2015 09:40:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <pot@HIDDEN>) id 1ZK56y-0006vM-I7
 for bug-gnu-emacs@HIDDEN; Tue, 28 Jul 2015 09:40:10 -0400
Received: from blade4.isti.cnr.it ([194.119.192.20]:14441)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <pot@HIDDEN>)
 id 1ZK56y-0006ro-87
 for bug-gnu-emacs@HIDDEN; Tue, 28 Jul 2015 09:40:04 -0400
Received: from tucano.isti.cnr.it ([146.48.81.102])
 by mx.isti.cnr.it (PMDF V6.5-x6 #32097)
 with ESMTPSA id <01POVP0NLZG89QZCZ2@HIDDEN> for bug-gnu-emacs@HIDDEN; 
 Tue, 28 Jul 2015 15:40:01 +0200 (MEST)
Received: from pot by tucano.isti.cnr.it with local (Exim 4.86_RC5)
 (envelope-from <pot@HIDDEN>)	id 1ZK56v-0003q2-LX; Tue,
 28 Jul 2015 15:40:01 +0200
Date: Tue, 28 Jul 2015 15:40:01 +0200
From: Francesco =?utf-8?Q?Potort=C3=AC?= <pot@HIDDEN>
Subject: 24.5; octave-inf mode does not need --no-line-editing
To: bug-gnu-emacs@HIDDEN
Message-id: <E1ZK56v-0003q2-LX@HIDDEN>
Organization: 
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-transfer-encoding: QUOTED-PRINTABLE
X-INSM-ip-source: 146.48.81.102 Auth Done
X-fingerprint: 4B02 6187 5C03 D6B1 2E31  7666 09DF 2DC9 BE21 6115
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -6.4 (------)
X-Debbugs-Envelope-To: submit
Cc: Kurt Hornik <Kurt.Hornik@HIDDEN>,
 "John W. Eaton" <jwe@HIDDEN>, Mike Miller <mtmiller@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.4 (------)

In Octave inferior mode, defined in octave-inf.el, the Octave process=
 is
called with the --no-line-editing option.  This option should be
deleted, because apparently it is useless and it causes problems.

The problem is that Octave disables everything related to readline wi=
th
that option, which has the side effects of making Octave incapable of
getting the terminal line width and of using the Ftlk graphics engine=
.

These problems could in principle be corrected inside Octave, but in
fact the --no-line-editing option seems to be not necessary (no more?=
),
as I have experienced in several weeks of using Octave under Emacs wi=
th
a modified octave-inf.el.  Note that it is unlikely that other users
have had a different experience, as I am one of the few users which a=
re
both proficient in Emacs and Octave and uses routinely Octave in an
Emacs buffer.

As you can read in the following email, all the other potentially
involved developers have nothing to add to this description of facts.

In short, please remove the "--no-line-editing" option from the list =
of
options in octave-inf.el.

--=20
Francesco Potort=C3=AC (ricercatore)        Voice:  +39.050.621.3058
ISTI - Area della ricerca CNR          Mobile: +39.348.8283.107
via G. Moruzzi 1, I-56124 Pisa         Skype:  wnlabisti
(entrance 20, 1st floor, room C71)     Web:    http://fly.isti.cnr.it


------- Start of forwarded message -------
Date: Thu, 02 Jul 2015 19:33:16 +0200
=46rom: Kurt Hornik <Kurt.Hornik@HIDDEN>
Subject: Fwd: Re: changing terminal size
In-reply-to: <E1Z9xck-0002o2-Br@HIDDEN>
To: Francesco Potort=C3=AC <Potorti@HIDDEN>
Cc: Kurt Hornik <Kurt.Hornik@HIDDEN>, Mike Miller <mtmiller@oc=
tave.org>,
 "John W. Eaton" <jwe@HIDDEN>
Reply-to: Kurt.Hornik@HIDDEN

>>>>> Francesco Potort=C3=AC writes:

> Kurt,
> I am writing to you about the --no-line-editing option that is used=
 when
> calling octave in inferior octave mode under Emacs.  That option ca=
uses
> at least to nasty side effects.  As you can read in the Debian bug
> report linked at the end of the following email, it disables Octave=
's
> modern graphics engine.  Moreover, it forces Octave into 80-column =
mode,
> sa discussed in the following email.

> Both these problems could be in prnciple be corrected in Octave,
> especially the second one.  But I just tried to remove --no-line-ed=
iting
> from the list of options in octave-inf.el and everything seems to w=
ork
> well.

> So, why is --no-line-editing there at all?  Can it be simply delete=
d
> from the code of octave-inf.el?

Francesco,

Sorry ... I really don't know any more.  It must be more than 20 year=
s
ago that I wrote the code ...

Best
- -k



> --=20
> Francesco Potort=C3=AC (ricercatore)        Voice:  +39.050.621.305=
8
> ISTI - Area della ricerca CNR          Mobile: +39.348.8283.107
> via G. Moruzzi 1, I-56124 Pisa         Skype:  wnlabisti
> (entrance 20, 1st floor, room C71)     Web:    http://fly.isti.cnr.=
it



> ------- Start of forwarded message -------
> Date: Mon, 29 Jun 2015 14:23:27 -0400
> From: Mike Miller <mtmiller@HIDDEN>
> Subject: Re: changing terminal size
> In-reply-to: <E1Z8BZ2-0002a8-Eu@HIDDEN>
> To: Francesco Potort=C3=AC <Potorti@HIDDEN>
> Cc: Octave users list <help@HIDDEN>, "John W. Eaton" <jwe@degre=
esofgray.org>

> On Thu, Jun 25, 2015 at 20:07:52 +0200, Francesco Potort=C3=AC wrot=
e:
>> Probably the clean solution would be to not using readline for get=
ting
>> terminal width and height, if possible.

> We could add a fallback to get the terminal size directly if readli=
ne
> is disabled, but IMHO we should also definitely add support for
> overriding the terminal size with COLUMNS and LINES regardless.

>> However, there is fundamental question: why ever is --no-line-edit=
ing
>> needed at all?  I just tried modifying octave-inf.el to call Octav=
e
>> without it, and apparently all is well, the columns behave as they
>> should and all the resta s well...

> I don't know, that's a question for the Emacs devs who work on the
> Octave mode. You might have better luck asking on an emacs list. I
> suspect it's because Emacs wants to be in charge of line editing,
> history, completion, etc, and maybe there is some interference or
> other reason to want to disable readline in the target program.

> We talked about all of this a while ago on Debian #675509 [1] where
> you proposed that Octave mode should not be based on comint mode. I
> have no opinion or insight into what any of that means, but it is
> still based on comint mode today and does still set the
> - --no-line-editing option. IMHO taking this up with the maintainer=
s of
> the Octave mode script is the best way forward.

> [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D675509

> - --=20
> mike
> ------- End of forwarded message -------
------- End of forwarded message -------





Acknowledgement sent to Francesco Potortì <pot@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#21150; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Jul 2015 15:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.