I asked the same question in <irc://irc.libera.chat/#guix> and someone recommended me setting PAGER to an empty value I did by executing the following command
,---- | export PAGER= `---- This solved the issue. Someone also recommended me setting the `PAGER' environmental variable in my Emacs configuration and shared his personal configuration which contained the following statements ,---- | (setenv "EDITOR" "emacsclient") | (setenv "GIT_EDITOR" "emacsclient") | (setenv "MANPATH" (getenv "MANPATH")) | (setenv "PAGER" "cat") | (setenv "PATH" (getenv "PATH")) | (setenv "PROMPT_COMMAND" "") | (setenv "SHELL" (getenv "SHELL")) | (setenv "TERM" (getenv "TERM")) `---- On Sun, Mar 5, 2023 at 2:36 PM Rodrigo Morales <[email protected]> wrote: > Table of Contents > _________________ > > 1. The problem > 2. The question > > 1 The problem > ============= > > Most of the times, I use shell-mode in Emacs and execute "guix" > commands. When I execute "guix search", the following warning is shown > > ,---- > | guix search emacs > `---- > > ,---- > | WARNING: terminal is not functional > | Press RETURN to continue > `---- > > I think the reason why this happens is that the command tries to use a > pager which is not possible in shell-mode. > > I need to press C-c C-c to exit the command which is time-consuming > and doesn't allow me to normally search a buffer as I would normally > do it in Emacs. > > I'd rather guix did not use a pager and instead show all the results > in raw text since that way I can scroll up and search within Emacs. > > > 2 The question > ============== > > How could I disable the pager in "guix search" and make it display the > output in raw text? >
