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 08:54:22 -0800 Organization: http://groups.google.com Message-ID: <1172508862.399116.33070@p10g2000cwp.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" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1172511670 16461 80.91.229.12 (26 Feb 2007 17:41:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Feb 2007 17:41:10 +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 18:41:01 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 1HLjqP-0000NP-Df for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Feb 2007 18:41:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HLjqO-0006Un-Ua for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Feb 2007 12:41:00 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!p10g2000cwp.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: 84.14.169.35 Original-X-Trace: posting.google.com 1172508868 8517 127.0.0.1 (26 Feb 2007 16:54:28 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 26 Feb 2007 16:54:28 +0000 (UTC) In-Reply-To: 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: p10g2000cwp.googlegroups.com; posting-host=84.14.169.35; posting-account=qMeMkg0AAADHR1j5o7nViyG7RKzb9FsT Original-Xref: shelby.stanford.edu gnu.emacs.help:145881 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:41485 Archived-At: Thank you very much weber, it works perfectly. Alternatively, I have just discovered that using the kbd macro works fine also e.g. (local-set-key (kbd "C-|") 'indent-region) Don't ask me why I never tried it before since I was already using it for the newline-and-indent binding. I guess that sometimes things are just too obvious or you're just too stupid... Anyways, thanks again for your help! Jean On 26 f=E9v, 17:12, "Lennart Borgman (gmail)" wrote: > weber wrote: > >> (local-set-key [C-|] 'indent-region) > > Try > > (local-set-key [(control ?|)] (lambda() (interactive) (message "Hi from > C-|")))