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: position on changing defaults? Date: Thu, 06 Mar 2008 12:07:13 -0500 Message-ID: References: <200803050637.m256bXL3008361@sallyv1.ics.uci.edu> <87hcfkdhqk.fsf@stupidchicken.com> <87pru8enjx.fsf@kfs-lx.rd.rdm> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204823444 31891 80.91.229.12 (6 Mar 2008 17:10:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Mar 2008 17:10:44 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org To: storm@cua.dk (Kim F. Storm) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 06 18:11:09 2008 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 1JXJc3-0003IM-4F for ged-emacs-devel@m.gmane.org; Thu, 06 Mar 2008 18:10:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXJbV-0001pF-G6 for ged-emacs-devel@m.gmane.org; Thu, 06 Mar 2008 12:10:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JXJYp-0008Sf-JR for emacs-devel@gnu.org; Thu, 06 Mar 2008 12:07:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JXJYo-0008S9-Lk for emacs-devel@gnu.org; Thu, 06 Mar 2008 12:07:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXJYo-0008S4-Fi for emacs-devel@gnu.org; Thu, 06 Mar 2008 12:07:14 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JXJYo-0001UT-1j for emacs-devel@gnu.org; Thu, 06 Mar 2008 12:07:14 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAFyzz0fO+LKX/2dsb2JhbACsRYEH X-IronPort-AV: E=Sophos;i="4.25,456,1199682000"; d="scan'208";a="15663455" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 06 Mar 2008 12:07:13 -0500 Original-Received: from pastel.home ([206.248.178.151]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id MUN55313; Thu, 06 Mar 2008 12:07:13 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 4177E816B; Thu, 6 Mar 2008 12:07:13 -0500 (EST) In-Reply-To: <87pru8enjx.fsf@kfs-lx.rd.rdm> (Kim F. Storm's message of "Thu, 06 Mar 2008 00:52:34 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:91510 Archived-At: > cua-selection-mode will start/expand the region not just for > the shift-arrow keys, but (in practice) any shifted movement key. That's fine. I don't think it matters much whether it does or not. > It also gives you the rectangle highlighting (which I think most > users would agree is quite useful) combined with the ability to > use the normal region kill, copy and yank keys also for rectangles. > So there's no need to learn a different command set for rectangles! Actually, I think the rectangle support is good, although I'd like it to be a bit more like the normal region highlighting (e.g. same color, C-g should deactivate it, should be allowed to have 0-width). The C-g part is important: I found it difficult to figure out how to "exit" from the "rectangle-mode". Also I'm not convinced by the special M-foo bindings and the special treatment of self-insert-command. Maybe it's just that I'm used to it, but I find C-x r t to work at least as well if not better (e.g. it's not limited to self-inserting keys). > BTW, why is using a pre- or post- command hook so bad? These tend to be brittle (e.g. when entering/exiting minibuffer prompts or recursive edits) and difficult to debug. I think the need for pre/post command-hook is often a sign of a missing functionality elsewhere. Stefan