From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Wedler, Christoph" Newsgroups: gmane.emacs.devel Subject: RE: [Feature request] face property `raise' Date: Tue, 8 Apr 2003 19:52:21 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <67B8CED503F3D511BB9F0008C75DAD660548556F@dewdfx17> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: main.gmane.org 1049824618 11177 80.91.224.249 (8 Apr 2003 17:56:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 8 Apr 2003 17:56:58 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Apr 08 19:56:57 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 192xJb-0002lb-00 for ; Tue, 08 Apr 2003 19:55:23 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 192xNh-0008Qi-00 for ; Tue, 08 Apr 2003 19:59:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 192xIF-0003dJ-09 for emacs-devel@quimby.gnus.org; Tue, 08 Apr 2003 13:53:59 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 192xHX-0003Oz-00 for emacs-devel@gnu.org; Tue, 08 Apr 2003 13:53:15 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 192xGy-0003EV-00 for emacs-devel@gnu.org; Tue, 08 Apr 2003 13:52:43 -0400 Original-Received: from smtpde02.sap-ag.de ([155.56.68.170]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 192xGo-0002fy-00; Tue, 08 Apr 2003 13:52:30 -0400 Original-Received: from sap-ag.de (smtpde02) by smtpde02.sap-ag.de (out) with ESMTP id TAA00365; Tue, 8 Apr 2003 19:52:40 +0200 (MESZ) Original-To: "'rms@gnu.org'" X-Mailer: Internet Mail Service (5.5.2656.59) X-SAP: out X-SAP: out X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13031 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13031 > I would like to see a face property `raise' with the same semantics as > the display property `raise'. > I don't think so. Raising is not a matter of how something is > displayed, but where it is displayed. Where something is displayed (at least relatively, and that's what `raise' is about) is a special case of how something is displayed. The question of face (style-class like in HTML/CSS would be a better name) vs display property is determined by the following: * display property: determines the display style of ONE SPECIFIC buffer part, * face property: assigns a style class to a buffer part. By customizing the face, you determine the display style of all buffer parts having this style class. In my previous mail, I've given you an example where face properties are much better (super-/subscripts: after all, you want to raise subscripts consistently by e.g. 5 pixels), a face for footnote numberings would be another example. (I also gave 5 general reasons.) I've yet to see an example where display properties are useful for `raise', except for some Emacs painting package. (But even that example would not invalidate my examples, i.e., a face property `raise' would still be useful.) Looking how things are done outside the Emacs world would also be useful: let's assume HTML wouldn't have a SUP element. Then everyone would advice you to use superscript and define SPAN.SUP { vertical-align: super; font-size: smaller; } instead using superscript for every superscript. In Emacs, the recommendation (using the class attribute) corresponds to setting a face, the non-recommendation (using the style attribute) corresponds to setting display properties. > Some unsophisticated text formatters treated superscript as if it > were a font, but more sophisticated ones don't. I don't know where this is related to the question whether a face property `raise' would be useful. - Christoph