From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Dan Elliott" Newsgroups: gmane.emacs.help Subject: Re: elisp: set-register Date: Tue, 16 Nov 2004 12:07:42 -0600 Organization: Raytheon Company Message-ID: <9lrmd.6$mg1.5@dfw-service2.ext.ray.com> References: <2vsd2fF2p4vs9U1@uni-berlin.de> <2vsqi7F2puu99U1@uni-berlin.de> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1100628696 3576 80.91.229.6 (16 Nov 2004 18:11:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Nov 2004 18:11:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 16 19:11:19 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 1CU7nR-0006Ax-00 for ; Tue, 16 Nov 2004 19:11:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CU7wC-00065D-RR for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Nov 2004 13:20:21 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!nntp-server.caltech.edu!attla2!attla1!ip.att.net!bos-service1.raytheon.com!dfw-service2.ext.ray.com.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Original-NNTP-Posting-Host: 147.18.29.32 Original-X-Complaints-To: news@ext.ray.com Original-X-Trace: dfw-service2.ext.ray.com 1100628421 147.18.29.32 (Tue, 16 Nov 2004 12:07:01 CST) Original-NNTP-Posting-Date: Tue, 16 Nov 2004 12:07:01 CST Original-Xref: shelby.stanford.edu gnu.emacs.help:126661 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:22057 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22057 This did it, thank you. "Kevin Rodgers" wrote in message news:2vsqi7F2puu99U1@uni-berlin.de... > Dan Elliott wrote: > > "Kevin Rodgers" wrote in message > > news:2vsd2fF2p4vs9U1@uni-berlin.de... > >>,----[ C-h k C-x r w ] > >>| C-x r w runs the command window-configuration-to-register > >>| which is an interactive compiled Lisp function in `register'. > >>| (window-configuration-to-register REGISTER &optional ARG) > >>| > >>| Store the window configuration of the selected frame in register > REGISTER. > >>| Use C-x r j to restore the configuration. > >>| Argument is a character, naming the register. > >>`---- > > > > I apologize for being so ignorant, but how does one read the line: > > (window-configuration-to-register REGISTER &optional ARG)? > > It means the function takes 1 required argument (REGISTER) and 1 > optional argument (ARG). > > > This is quite confusing to me to have both REGISTER and ARG. Does > ARG stand > > for an input the method and REGISTER is the name of that input as used in > > the function? > > Indeed, the doc string does not explain ARG, nor do the Emacs and Emacs > Lisp manuals. But if you follow the link to the source, you can see > that it is bound to the raw prefix argument when called interactively > and then ignored. > > So you probably just want: (window-configuration-to-register ?p) > > -- > Kevin Rodgers