Re: libedit/makelist, editrc manpage, document default key bindings

[email protected] (Christos Zoulas)
Newsgroups gmane.os.netbsd.devel.general
Organization Astron Software
Message-ID <[email protected]>
On Mar 8,  4:43pm, [email protected] ("Jeremy C. Reed") wrote:
-- Subject: libedit/makelist, editrc manpage, document default key bindings

| (I cc'd two developers as they contributed some of this.)
| 
| I want to close my old PR #14578 by documenting the default keybindings. 
| When I filed this PR a few years ago, I was curious on what certain keys 
| did.
| 
| I have several questions:
| 
| 1) What calls "makelist -m"?

Nothing. It is manually ran and added to editrc.
| 
| 2) Can the "makelist -m" be extended to show the default key combinations? 
| (The info is in two different source files, maps.c and emacs.c, that could 
| be parsed.)

Sure.

| 3) sh man page says it uses editline library and the editrc manpage 
| mentions built-in commands, like "bind" -- but sh says "bind: not found".
| What am I missing in the docs?

ESC-X before the bind command.
| 
| 4) Why does emacs.c document ^U for both em_universal_argument and 
| em_kill_line?

If it is preceded by a count, it becomes universal arg IIRC.

| 5) Are there keys associated for copy_prev_word, toggle_overwrite, 
| inc_search_next, and/or inc_search_prev?

I don't think so.

| 6) The following is my patch, but I'd prefer to just put this info in the 
| earlier section, but that is generated by "makelist -m" (.\" Section 
| automatically generated with makelist). Most of the following is same as 
| already listed. But adds the keys themselves.

We should fix makelist instead.

christos
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.