From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.bugs Subject: Re: display property as display spec vector behavior unclear Date: Wed, 19 Sep 2007 01:54:35 +0200 Message-ID: References: <86odfzfxne.fsf@macs.hw.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1190159704 6357 80.91.229.12 (18 Sep 2007 23:55:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Sep 2007 23:55:04 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 19 01:55:04 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IXmuE-0007oe-MZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Sep 2007 01:55:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXmuD-0007VO-0n for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Sep 2007 19:55:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IXmuA-0007Ty-6v for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2007 19:54:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IXmu9-0007TK-BW for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2007 19:54:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXmu9-0007TF-6R for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2007 19:54:57 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IXmu8-0002IW-NG for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2007 19:54:56 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IXmu2-0007dc-Pc for bug-gnu-emacs@gnu.org; Wed, 19 Sep 2007 01:54:50 +0200 Original-Received: from gamma02.me.chalmers.se ([129.16.50.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Sep 2007 01:54:50 +0200 Original-Received: from bojohan+news by gamma02.me.chalmers.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Sep 2007 01:54:50 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: bug-gnu-emacs@gnu.org Original-Lines: 37 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: gamma02.me.chalmers.se Mail-Copies-To: never User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:AoFFIAIk6IYPs2eD0A8MfhoyhLA= X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16569 Archived-At: Joe Wells writes: > The documentation in the Emacs Lisp manual on the display property > states this: > > The value of the `display' property should be a display > specification, or a list or vector containing several display > specifications. > > Unfortunately, this is the only thing it states about the case where > the display property is a list or vector of display specs. > I searched for all occurrences of the words “list” and “vector” in > that section of the manual and could not find more precise details. > > I would guess from the above description that if the display property > were a vector of display specs, then all of the things specified to be > displayed would be shown from left to right. However, it seems that > only the first one is used, which seems strange. A vector or list is used for combining properties (where is makes sense), not laying things out in sequence. This passage from the comment of handle_single_display_spec is relevant: DISPLAY_REPLACED_P non-zero means that we previously saw a display specification which already replaced text display with something else, for example an image; we ignore such properties after the first one has been processed. Properties that don't "replace text with something else" include `height', `raise', `space-width'. These can be combined. Image slices use `slice' together with `image'. -- Johan Bockgård