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: Tex-mode binding of C-return Date: Tue, 03 May 2005 11:42:35 -0400 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1115230168 10543 80.91.229.2 (4 May 2005 18:09:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 May 2005 18:09:28 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 04 20:09:25 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DTOIO-0004jC-LS for ged-emacs-devel@m.gmane.org; Wed, 04 May 2005 20:08:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DTOPk-0006EV-MH for ged-emacs-devel@m.gmane.org; Wed, 04 May 2005 14:16:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DT0iI-0003xo-JN for emacs-devel@gnu.org; Tue, 03 May 2005 12:57:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DT0iF-0003vm-GS for emacs-devel@gnu.org; Tue, 03 May 2005 12:57:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DT0gH-000327-N7 for emacs-devel@gnu.org; Tue, 03 May 2005 12:55:33 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DT0RX-0004r4-Od for emacs-devel@gnu.org; Tue, 03 May 2005 12:40:19 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id BF85B340016; Tue, 3 May 2005 11:42:40 -0400 (EDT) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 93AD14AC009; Tue, 3 May 2005 11:42:35 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 7D31EE6C1D; Tue, 3 May 2005 11:42:35 -0400 (EDT) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "Tue, 03 May 2005 10:02:26 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-4.839, requis 5, autolearn=not spam, AWL 0.06, BAYES_00 -4.90) X-MailScanner-From: monnier@iro.umontreal.ca 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:36635 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36635 >>> C-return is such a "good command", analogue to C-SPC for the >>> normal mark. >> I don't find C-return a particularly good choice (especially since it >> doesn't work on ttys). > Neither does S-return... Indeed, so it's not a good choice either. > Does C-space work on ttys? Yes and no: it typically isn't recognized as C-SPC but as C-@ (aka ASCII NUL). Luckily (well it's actually done on purpose) C-@ has the same binding, so it does DTRT. In contrast on most tty C-return just sends a RET and we can't put that special binding on RET as well. I'm not saying C-return can't be used, but it would be good to also find a key that works on ttys (just like we have undo bound to C-x u for "works everywhere" as well as to C-_ and C-/ for more convenient alternatives that don't always work). Maybe we could just use C-x r (except it would hide the register commands ;-( ). >> Is the idea that to kill a rectangle you could do >> C-RET C-SPC .... M-w > Just do: > C-RET ... M-w Hmmm... OK. I was thinking it would be good to make it work like a general prefix command so you could also do C-return M-C-SPC, but after thinking about it, I see it's not that important as long as M-C-SPC C-return works as well. >> or equivalently >> >> C-SPC ... C-RET ... M-w > That works, yes, changing the normal mark to > a rectangle mark. Good. I assume it only works if you use transient-mark-mode, otherwise it has no way to know whether you're "in the middle of marking" or not. > I'm suggesting to use C-return instead of S-return to toggle the > rectangle mark, just like C-space toggles the normal mark. Fine with me, C-return is no worse than S-return. Stefan