From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@newcastle.ac.uk (Phillip Lord) Newsgroups: gmane.emacs.help Subject: Re: Key-binding without minor mode! Date: Mon, 15 Sep 2014 13:48:13 +0100 Message-ID: <87ha09xd6a.fsf@newcastle.ac.uk> References: <87mwa6crac.fsf@newcastle.ac.uk> <87wq9ab5k8.fsf@newcastle.ac.uk> <87sijyb43f.fsf@newcastle.ac.uk> <877g19xj3w.fsf@newcastle.ac.uk> <878ulox3n9.fsf@newcastle.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410785327 22407 80.91.229.3 (15 Sep 2014 12:48:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Sep 2014 12:48:47 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 15 14:48:40 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 1XTVhv-0002AC-Pn for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Sep 2014 14:48:39 +0200 Original-Received: from localhost ([::1]:59503 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTVhv-0003jq-Fs for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Sep 2014 08:48:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48276) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTVhf-0003jS-SI for help-gnu-emacs@gnu.org; Mon, 15 Sep 2014 08:48:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTVhZ-000576-5K for help-gnu-emacs@gnu.org; Mon, 15 Sep 2014 08:48:23 -0400 Original-Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:40931) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTVhY-00056o-VM for help-gnu-emacs@gnu.org; Mon, 15 Sep 2014 08:48:17 -0400 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot22.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1XTVhV-0004nx-EO; Mon, 15 Sep 2014 13:48:13 +0100 Original-Received: from jangai.ncl.ac.uk ([10.66.67.223] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1XTVhV-0004he-7V; Mon, 15 Sep 2014 13:48:13 +0100 In-Reply-To: (Stefan Monnier's message of "Fri, 12 Sep 2014 12:56:37 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.22 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:99921 Archived-At: Stefan Monnier writes: >> I am confused then. Should the major mode be binding to \t always then, >> and never [tab]? In which case, what is the point of being able to bind >> to [tab]? > > The major mode should only bind to [tab] if it wants to behave > differently under a GUI than under a tty (which seems highly unlikely), > or if it does not care to work under a tty and wants to distinguish the > TAB key from the C-i key. org does I think -- it binds tab, and C-i but not "\t". (org-defkey org-mode-map "\C-i" 'org-cycle) (org-defkey org-mode-map [(tab)] 'org-cycle) Phil