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

Previous Next

Package: emacs;

Reported by: Francesco Potortì <pot <at> gnu.org>

Date: Tue, 28 Jul 2015 13:41:02 UTC

Severity: minor

Merged with 21162, 21163

Found in version 24.5

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21150 in the body.
You can then email your comments to 21150 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#21150; Package emacs. (Tue, 28 Jul 2015 13:41:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Francesco Potortì <pot <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 28 Jul 2015 13:41:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Francesco Potortì <pot <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org
Cc: Kurt Hornik <Kurt.Hornik <at> wu-wien.ac.at>,
 "John W. Eaton" <jwe <at> degreesofgray.org>, Mike Miller <mtmiller <at> octave.org>
Subject: 24.5; octave-inf mode does not need --no-line-editing
Date: Tue, 28 Jul 2015 15:40:01 +0200
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 with
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 with
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 are
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.

-- 
Francesco Potortì (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
From: Kurt Hornik <Kurt.Hornik <at> wu.ac.at>
Subject: Fwd: Re: changing terminal size
In-reply-to: <E1Z9xck-0002o2-Br <at> tucano.isti.cnr.it>
To: Francesco Potortì <Potorti <at> isti.cnr.it>
Cc: Kurt Hornik <Kurt.Hornik <at> wu-wien.ac.at>, Mike Miller <mtmiller <at> octave.org>,
 "John W. Eaton" <jwe <at> degreesofgray.org>
Reply-to: Kurt.Hornik <at> wu.ac.at

>>>>> Francesco Potortì 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 causes
> 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-editing
> from the list of options in octave-inf.el and everything seems to work
> well.

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

Francesco,

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

Best
- -k



> -- 
> Francesco Potortì (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: Mon, 29 Jun 2015 14:23:27 -0400
> From: Mike Miller <mtmiller <at> octave.org>
> Subject: Re: changing terminal size
> In-reply-to: <E1Z8BZ2-0002a8-Eu <at> tucano.isti.cnr.it>
> To: Francesco Potortì <Potorti <at> isti.cnr.it>
> Cc: Octave users list <help <at> octave.org>, "John W. Eaton" <jwe <at> degreesofgray.org>

> On Thu, Jun 25, 2015 at 20:07:52 +0200, Francesco Potortì wrote:
>> Probably the clean solution would be to not using readline for getting
>> terminal width and height, if possible.

> We could add a fallback to get the terminal size directly if readline
> 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-editing
>> needed at all?  I just tried modifying octave-inf.el to call Octave
>> 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 maintainers of
> the Octave mode script is the best way forward.

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

> - -- 
> mike
> ------- End of forwarded message -------
------- End of forwarded message -------





Merged 21150 21162 21163. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 31 Jul 2015 15:32:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21150; Package emacs. (Wed, 26 May 2021 22:59:02 GMT) Full text and rfc822 format available.

Message #10 received at 21150 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Francesco Potortì <pot <at> gnu.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 21162 <at> debbugs.gnu.org,
 "John W. Eaton" <jwe <at> degreesofgray.org>, 21150 <at> debbugs.gnu.org,
 Kurt.Hornik <at> wu-wien.ac.at, Mike Miller <mtmiller <at> octave.org>
Subject: Re: bug#21150: 24.5; octave-inf mode does not need --no-line-editing
Date: Thu, 27 May 2021 00:58:35 +0200
Francesco Potortì <pot <at> gnu.org> writes:

> -(defcustom inferior-octave-startup-args '("-i" "--no-line-editing")
> +(defcustom inferior-octave-startup-args '("-i")

[...]

Francesco Potortì <pot <at> gnu.org> writes:

> As a conclusion of my observations above:
>
> A. if --no-line-editing was introduce because of the Emacs inferior
>    Octave mode
>
> B. if it is reasonable to assume that --no-line-editing is not used by
>    any other application
>
> C. if there is a way to leave readline enabled, but disable tab expansion
>
> then one can change the --no-line-editing behaviour to just disable tab
> expansion.
>
> Or, if only C is certainly true, one can deprecate and undocument
> --no-line-editing and add a separate option --disable-tab-expansion for
> use in Emacs inferior Octave mode.

I'm going through old bug reports, and after skimming this one, I'm not
quite sure what the conclusions are.  Should the --no-line-editing value
be removed from the options?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21150; Package emacs. (Tue, 08 Jun 2021 13:10:01 GMT) Full text and rfc822 format available.

Message #13 received at 21150 <at> debbugs.gnu.org (full text, mbox):

From: Francesco Potortì <pot <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 21162 <at> debbugs.gnu.org,
 "John W. Eaton" <jwe <at> degreesofgray.org>, 21150 <at> debbugs.gnu.org,
 Kurt.Hornik <at> wu-wien.ac.at, Mike Miller <mtmiller <at> octave.org>
Subject: Re: bug#21150: 24.5; octave-inf mode does not need --no-line-editing
Date: Tue, 08 Jun 2021 15:09:29 +0200
>
>Francesco Potortì <pot <at> gnu.org> writes:
>
>> -(defcustom inferior-octave-startup-args '("-i" "--no-line-editing")
>> +(defcustom inferior-octave-startup-args '("-i")
>
>[...]
>
>Francesco Potortì <pot <at> gnu.org> writes:
>
>> As a conclusion of my observations above:
>>
>> A. if --no-line-editing was introduce because of the Emacs inferior
>>    Octave mode
>>
>> B. if it is reasonable to assume that --no-line-editing is not used by
>>    any other application
>>
>> C. if there is a way to leave readline enabled, but disable tab expansion
>>
>> then one can change the --no-line-editing behaviour to just disable tab
>> expansion.
>>
>> Or, if only C is certainly true, one can deprecate and undocument
>> --no-line-editing and add a separate option --disable-tab-expansion for
>> use in Emacs inferior Octave mode.
>
>I'm going through old bug reports, and after skimming this one, I'm not
>quite sure what the conclusions are.  Should the --no-line-editing value
>be removed from the options?

No.  Not unless Octave adds a --disable--tab--expansion as I suggest in
the second route that I described.

The current options provide minimal damage with current Octave's
behaviour.  To do better, Octave should follow one of the two routes I
illustrated above.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21150; Package emacs. (Wed, 09 Jun 2021 09:36:02 GMT) Full text and rfc822 format available.

Message #16 received at 21150 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Francesco Potortì <pot <at> gnu.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 21162 <at> debbugs.gnu.org,
 "John W. Eaton" <jwe <at> degreesofgray.org>, 21150 <at> debbugs.gnu.org,
 Kurt.Hornik <at> wu-wien.ac.at, Mike Miller <mtmiller <at> octave.org>
Subject: Re: bug#21150: 24.5; octave-inf mode does not need --no-line-editing
Date: Wed, 09 Jun 2021 11:35:44 +0200
Francesco Potortì <pot <at> gnu.org> writes:

> No.  Not unless Octave adds a --disable--tab--expansion as I suggest in
> the second route that I described.
>
> The current options provide minimal damage with current Octave's
> behaviour.  To do better, Octave should follow one of the two routes I
> illustrated above.

Is there anything more to be done here on the Emacs side of things, then?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 21150 <at> debbugs.gnu.org and Francesco Potortì <pot <at> gnu.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 09 Jun 2021 10:20:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 07 Jul 2021 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 287 days ago.

Previous Next


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