From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fred Picher Newsgroups: gmane.emacs.help Subject: Re: global-set-key with parameter Date: Thu, 9 Oct 2008 06:49:30 -0700 (PDT) Message-ID: <38651.52727.qm@web59705.mail.ac4.yahoo.com> References: Reply-To: frederificc@yahoo.ca NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1223560253 31513 80.91.229.12 (9 Oct 2008 13:50:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Oct 2008 13:50:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 09 15:51:50 2008 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 1Knvuu-0001nn-Tn for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Oct 2008 15:51:01 +0200 Original-Received: from localhost ([127.0.0.1]:43010 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Knvtr-0003uB-32 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Oct 2008 09:49:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KnvtX-0003tY-Cu for help-gnu-emacs@gnu.org; Thu, 09 Oct 2008 09:49:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KnvtU-0003rs-RE for help-gnu-emacs@gnu.org; Thu, 09 Oct 2008 09:49:34 -0400 Original-Received: from [199.232.76.173] (port=60841 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnvtU-0003rh-KA for help-gnu-emacs@gnu.org; Thu, 09 Oct 2008 09:49:32 -0400 Original-Received: from n2a.bullet.mail.ac4.yahoo.com ([76.13.13.65]:48896) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KnvtU-0001dP-ED for help-gnu-emacs@gnu.org; Thu, 09 Oct 2008 09:49:32 -0400 Original-Received: from [76.13.13.25] by n2.bullet.mail.ac4.yahoo.com with NNFMP; 09 Oct 2008 13:49:31 -0000 Original-Received: from [76.13.10.172] by t4.bullet.mail.ac4.yahoo.com with NNFMP; 09 Oct 2008 13:49:31 -0000 Original-Received: from [127.0.0.1] by omp113.mail.ac4.yahoo.com with NNFMP; 09 Oct 2008 13:49:31 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 267497.57318.bm@omp113.mail.ac4.yahoo.com Original-Received: (qmail 52931 invoked by uid 60001); 9 Oct 2008 13:49:31 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=ETwz/X3eFMPkBpgLtf9y6arKvtN6CcKIyCNNdMgbvcNXqjOBEk12SPPuEzsm5sFQ2Z8NC/hopKlrjPLUStcbiKxpd36O2Hrr2VBlXUzq8Wy/3w3sCpU1Iu4Jmpb6eoC9e+q7//r+NZGBoSEfYG3R4RgecwCl+Sb5ndbS1p3V9F4=; X-YMail-OSG: 1W5FodoVM1lNJlaePeedBpUyleX06DcUf4inRrLf4WCk1Brkxtsdsyoxv1qAYTzoHD3mWeEvvjUmqfthsBdtxI5J8cqWBIDxXbQlppZ3p6fd17fXoiteWFliK2RrkURJxorLegisZhdHCTke01wo6Iof6TaV Original-Received: from [216.58.41.159] by web59705.mail.ac4.yahoo.com via HTTP; Thu, 09 Oct 2008 06:49:30 PDT X-Mailer: YahooMailWebService/0.7.218.2 In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: FreeBSD 6.x (1) 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:58615 Archived-At: --- On Thu, 10/9/08, Barry Margolin wrote: > From: Barry Margolin > Subject: Re: global-set-key with parameter > To: help-gnu-emacs@gnu.org > Received: Thursday, October 9, 2008, 6:40 AM Hello, > You need to write a new Elisp function that calls > window-configuration-to-register with the parameter, and bind > the key to THAT function. > (defun window-config-to-register-w () > "Store the window configuration in register 'w'." > (interactive) > (window-configuration-to-register ?w)) > (global-set-key [f5] 'window-configuration-to-register-w) Thanks for the help. That sounds quite straightforward although I do not know any lisp. For this reason I'm a bit lost when I get the following error message after pressing F5: Symbol's function definition is void: window-configuration-to-register-w __________________________________________________________________ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at http://ca.toolbar.yahoo.com.