From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Completion keys and rectangles Date: Mon, 16 Nov 2009 16:32:26 -0500 Message-ID: References: <912155b0911161158w73acdb93p4b28d2a3b260a8f2@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258407174 8857 80.91.229.12 (16 Nov 2009 21:32:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Nov 2009 21:32:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: Per =?iso-8859-1?Q?Starb=E4ck?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 16 22:32:47 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NA9Bk-0003yv-4D for ged-emacs-devel@m.gmane.org; Mon, 16 Nov 2009 22:32:44 +0100 Original-Received: from localhost ([127.0.0.1]:58225 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NA9Bj-0003JH-Ic for ged-emacs-devel@m.gmane.org; Mon, 16 Nov 2009 16:32:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NA9Bc-0003F1-BY for emacs-devel@gnu.org; Mon, 16 Nov 2009 16:32:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NA9BW-00036c-FE for emacs-devel@gnu.org; Mon, 16 Nov 2009 16:32:34 -0500 Original-Received: from [199.232.76.173] (port=58698 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NA9BW-00036L-3o for emacs-devel@gnu.org; Mon, 16 Nov 2009 16:32:30 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:46434) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NA9BV-0002yZ-Of for emacs-devel@gnu.org; Mon, 16 Nov 2009 16:32:29 -0500 Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id nAGLWRnd006226; Mon, 16 Nov 2009 16:32:27 -0500 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 1334F3A0FA; Mon, 16 Nov 2009 16:32:27 -0500 (EST) In-Reply-To: <912155b0911161158w73acdb93p4b28d2a3b260a8f2@mail.gmail.com> ("Per =?iso-8859-1?Q?Starb=E4ck=22's?= message of "Mon, 16 Nov 2009 20:58:58 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3407=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:117049 Archived-At: > M-TAB is very often used by the window manager. "(emacs) Symbol > Completion" therefore advices to use ESC TAB > or C-M-i instead to avoid that when using a completion command in Emacs. > nxml-mode avoids the problem by binding C-RET as well to > nxml-complete, and only that when Emacs is used under > a window system. (See nxml-bind-meta-tab-to-complete-flag.) C-RET doesn't sound like a good choice to me, both because it's counter-intuitive (I expect C-RET to "terminate" something like RET terminates a line or terminates minibuffer input), and because it's not available in xterms (which also can't use M-TAB). I agree that Emacs should choose a binding for it. Personally, I've been using TAB for that purpose. It's convenient and natural since TAB is already used for completion in many other contexts, but it's also kind of tricky since TAB is also used for indentation. I resolve this problem by first trying indentation and if indentation did not do anything, then I try completion. It works for me, but I'm not that thrilled about it. Stefan