all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Hugo Heden <hugoheden@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Using emacs to view scrollback-buffer (from gnu-screen)
Date: Sun, 22 Feb 2009 20:32:21 +0100	[thread overview]
Message-ID: <2bdf908c0902221132n7ffe75bcv2c6dacb29995823c@mail.gmail.com> (raw)

Good day all,

I am trying to write a little script that in certain situations lets
emacs show a file containing a scrollback-buffer. I am using emacs
with multi-tty support ("emacs --version" yields "GNU Emacs
23.0.60.1"). There's a daemon running ("emacs --daemon"), so I thought
it might be quick enough to view the scrollback buffer with
"emacsclient -t <file>". I am experimenting with gnu-screen,
http://www.gnu.org/software/screen/ , and  would like to use
"emacsclient -t" to view, and get keyboard access to, the scrollback
buffer (with emacs-style cursor navigation, copy/paste etc).

The buffer is written to a file, /tmp/screenscrollbackbuffer. I'd like
to do the following:

(A) make emacs show the file in read-only mode.

(B) have the cursor automatically moved to the end of the file at start-up.

(C) possibly have emacs starting with auto-revert-tail-mode or
auto-revert-mode enabled as well..

How do I do this? Can I configure this stuff on the command line? How?
Or should I write an .emacs-style configuration file that this scripts
somehow passes to emacsclient?




Best regards

Hugo Heden




             reply	other threads:[~2009-02-22 19:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-22 19:32 Hugo Heden [this message]
2009-02-24  4:48 ` Using emacs to view scrollback-buffer (from gnu-screen) Kevin Rodgers
2009-03-06 22:12   ` Hugo Heden

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2bdf908c0902221132n7ffe75bcv2c6dacb29995823c@mail.gmail.com \
    --to=hugoheden@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.