From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: C- key bindings not working on console Date: Thu, 23 Jan 2014 14:39:17 +0100 Message-ID: <87a9emes1m.fsf@gnu.org> References: <87mwin0y6t.fsf@gmail.com> <87ha8v0xpn.fsf@gmail.com> <87eh3yeuej.fsf@gnu.org> <87fvoekg3x.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1390484385 17070 80.91.229.3 (23 Jan 2014 13:39:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jan 2014 13:39:45 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Thorsten Jolitz Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 23 14:39:51 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W6KVa-000782-R2 for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Jan 2014 14:39:50 +0100 Original-Received: from localhost ([::1]:41170 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6KVa-0004qR-CH for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Jan 2014 08:39:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6KVI-0004q3-21 for help-gnu-emacs@gnu.org; Thu, 23 Jan 2014 08:39:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6KVA-0006XA-Oz for help-gnu-emacs@gnu.org; Thu, 23 Jan 2014 08:39:31 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:50306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6KVA-0006Wr-IE for help-gnu-emacs@gnu.org; Thu, 23 Jan 2014 08:39:24 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 934771A84F0; Thu, 23 Jan 2014 14:39:22 +0100 (CET) X-Virus-Scanned: amavisd-new at uni-koblenz.de Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Cj8vHVrGFA-y; Thu, 23 Jan 2014 14:39:22 +0100 (CET) X-CHKRCPT: Envelopesender noch tsdh@gnu.org Original-Received: from thinkpad-t61 (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 270101A84EE; Thu, 23 Jan 2014 14:39:22 +0100 (CET) In-Reply-To: <87fvoekg3x.fsf@gmail.com> (Thorsten Jolitz's message of "Thu, 23 Jan 2014 14:00:34 +0100") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 141.26.64.15 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95569 Archived-At: Thorsten Jolitz writes: >> I can confirm that C- is not recognized on the linux console, >> M- however is. But I also don't know it it's a general >> limitation. > > yes, M- works but I use that already to select windows with > `window-numbering' Me, too. Or rather, I don't use window-numbering anymore because I had some issue with it (I think with speedbar), but use this simple replacement instead: --8<---------------cut here---------------start------------->8--- (defun th/select-nth-window (n) "Selects the N-th window. When called interactively, the N is provided as the last part of the keybinding. So you'd usually bind this function to M-{1,..,9}, and then M-3 selects the third window." (interactive (list (let ((ev (event-basic-type last-command-event))) (string-to-number (char-to-string ev))))) (if (> n (length (window-list))) (user-error "There's no window %s." n) (select-window (window-at 0 0)) (other-window (1- n)))) (dotimes (i 9) (global-set-key (kbd (format "M-%s" (1+ i))) 'th/select-nth-window)) --8<---------------cut here---------------end--------------->8--- > which is very convenient. Yep. > I always thought that the M- bindings are more problematic than the C- > bindings on a console (in fact they are sometimes presented as > alternatives for not working M- bindings iirc), so I'm a bit > surprised. Indeed. Although I have to confess that I rarely use the console, both because of not being able to use some keybindings that are deep in my muscle memory and because of the frequently unreadable color choices resulting from Emacs trying to make the best out of the definitions in my angry fruit salad theme. Bye, Tassilo