bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-readline] docs of history_get()


From: Kevin Ryde
Subject: [Bug-readline] docs of history_get()
Date: Sun, 08 Oct 2017 16:54:39 +1100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

In the readline 7.0 info docs, I found the description of history_get()
a little unclear.  It read to me at first like the OFFSET parameter was
an offset relative to history_base, so 0 up to history length or
something.  If I'm not mistaken that's so of where_history(), set_pos()
etc, but history_get() is a full event number.  Maybe something like,
assuming its correct :),

 -- Function: HIST_ENTRY * history_get (int n)
     Return the history entry at absolute event designator N.  Entries
     are from oldest at 'history_base' (*note History Variables::) to
     newest at 'history_base + history_length - 1'.  If N is outside
     this range (or the history is empty) then return 'NULL'.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]