* capture buffer to a logfile?
@ 2004-11-12 17:25 Mike
2004-11-12 19:43 ` Kevin Rodgers
0 siblings, 1 reply; 3+ messages in thread
From: Mike @ 2004-11-12 17:25 UTC (permalink / raw)
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?
Mike
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: capture buffer to a logfile?
2004-11-12 17:25 capture buffer to a logfile? Mike
@ 2004-11-12 19:43 ` Kevin Rodgers
2004-11-14 17:16 ` Mike
0 siblings, 1 reply; 3+ messages in thread
From: Kevin Rodgers @ 2004-11-12 19:43 UTC (permalink / raw)
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))
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: capture buffer to a logfile?
2004-11-12 19:43 ` Kevin Rodgers
@ 2004-11-14 17:16 ` Mike
0 siblings, 0 replies; 3+ messages in thread
From: Mike @ 2004-11-14 17:16 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-11-14 17:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-12 17:25 capture buffer to a logfile? Mike
2004-11-12 19:43 ` Kevin Rodgers
2004-11-14 17:16 ` Mike
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.