bugGNU Octave - Bugs: bug #51718, pager is not working

 
 

bug #51718: pager is not working

Submitted by:  Dmitri A. Sergatskov <dasergatskov>
Submitted on:  Thu 10 Aug 2017 04:14:08 AM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Thu 10 Aug 2017 04:13:08 PM UTC, comment #9:

I unset my PAGER environment variable and have verified that Octave now uses the default 'less'. Marking as fixed and closing report.

Rik <rik5>
Project Administrator
Thu 10 Aug 2017 03:58:39 PM UTC, comment #8:

Oops. Fixed here:

http://hg.savannah.gnu.org/hgweb/octave/rev/8f2d51b6235f

Thanks.

John W. Eaton <jwe>
Project Administrator
Thu 10 Aug 2017 03:06:19 PM UTC, comment #7:

Aren't the functions in defaults.h the intended replacements for the macros that used to be in defaults.h?

octave::config::default_pager() instead of octave::build_env::DEFAULT_PAGER? Yeah, they're identical, but pager.cc already had a '#include "defaults.h"', which is now unused.

Mike Miller <mtmiller>
Project Administrator
Thu 10 Aug 2017 02:03:13 PM UTC, comment #6:

I pushed the following changeset:

http://hg.savannah.gnu.org/hgweb/octave/rev/3c5a49805dbd

John W. Eaton <jwe>
Project Administrator
Thu 10 Aug 2017 01:47:32 PM UTC, comment #5:

I think this is a mistake. In previous versions, there was a default pager (normally "less") if the shell PAGER variable was not set.

John W. Eaton <jwe>
Project Administrator
Thu 10 Aug 2017 05:23:57 AM UTC, comment #4:

Maybe ask about it on the octave-maintainers list. There may be a reason why Octave doesn't supply a default, such as 'less' or 'more', when the PAGER environment variable isn't set.

Rik <rik5>
Project Administrator
Thu 10 Aug 2017 05:02:44 AM UTC, comment #3:

In the shell PAGER is not set and as far as i know it is usually not set in Fedora.

In octave 4.2.1 (and reasonably recent dev version)
PAGER set to "less"

If this is an intended change it is fine with me.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Thu 10 Aug 2017 04:47:25 AM UTC, comment #2:

At the shell, what is the value of the PAGER environment variable? If you haven't set anything up then no PAGER will be used.

As another check, start Octave and just type

It will return the name of the PAGER that Octave has configured. My guess is that it is blank for your setup.

Rik <rik5>
Project Administrator
Thu 10 Aug 2017 04:17:39 AM UTC, comment #1:

I can fix it if I do

Dmitri.

Dmitri A. Sergatskov <dasergatskov>
Thu 10 Aug 2017 04:14:08 AM UTC, original submission:

In cb8251337689 tip @ pager ("more") is not working.
"more on" does not make any effect.
E.g. "help help" or a=(1:30)' dumps entire output.

Dmitri.

Dmitri A. Sergatskov <dasergatskov>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by dasergatskov (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 10 Aug 2017 04:13:08 PM UTCrik5StatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Thu 10 Aug 2017 02:03:13 PM UTCjweStatusNeed Info=>Ready For Test
    Thu 10 Aug 2017 04:47:25 AM UTCrik5StatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1