From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Robert J. Chassell" Newsgroups: gmane.emacs.devel Subject: Re: keymap in yank-excluded-properties Date: Thu, 5 Sep 2002 14:48:06 +0000 (UTC) Sender: emacs-devel-admin@gnu.org Message-ID: References: <20020822.173129.01368056.Takaaki.Ota@am.sony.com> <200208250525.g7P5PfH11882@wijiji.santafe.edu> <5x3ct2y2nr.fsf@kfs2.cua.dk> <20020830.124308.81460907.Takaaki.Ota@am.sony.com> <5xelcc3054.fsf@kfs2.cua.dk> Reply-To: bob@rattlesnake.com NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1031237311 29553 127.0.0.1 (5 Sep 2002 14:48:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 5 Sep 2002 14:48:31 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17mxvn-0007gG-00 for ; Thu, 05 Sep 2002 16:48:27 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17myVW-0001ju-00 for ; Thu, 05 Sep 2002 17:25:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17mxxP-0000Br-00; Thu, 05 Sep 2002 10:50:07 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17mxvY-0008Fe-00 for emacs-devel@gnu.org; Thu, 05 Sep 2002 10:48:12 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17mxvV-0008EM-00 for emacs-devel@gnu.org; Thu, 05 Sep 2002 10:48:11 -0400 Original-Received: from megalith.rattlesnake.com ([140.186.114.245] helo=localhost) by monty-python.gnu.org with esmtp (Exim 4.10) id 17mxvT-0008E4-00 for emacs-devel@gnu.org; Thu, 05 Sep 2002 10:48:08 -0400 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.114) Thu, 5 Sep 2002 14:48:06 +0000 (UTC) Original-To: emacs-devel@gnu.org In-Reply-To: (message from Richard Stallman on Wed, 04 Sep 2002 22:46:49 -0400) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:7547 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:7547 It would be nice to have a special `rectangle-mode' which would make _all_ the normal kill/copy commands such as C-w and M-w deal in `rectangles' (and use a highlighting hack to make an active region really look like a rectangle). I don't think this makes sense as a mode. It could be a `context specific minor mode', as proposed for table.el, activated, perhaps, when you give a special `set-rectangle-mark' command. Hmmm .... Emacs Calc embedded mode creates what is, in effect, a `context specific minor mode' for the appropriate region in a non-Calc buffer. This concept is a good way to think about what goes on. Below is an example of Calc embedded mode. I am actually using Calc embedded mode in this Mail mode buffer to write this message. What I am trying to say is that I think it is useful to think of Calc as creating a `context specific minor mode' when you run the embedded mode commands, and that in talking about table.el and the new rectangle support commands, the idea of a `context specific minor mode' is useful. (To calculate the length of the hypotenuse of a right triangle. Press `M-# u' (`calc-embedded-update-formula') within each region delimited by $ pairs.) If the two short side of the triangle are $ a := 3.1 $ $ b := 4.1 $ then the length of the hypotenuse is $ c := sqrt(a^2 + b^2) => $. which, when you press `M-# u' a third time, becomes: $ c := sqrt(a^2 + b^2) => 5.14003891036 $. (Sometimes 5.14003891036 is shown as sqrt(26.42); that depends on your settings. The floating point number should be the default.) -- Robert J. Chassell bob@rattlesnake.com bob@gnu.org Rattlesnake Enterprises http://www.rattlesnake.com Free Software Foundation http://www.gnu.org GnuPG Key ID: 004B4AC8