unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: "Per Starbäck" <per@starback.se>
Cc: emacs-devel@gnu.org
Subject: Re: Completion keys and rectangles
Date: Mon, 16 Nov 2009 16:32:26 -0500	[thread overview]
Message-ID: <jwv7htqqhwt.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <912155b0911161158w73acdb93p4b28d2a3b260a8f2@mail.gmail.com> ("Per Starbäck"'s message of "Mon, 16 Nov 2009 20:58:58 +0100")

> 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




  parent reply	other threads:[~2009-11-16 21:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-16 19:58 Completion keys and rectangles Per Starbäck
2009-11-16 21:29 ` Drew Adams
2009-11-16 21:32 ` Stefan Monnier [this message]
2009-11-17  4:32   ` Miles Bader
2009-11-16 21:34 ` David De La Harpe Golden
2009-11-16 22:14   ` Per Starbäck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv7htqqhwt.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=per@starback.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).