From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: enriched-mode and switching major modes. Date: Wed, 22 Sep 2004 14:21:01 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <200409042358.i84Nwjt19152@raven.dms.auburn.edu> <87llfn5ihw.fsf@emacswiki.org> <01c49c75$Blat.v2.2.2$7a37cb00@zahav.net.il> <01c49d70$Blat.v2.2.2$f7cfb860@zahav.net.il> <01c49da7$Blat.v2.2.2$cd5f7160@zahav.net.il> <01c49dc6$Blat.v2.2.2$3b624d40@zahav.net.il> Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CABkj-0006ZO-00 for ; Wed, 22 Sep 2004 20:22:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CABqi-0000Zk-V1 for ged-emacs-devel@m.gmane.org; Wed, 22 Sep 2004 14:28:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CABq7-0000LZ-2V for emacs-devel@gnu.org; Wed, 22 Sep 2004 14:27:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CABq5-0000Kk-Kn for emacs-devel@gnu.org; Wed, 22 Sep 2004 14:27:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CABq5-0000KX-Ey for emacs-devel@gnu.org; Wed, 22 Sep 2004 14:27:37 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CABji-0005FX-1v for emacs-devel@gnu.org; Wed, 22 Sep 2004 14:21:02 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1CABjh-0004a8-Go; Wed, 22 Sep 2004 14:21:01 -0400 Original-To: Oliver Scholz In-reply-to: (message from Oliver Scholz on Wed, 22 Sep 2004 12:35:15 +0200) 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:27456 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27456 [nested blocks] > What does it *mean* to copy a character from inside environment > `larum' which is inside environment `lirum' and insert it somewere > else? What should that character look like in its new location? * Ignore the block formatting properties and copy only normal text properties. In that case, you get a behavior that is equivalent to putting the block properties into the buffer as markup. If that's what we want, I suggest we look at representing the information with markup that consists of text in the buffer. An implementation using text properties that state the paragraph properties might also be possible, as you have been investigating. Word processors as well as the file formats used in word processing typically provide several ways to apply character formatting properties on text: * paragraph formatting stylesheets - RTF: \sN - HTML: block elements like h1, h2 ... * character formatting stylesheets - RTF: \csN - HTML: inline elements like em * direct specification of character formatting properties - RTF: \fN, \fsN, \b ... - HTML: i, b, font ... The latter two can be implemented easily with text properties. In fact, Emacs supports them both now with text properties. For the present discussion, we can treat them as two variants of the same thing. So that is one issue we need not spend time on. > Why ask the question? Why not just accept that it's a paragraph > of partly h1 text and partly h2 text? In HTML there is no such thing as a paragraph that is partly H1 and H2 text. That doesn't mean it can't exist in an Emacs buffer. Our imaginations need not be limited by what HTML can comprehend ;-).