From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: no-spam@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: enriched-mode and switching major modes. Date: Wed, 22 Sep 2004 09:44:19 +0200 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> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1095839291 16840 80.91.229.6 (22 Sep 2004 07:48:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Sep 2004 07:48:11 +0000 (UTC) Cc: Oliver Scholz , boris@gnu.org, eliz@gnu.org, emacs-devel@gnu.org, alex@emacswiki.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 22 09:47:58 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CA1r4-0004c2-00 for ; Wed, 22 Sep 2004 09:47:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CA1x2-0007IH-A1 for ged-emacs-devel@m.gmane.org; Wed, 22 Sep 2004 03:54:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CA1v6-0006sB-Gl for emacs-devel@gnu.org; Wed, 22 Sep 2004 03:52:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CA1ux-0006rN-Od for emacs-devel@gnu.org; Wed, 22 Sep 2004 03:52:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CA1ux-0006qZ-61 for emacs-devel@gnu.org; Wed, 22 Sep 2004 03:51:59 -0400 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.34) id 1CA1oY-0000x3-DY for emacs-devel@gnu.org; Wed, 22 Sep 2004 03:45:22 -0400 Original-Received: (qmail 41397 invoked from network); 22 Sep 2004 07:44:20 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 22 Sep 2004 07:44:20 -0000 Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Tue, 21 Sep 2004 14:30:50 -0400") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) 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:27420 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27420 Richard Stallman writes: > If I understand Kim correctly, then simple tables where the first > column contains a caption for the row would be an example where it > would matter. > > Is it common practice to use "a caption for a row" in a document? Maybe not, but it shows the general concept of what is displayed in one table cell can be _completely_ unrelated to what is displayed in another table cell. > > E.g. tables with different font sizes. Try this: > > > > > > > >
AAAbbbbbb
cccccc
> > > Is this a useful thing to do? How important is it > for a word processor to support this sort of thing? Very important. Consider also the example that instead of AAA we have a tall image, and bbbb ccccc etc is text that is displayed next to that image like this: +---------+ | | this text | | is shown | | on multiple | | lines on the | | right side of | | an image +---------+ I still think my idea to use "anonymous" windows as the base of a block display model would be a good solution (and we already have 95% of the code to do it). It could be done like this: (let* ((b (get-buffer-create "X")) (w (make-anonymous-window b))) (with-current-buffer b (insert "this text is shown on multiple lines on the right side of an image")) (insert-image IMAGE) (insert-anonymous-window w)) The insert-anonymous-window would do something like (defun insert-anonymous-window (w) (insert (propertize "*" 'display `(window ,w)))) Of course, cursor movement need to know how to move in and out of the anonymous window when we move through the display -- that might be doable with point-enter and point-leave properties, or we need some other mechanism.