From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neon Absentius Newsgroups: gmane.emacs.help Subject: Re: global-set-key + query-replace-regexp Date: Thu, 27 Oct 2005 15:55:12 +0000 Message-ID: <20051027155512.GB8593@SDF.LONESTAR.ORG> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130430604 7997 80.91.229.2 (27 Oct 2005 16:30:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2005 16:30:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 27 18:30:01 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EVAbf-0007YE-B9 for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Oct 2005 18:27:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EVAbN-0000EG-9I for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Oct 2005 12:27:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EVA6D-000323-Ng for help-gnu-emacs@gnu.org; Thu, 27 Oct 2005 11:55:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EVA69-00031U-42 for Help-gnu-emacs@gnu.org; Thu, 27 Oct 2005 11:55:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EVA68-00031K-HY for Help-gnu-emacs@gnu.org; Thu, 27 Oct 2005 11:55:24 -0400 Original-Received: from [192.94.73.21] (helo=sdf.lonestar.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EVA68-0005BS-Ji for Help-gnu-emacs@gnu.org; Thu, 27 Oct 2005 11:55:24 -0400 Original-Received: from sdf.lonestar.org (IDENT:absent@norge.freeshell.org [192.94.73.3]) by sdf.lonestar.org (8.13.1/8.12.10) with ESMTP id j9RFtCpX021110 for ; Thu, 27 Oct 2005 15:55:12 GMT Original-Received: (from absent@localhost) by sdf.lonestar.org (8.13.1/8.12.8/Submit) id j9RFtCen021679 for Help-gnu-emacs@gnu.org; Thu, 27 Oct 2005 15:55:12 GMT Original-To: Help-gnu-emacs@gnu.org Mail-Followup-To: Neon Absentius , Help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i 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:30621 Archived-At: On Thu, Oct 27, 2005 at 04:55:21PM +0200, luca.spinacci@selex-comms.com wrote: > > > I would like a short key to invoke query-replace-regexp command. > I tried > (global-set-key [f1] 'my-query-replace-regexp) > (fset 'my-query-replace-regexp [?\C-\M-%]) > but the key "f1" invoke (M-x query-replace-regexp "" "" nil nil) > Try (global-set-key (kbd "") 'name-of-command) HTH -- There is no national science just as there is no national multiplication table; what is national is no longer science. -- Anton Checov