mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
Fix check for rl_get_keymap
This lets Guile build on OS X (tested on 10.14) with the system-provided libreadline. * acinclude.m4 (GUILE_READLINE): Check for rl_get_keymap_name instead of rl_get_keymap. The system provided libreadline is an alias to libedit, which has _keymap but not _keymap_name, and Guile uses both. * guile-readline/readline.c: Adjust the include guard.
This commit is contained in:
parent
321fc5b6b8
commit
f2781c9604
2 changed files with 9 additions and 7 deletions
|
@ -420,7 +420,7 @@ completion_function (char *text, int continuep)
|
|||
}
|
||||
}
|
||||
|
||||
#if HAVE_RL_GET_KEYMAP
|
||||
#if HAVE_RL_GET_KEYMAP_NAME
|
||||
/*Bouncing parenthesis (reimplemented by GH, 11/23/98, since readline is strict gpl)*/
|
||||
|
||||
static int match_paren (int x, int k);
|
||||
|
@ -515,7 +515,7 @@ match_paren (int x, int k)
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
#endif /* HAVE_RL_GET_KEYMAP */
|
||||
#endif /* HAVE_RL_GET_KEYMAP_NAME */
|
||||
|
||||
#endif /* HAVE_RL_GETC_FUNCTION */
|
||||
|
||||
|
@ -551,7 +551,7 @@ scm_init_readline ()
|
|||
rl_variable_bind ("enable-bracketed-paste",
|
||||
SCM_READLINE_BRACKETED_PASTE ? "on" : "off");
|
||||
|
||||
#if HAVE_RL_GET_KEYMAP
|
||||
#if HAVE_RL_GET_KEYMAP_NAME
|
||||
init_bouncing_parens();
|
||||
#endif
|
||||
scm_add_feature ("readline");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue