From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mike Newsgroups: gmane.emacs.help Subject: Re: capture buffer to a logfile? Date: Sun, 14 Nov 2004 17:16:14 -0000 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <10pf4mujih3a590@corp.supernews.com> References: <10p9sfqllhlkoee@corp.supernews.com> <2vki39F2mkmlpU1@uni-berlin.de> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1100452889 19870 80.91.229.6 (14 Nov 2004 17:21:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 14 Nov 2004 17:21:29 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 14 18:21:21 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CTO41-0003m3-00 for ; Sun, 14 Nov 2004 18:21:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CTOCg-0004WB-5D for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Nov 2004 12:30:18 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!sn-xit-02!sn-xit-12!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: slrn/0.9.7.4 (Linux) Original-X-Complaints-To: abuse@supernews.com Original-Lines: 18 Original-Xref: shelby.stanford.edu gnu.emacs.help:126575 Original-To: help-gnu-emacs@gnu.org 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: main.gmane.org gmane.emacs.help:21970 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21970 In article <2vki39F2mkmlpU1@uni-berlin.de>, Kevin Rodgers wrote: > Mike wrote: > > I'm trying to convert some people to emacs and one of the features > > they currently use is 'screen captures' to powerpoint. These screen > > captures are 99% text. What I'm thinking of is a small bit of code to > > capture the current buffer from the first line on the screen > > (displayed) to the last line on the screen (displayed, so it's not the > > whole buffer, just what's visible), then copy that hunk to another > > buffer that is their predefined (in .emacs?) log file. First put a > > timestamp, then the copied lines, then a few blank lines, then save > > and let the user continue editing. > > > > Anyone have this bit of code? > > (copy-region-as-kill (window-start) (window-end)) > That's what I needed. Thanks.