From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hugo Heden Newsgroups: gmane.emacs.help Subject: Using emacs to view scrollback-buffer (from gnu-screen) Date: Sun, 22 Feb 2009 20:32:21 +0100 Message-ID: <2bdf908c0902221132n7ffe75bcv2c6dacb29995823c@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1235345582 16307 80.91.229.12 (22 Feb 2009 23:33:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Feb 2009 23:33:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 23 00:34:18 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LbNpx-0001hZ-M7 for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Feb 2009 00:34:17 +0100 Original-Received: from localhost ([127.0.0.1]:42103 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LbNod-00063d-85 for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Feb 2009 18:32:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LbK3s-0005eZ-Nt for help-gnu-emacs@gnu.org; Sun, 22 Feb 2009 14:32:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LbK3s-0005eN-Ad for help-gnu-emacs@gnu.org; Sun, 22 Feb 2009 14:32:24 -0500 Original-Received: from [199.232.76.173] (port=33438 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LbK3s-0005eK-4d for help-gnu-emacs@gnu.org; Sun, 22 Feb 2009 14:32:24 -0500 Original-Received: from fg-out-1718.google.com ([72.14.220.153]:35068) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LbK3r-0001Yl-MG for help-gnu-emacs@gnu.org; Sun, 22 Feb 2009 14:32:23 -0500 Original-Received: by fg-out-1718.google.com with SMTP id l27so1820644fgb.30 for ; Sun, 22 Feb 2009 11:32:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=hvA9ZWrU0xvKI6tB65xw5kYgzDQE3C6qagJT0m4zFu0=; b=PqhyZwDpfsOHTalM1NYio9eg2C+aKl7Rza0EOkWj3t/eCwKDBoY3DUOoGfOOK4l/jI mPO6RfU1PqQcl8G8JmMUm6jbQ8ZMy9vy7PvCD6RjFF7r/Q0Ko9n7tnOMTeTT4fKfaBpJ 6IWP4r6ZY2EESCnjX/lNvnLrIhyeAQlK50IRE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=ned7vRdEVHRBraypkB0pHluhaQ1gYwgfNaLd5hiFv2B/7N43wqMHrFSG2z/hYH2yxJ sn1gVBXjRdcpZyP7a8sqPV31+9N0xNq2lslZyqkjLrtZGH7GjHk3kLgHI98hXWh8X9Bp SJuRk3ymj+ehr+fK00Bo5GUyc2S4/XweVztC4= Original-Received: by 10.86.60.14 with SMTP id i14mr2459586fga.21.1235331141390; Sun, 22 Feb 2009 11:32:21 -0800 (PST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Sun, 22 Feb 2009 18:31:31 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:62270 Archived-At: 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 ". 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