From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Withers Newsgroups: gmane.emacs.help Subject: binding a key to a function with an argument Date: Wed, 22 Jul 2009 09:13:41 -0700 Message-ID: <1248279221.8457.46.camel@firefly> Reply-To: grayarea@reddagger.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1248320951 5157 80.91.229.12 (23 Jul 2009 03:49:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jul 2009 03:49:11 +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 Jul 23 05:49:04 2009 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 1MTpIh-0002E4-2f for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Jul 2009 05:48:59 +0200 Original-Received: from localhost ([127.0.0.1]:45703 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTpIg-0000Vl-Hb for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Jul 2009 23:48:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MTfGX-0002fH-6D for help-gnu-emacs@gnu.org; Wed, 22 Jul 2009 13:06:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MTfGS-0002bs-CW for help-gnu-emacs@gnu.org; Wed, 22 Jul 2009 13:06:04 -0400 Original-Received: from [199.232.76.173] (port=35381 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTfGS-0002bp-5D for help-gnu-emacs@gnu.org; Wed, 22 Jul 2009 13:06:00 -0400 Original-Received: from [66.211.107.215] (port=49875 helo=mail.reddagger.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MTfGR-00084p-KX for help-gnu-emacs@gnu.org; Wed, 22 Jul 2009 13:05:59 -0400 Original-Received: by mail.reddagger.org (Postfix, from userid 1007) id 490F118A41C5; Wed, 22 Jul 2009 09:13:44 -0700 (PDT) Original-Received: from [192.168.1.103] (c-67-164-33-174.hsd1.ca.comcast.net [67.164.33.174]) by mail.reddagger.org (Postfix) with ESMTP id 2D3E818A4135 for ; Wed, 22 Jul 2009 09:13:39 -0700 (PDT) X-Mailer: Evolution 2.22.3.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Greylist: delayed 3132 seconds by postgrey-1.27 at monty-python; Wed, 22 Jul 2009 13:05:58 EDT X-Mailman-Approved-At: Wed, 22 Jul 2009 23:47:40 -0400 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:66345 Archived-At: Folks, I am trying to change C-x C-s save-buffer to save-some-buffers with the non-nil argument so that it will save all without questions. I have no problem with the bind of the save-some-buffers: (global-set-key (kbd "C-x C-s") 'save--some-buffers) but I can't figure out how to pass the non-nil argument. I have tried a few different ways and they all throw errors. Any help would be appreciated. -john