gdb/ChangeLog:
* utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
in the environment.
+2015-10-29 Eli Zaretskii <eliz@gnu.org>
+
+ * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
+ in the environment.
+
2015-10-29 Pedro Alves <palves@redhat.com>
* gnu-v2-abi.c (gnuv2_is_destructor_name)
Only try to use tgetnum function if rl_get_screen_size
did not return a useful value. */
if (((rows <= 0) && (tgetnum ("li") < 0))
- /* Also disable paging if inside EMACS. */
- || getenv ("EMACS"))
+ /* Also disable paging if inside Emacs. $EMACS was used
+ before Emacs v25.1, $INSIDE_EMACS is used since then. */
+ || getenv ("EMACS") || getenv ("INSIDE_EMACS"))
{
/* The number of lines per page is not mentioned in the terminal
description or EMACS evironment variable is set. This probably