From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Felix Crux Newsgroups: gmane.emacs.help Subject: Difference between GUI/terminal when using "kbd" macro Date: Mon, 18 Feb 2013 11:49:57 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1361214478 15526 80.91.229.3 (18 Feb 2013 19:07:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Feb 2013 19:07:58 +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 18 20:08:20 2013 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 1U7W4W-0008RJ-Tf for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Feb 2013 20:08:17 +0100 Original-Received: from localhost ([::1]:60606 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7W4C-0003xI-Ai for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Feb 2013 14:07:56 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50338) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7TvG-0000T6-8r for help-gnu-emacs@gnu.org; Mon, 18 Feb 2013 11:50:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7TvB-00067J-Iq for help-gnu-emacs@gnu.org; Mon, 18 Feb 2013 11:50:34 -0500 Original-Received: from mail-ob0-f177.google.com ([209.85.214.177]:51351) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7TvB-000677-EL for help-gnu-emacs@gnu.org; Mon, 18 Feb 2013 11:50:29 -0500 Original-Received: by mail-ob0-f177.google.com with SMTP id wc18so5690287obb.22 for ; Mon, 18 Feb 2013 08:50:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=ORIDYeB+pnM3YJnT2xrqQnq94m/X7bqw1c5dMMnaCcA=; b=Ywlbbjta87hK4gu9wBnvsTxZYgck89ABjogbKfiTyt8WnjoVQbgwKPOV2FjUbnpREM ExhLbWHhljDL3g0PA/cx78UoUzgwsHuyxHzWnzFlmHPL7ZNc82ibSpOewoGTg5eph1t2 6MpagTtif1GEtYPFZnJkWUfQezls5nr77ll6N9TA/GLkZAIXCK4u9Q75PJXDFQHaJL4R k4OFFB3aHrJjyWLujQ8qKPyJIuGEdR9sKJ++duvqkEMCLYJWI4a9my06DU0SJ9tbVvT3 J72wUVds3kIPtO5rB04IkKZToFXCYK2MduG+DCOAoo55tM6zDCT5ELT/xc0Hyc3HN5Oh w0SQ== X-Received: by 10.182.117.7 with SMTP id ka7mr6413659obb.29.1361206227933; Mon, 18 Feb 2013 08:50:27 -0800 (PST) Original-Received: by 10.76.122.138 with HTTP; Mon, 18 Feb 2013 08:49:57 -0800 (PST) X-Gm-Message-State: ALoCoQmf5Bber7d6SyJs8t+8ikW5jr8C08LDymrsyaPe978izglkEenfRuBN4Biw9NHOkHOtbfux X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.214.177 X-Mailman-Approved-At: Mon, 18 Feb 2013 14:07:51 -0500 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:89154 Archived-At: Hello, I recently ran across a perplexing problem that I can't find the answer to in the documentation. The following snippet in my init file works just as one would expect in both graphical (GTK+) and terminal instances of Emacs: (global-set-key [?\C-x ?\e] 'save-buffers-kill-emacs) However, this version, which I thought to be identical (but more readable), only works in graphical sessions: (global-set-key (kbd "C-x ") 'save-buffers-kill-emacs) When attempting to use it in a terminal, the status line simply displays "C-x ESC-", as though waiting for more input. Invoking emacs-version gives me "GNU Emacs 23.4.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-09-08 on trouble, modified by Debian". I'd be most grateful if someone would point me in the right direction to understand this. Thank you, Felix C.