From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "tubescreamer808@gmail.com" Newsgroups: gmane.emacs.help Subject: Re: Key binding problem Date: 26 Feb 2007 06:19:54 -0800 Organization: http://groups.google.com Message-ID: <1172499594.813314.43180@j27g2000cwj.googlegroups.com> References: <1172496209.317241.112620@s48g2000cws.googlegroups.com> <1172496830.927732.168870@t69g2000cwt.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1172500838 30848 80.91.229.12 (26 Feb 2007 14:40:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Feb 2007 14:40:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 26 15:40:31 2007 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 1HLh1i-0003Bd-MR for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Feb 2007 15:40:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HLh1i-0007f9-4d for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Feb 2007 09:40:30 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!j27g2000cwj.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: 84.14.169.35 Original-X-Trace: posting.google.com 1172499603 17979 127.0.0.1 (26 Feb 2007 14:20:03 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 26 Feb 2007 14:20:03 +0000 (UTC) In-Reply-To: <1172496830.927732.168870@t69g2000cwt.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.10 (Windows NT 5.1; U; en),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.0 proxy.malakoff.ferma:8080 (squid/2.5.STABLE12) Complaints-To: groups-abuse@google.com Injection-Info: j27g2000cwj.googlegroups.com; posting-host=84.14.169.35; posting-account=qMeMkg0AAADHR1j5o7nViyG7RKzb9FsT Original-Xref: shelby.stanford.edu gnu.emacs.help:145874 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:41478 Archived-At: > I don't know about this local-set-key command... >>From emacs help: local-set-key is an interactive compiled Lisp function in `subr.el'. (local-set-key KEY COMMAND) Give KEY a local binding as COMMAND. COMMAND is the command definition to use; usually it is a symbol naming an interactively-callable function. KEY is a key sequence; noninteractively, it is a string or vector of characters or event types, and non-ASCII characters with codes above 127 (such as ISO Latin-1) can be included if you use a vector. The binding goes in the current buffer's local map, which in most cases is shared with all other buffers in the same major mode. > > I don't know about this local-set-key command... > > Could you try changing to something like these > (define-key c-mode-map "\C-%" 'query-replace-regexp) > instead? > I tried that also and got the same result.