unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: rudalics@gmx.at, emacs-devel@gnu.org, monnier@iro.umontreal.ca,
	lekktu@gmail.com
Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r103444: * lisp/facemenu.el	(list-colors-display): Use with-help-window (Bug#8048).
Date: Mon, 28 Feb 2011 21:43:14 +0200	[thread overview]
Message-ID: <83wrkklzcd.fsf@gnu.org> (raw)
In-Reply-To: <87mxlg57hs.fsf@stupidchicken.com>

> From: Chong Yidong <cyd@stupidchicken.com>
> Date: Mon, 28 Feb 2011 13:39:11 -0500
> Cc: Juanma Barranquero <lekktu@gmail.com>,
> 	Stefan Monnier <monnier@iro.umontreal.ca>,
> 	Emacs developers <emacs-devel@gnu.org>
> 
> martin rudalics <rudalics@gmx.at> writes:
> 
> >> Of course, another way to look at it is that the buffer's content should
> >> be independent from the window, and if it needs to be displayed
> >> differently according to the window size, then this should be done
> >> within the redisplay so that if that same buffer is displayed in several
> >> windows, they all look "right".  But the current redisplay features
> >> probably aren't sufficient for that.
> >
> > It's merely that code like `list-colors-print' would get confused.  We'd
> > have to run it for every window where the buffer is shown so an overlay
> > with a window property inserting the necessary amount of spaces would be
> > needed.
> 
> One possibility is to improve the redisplay engine to provide a way to
> specify a stretch glyph that stretches as far as possible.

I'm not following your line of thought -- is this about aligning
display of text "nicely" for the current window width?  If so, why a
display property whose value is like `(space :align-to POS)' or maybe
`(space :width WIDTH)' will not do this job?  Its implementation in
the display engine is exactly to produce a stretch glyph.  You can
even use something like `(0.4 . text)' to mean 40% of the width of the
text area, see the node "Pixel Specifications" in the ELisp manual.

If these facilities don't fit the bill, can someone explain what is
missing?

> The logic should be pretty similar to the implementation of word
> wrap, though I'm not sure how it would interact with word wrap, or
> with bidirectional display.

Bidirectional display simply lays out characters for display in the
order that is different from the logical (a.k.a reading) order they
are stored in the buffer.  Bidirectional display doesn't care a bit
about other display features that are produced from something other
than text.  Or am I missing something?



  reply	other threads:[~2011-02-28 19:43 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1Ptqqn-0006fU-TE@internal.in.savannah.gnu.org>
2011-02-28  4:15 ` [Emacs-diffs] /srv/bzr/emacs/trunk r103444: * lisp/facemenu.el (list-colors-display): Use with-help-window (Bug#8048) Juanma Barranquero
2011-02-28  9:28   ` martin rudalics
2011-02-28 12:34     ` Juanma Barranquero
2011-02-28 14:57     ` Stefan Monnier
2011-02-28 17:10       ` martin rudalics
2011-02-28 18:39         ` Chong Yidong
2011-02-28 19:43           ` Eli Zaretskii [this message]
2011-02-28 19:58             ` Chong Yidong
2011-02-28 20:53               ` Johan Bockgård
2011-03-01  3:40                 ` Chong Yidong
2011-03-01  4:53                   ` Stefan Monnier
2011-03-01 18:51                     ` Eli Zaretskii
2011-03-02  8:09                       ` martin rudalics
2011-03-02 18:43                         ` Eli Zaretskii
2011-03-02 19:56                           ` martin rudalics
2011-03-04 17:49                         ` Tom Tromey
2011-03-05 12:00                           ` martin rudalics
2011-03-02 17:03                       ` Stefan Monnier
2011-03-02 18:51                         ` Eli Zaretskii
2011-03-01 21:43                     ` Chong Yidong
2011-03-01  9:47                   ` martin rudalics
2011-03-01 15:23                     ` Drew Adams
2011-03-01 17:43                       ` martin rudalics
2011-03-01 19:00                     ` Eli Zaretskii
2011-03-01 21:42                       ` Chong Yidong
2011-03-01 22:19                         ` Eli Zaretskii
2011-03-02  8:09                           ` martin rudalics
2011-03-02  0:13                         ` Juanma Barranquero
2011-03-02  8:09                           ` martin rudalics
2011-03-02  8:09                       ` martin rudalics
2011-02-28 20:57               ` Eli Zaretskii
2011-03-05 12:00       ` martin rudalics
2011-03-06  5:22         ` Stefan Monnier
2011-03-06  9:13           ` martin rudalics
2011-03-06 19:44             ` Stefan Monnier
2011-03-07 10:16               ` martin rudalics
2011-03-07 16:38                 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83wrkklzcd.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=lekktu@gmail.com \
    --cc=monnier@iro.umontreal.ca \
    --cc=rudalics@gmx.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).