From owner-freebsd-questions Fri Jan 30 18:28:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA24408 for questions-outgoing; Fri, 30 Jan 1998 18:28:42 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from phoenix.volant.org (phoenix.volant.org [205.179.79.193]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id SAA24399 for ; Fri, 30 Jan 1998 18:28:30 -0800 (PST) (envelope-from patl@phoenix.volant.org) From: patl@phoenix.volant.org Received: from asimov.phoenix.volant.org [205.179.79.65] by phoenix.volant.org with smtp (Exim 1.62 #1) id 0xySfV-0006To-00; Fri, 30 Jan 1998 18:28:29 -0800 Received: from localhost by asimov.phoenix.volant.org (SMI-8.6/SMI-SVR4) id SAA05751; Fri, 30 Jan 1998 18:26:37 -0800 Date: Fri, 30 Jan 1998 18:26:37 -0800 (PST) Reply-To: patl@phoenix.volant.org Subject: Re: [X]emacs and apsfilter To: Doug White cc: Burton Sampley , questions@FreeBSD.ORG In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe questions" > > Does anybody know what code or key sequence is needed to get either > > Xemacs or Emacs to force end of page? > > > > Here's the situation: > > > > I need to turn in a hardcopy version of my C++ code for my class. My > > professor requires all functions must be printed on a separate page. I > > like the headers with the file name and page numbers obtained by ps > > printing from either version of Emacs, however I can't figure out how to > > force the end of page at the end of a function. My only other > > alternative is to edit the code in StarOffice. Sounds like you want to insert FormFeed characters. That's a ^F Control-F). To insert a literal character in emacs, first type ^Q (Control Q). The C++ compiler should ignore the FormFeeds, so you don't need to worry about wrapping them in comments. In fact, they may need to appear at the beginning of the line, or on a line by themselves. (This depends a lot on the printer filters and/or the printer itself. > Your CS teacher must be perverted to want to waste that kind of paper. :-) > > Try inserting a Control-F. I think you can do this by doing C-p C-f (C-p > to do a literal). No, Ctrl-F is an SO character, and Ctrl-P is normally bound to previous-line. -Pat