From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jonas Bernoulli" Newsgroups: gmane.emacs.help Subject: C-home in virtual console for emacs and bash Date: Sun, 3 Dec 2006 23:51:06 +0100 Message-ID: <201bac3a0612031451j2ec2ad3enf87ea690c8053845@mail.gmail.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1165186286 13993 80.91.229.10 (3 Dec 2006 22:51:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 3 Dec 2006 22:51:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 03 23:51:25 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Gr0B7-0007n5-60 for geh-help-gnu-emacs@m.gmane.org; Sun, 03 Dec 2006 23:51:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gr0B7-00013q-20 for geh-help-gnu-emacs@m.gmane.org; Sun, 03 Dec 2006 17:51:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gr0Aw-00013Y-T2 for help-gnu-emacs@gnu.org; Sun, 03 Dec 2006 17:51:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gr0Au-000135-Nq for help-gnu-emacs@gnu.org; Sun, 03 Dec 2006 17:51:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gr0Au-00012z-HT for help-gnu-emacs@gnu.org; Sun, 03 Dec 2006 17:51:08 -0500 Original-Received: from [66.249.82.235] (helo=wx-out-0506.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gr0Au-0001YE-Gn for help-gnu-emacs@gnu.org; Sun, 03 Dec 2006 17:51:08 -0500 Original-Received: by wx-out-0506.google.com with SMTP id s17so3923917wxc for ; Sun, 03 Dec 2006 14:51:07 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=BSXkJGoDmOLJrmATwn9Q2G0+XsdqJD45fXWZMQ13UJReDlir1sWUpMUBxJfhzKcbIMo4MrXWMPfocy3XK7WypEkCt8A/gfGli9k8oqrojtMaf7XCixX48J/FWye3HTA93IG9oQ8lBk7S1LXUTxJoyukwRoR/U8njNYns/mPqH+0= Original-Received: by 10.70.80.6 with SMTP id d6mr13819024wxb.1165186266964; Sun, 03 Dec 2006 14:51:06 -0800 (PST) Original-Received: by 10.70.112.1 with HTTP; Sun, 3 Dec 2006 14:51:06 -0800 (PST) Original-To: help-gnu-emacs@gnu.org Content-Disposition: inline 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:39238 Archived-At: hello i would like to have Control_Home and alike available in bash and emacs when using a virtual console just like i do in X. however there is no such keysymbol in the kernels keymap. without any modifications C-home is available in emacs but not bash. in order to make it work in bash also, i added this to my keymap, faking the keysym as in X: string F101 = "\033[1;5H" control keycode 102= F101 now i can use C-home in bash but not in emacs anymore :-( when pressing C-home in emacs now instead of calling the function bound to C-home the characters "5H" are entered in the buffer. when i test with `M-x describe-key-briefly' i get "M-[ 1 : is undefined" and "5H" is written to the current buffer again. so currently while in a virtual console i have the choice between having C-home available in bash or emacs i understand this is not a emacs only problem, in fact emacs has dealt with this limitation of the kernels but unfortunately in a way that is not compatible with the workaround for applications like bash that depend on readline for their key handling. if someone has a suggestion how emacs could be thought to work with above workaround for bash i would be very thankful. i am afraid the keysyms are hardcoded somewhere in c-code. so if someone could tell me where the keysyms are defined this might allow me to add the additional keysyms i need. cheers jonas