all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* What happens with stdin from emacsclient?
@ 2007-07-14  9:43 David Kastrup
  0 siblings, 0 replies; only message in thread
From: David Kastrup @ 2007-07-14  9:43 UTC (permalink / raw)
  To: emacs-devel


The reason that I ask is that in shell-mode, I often have programs
that I would want to run using a pager: I am interested in the top
rather than the bottom of their output, and often I don't want to have
them run to their end.

Setting the environment variable PAGER to cat is for that reason not
really satisfying.  On the other hand, I don't want to page
everything, and the normal pagers (like less) suck in comint mode,
badly.

So setting PAGER to emacsclient -eval comint-pager would be an option,
except that one needs to get at the stdin that is passed into
emacsclient.  Another possibility would be something like
PAGER=cat <(echo Magic Pager String) -
and have comint-mode figure out things from there.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-14  9:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-14  9:43 What happens with stdin from emacsclient? David Kastrup

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.