From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: How to bind (shift Fx) for emacs in putty? Date: Sun, 25 Dec 2005 15:51:08 +0100 Message-ID: References: <1135441849.685785.266180@g44g2000cwa.googlegroups.com> <1135515520.172954.182570@g14g2000cwa.googlegroups.com> <1135519472.158005.6690@g44g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1135522499 4271 80.91.229.2 (25 Dec 2005 14:54:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 25 Dec 2005 14:54:59 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 25 15:54:57 2005 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EqXGs-0006cV-73 for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Dec 2005 15:54:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EqXGg-000246-2D for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Dec 2005 09:54:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EqXEf-0001xE-DE for help-gnu-emacs@gnu.org; Sun, 25 Dec 2005 09:52:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EqXEZ-0001vm-Df for help-gnu-emacs@gnu.org; Sun, 25 Dec 2005 09:52:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EqXEX-0001vN-Bm for help-gnu-emacs@gnu.org; Sun, 25 Dec 2005 09:52:26 -0500 Original-Received: from [217.72.192.224] (helo=smtp06.web.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EqXEC-0000zO-3r for help-gnu-emacs@gnu.org; Sun, 25 Dec 2005 09:52:04 -0500 Original-Received: from [84.245.180.46] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.105 #340) id 1EqXDK-0002n5-00; Sun, 25 Dec 2005 15:51:10 +0100 In-Reply-To: <1135519472.158005.6690@g44g2000cwa.googlegroups.com> X-Image-Url: http://homepage.mac.com/sparifankal/.cv/thumbs/me.thumbnail Original-To: "c.c" X-Mailer: Apple Mail (2.623) X-Sender: Peter_Dyballa@web.de 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:32219 Archived-At: Am 25.12.2005 um 15:04 schrieb c.c: > Hm, this is not a pseudo code. If I replace [(shift f1)] with [f1], = the > key f1 will print the "Hello world" in the buff. > Indeed! Settings like (global-set-key [f6] "Nix!") (global-set-key [s-f6] "Auch nix!") work for me (the version of Emacs I used does not allow to distinguish=20= f6 from S-f6 (shift f6) so I used the super modifier)! Although it's=20 really not the proper way to do it. Again, I would bind the keys by hand first and retrieve afterwards with=20= repeat-complex-command their bindings and see if they really are=20 different. Stefan Monnier gave in a simliar situation this hint: Try M-: (read-event) RET and then hit your =F2 key. It'll = return the=20 code Elisp receives in response to this key (e.g. 2290). You can = then bind=20 it with (local-set-key [2290] "{"). -- Greetings Pete Without vi there is only GNU Emacs