From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Wells Newsgroups: gmane.emacs.bugs Subject: Re: Emacs Lisp manual issues regarding overlays, display properties, margins, etc. Date: Sat, 29 Sep 2007 17:38:55 +0100 Message-ID: <863awxxw80.fsf@macs.hw.ac.uk> References: <86d4w2y1ej.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: quoted-printable X-Trace: sea.gmane.org 1191083955 10797 80.91.229.12 (29 Sep 2007 16:39:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Sep 2007 16:39:15 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 29 18:39:11 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 1IbfLO-0000ue-FV for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Sep 2007 18:39:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IbfLK-0004pp-Ad for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Sep 2007 12:39:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IbfLH-0004m6-PV for bug-gnu-emacs@gnu.org; Sat, 29 Sep 2007 12:38:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IbfLG-0004hr-0j for bug-gnu-emacs@gnu.org; Sat, 29 Sep 2007 12:38:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IbfLF-0004hf-NW for bug-gnu-emacs@gnu.org; Sat, 29 Sep 2007 12:38:57 -0400 Original-Received: from izanami.macs.hw.ac.uk ([137.195.13.6]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IbfLF-0002FV-3f for bug-gnu-emacs@gnu.org; Sat, 29 Sep 2007 12:38:57 -0400 Original-Received: from lxultra1.macs.hw.ac.uk ([137.195.27.173]:51768 helo=127.0.0.1) by izanami.macs.hw.ac.uk with smtp (Exim 4.51) id 1IbfLD-00022c-TO for bug-gnu-emacs@gnu.org; Sat, 29 Sep 2007 17:38:55 +0100 Original-Received: (nullmailer pid 365 invoked by uid 1001); Sat, 29 Sep 2007 16:38:56 -0000 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) 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:16661 Archived-At: Johan Bockg=C3=A5rd writes: >Joe Wells writes: > >> Issue 1: The =E2=80=9Cheight=E2=80=9D display specification seems not t= o work at >> all. For example, in the following the B is not larger: >> >> (test-overlays >> (insert "ABC") >> (let ((o (make-overlay 2 3))) >> (overlay-put o 'display '(height 2)))) > > This worked for me. For me, running all of the above in a fresh =E2=80=9Cemacs -Q=E2=80=9D, all= three characters (A, B, and C) get displayed with font =E2=80=9C-Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO8859-1=E2= =80=9D. I used =E2=80=9CC-u C-x =3D=E2=80=9D to find out what font is used. By the way, I have no font settings for Emacs in my X resources. Have you tried the example in a fresh =E2=80=9Cemacs -Q=E2=80=9D? If so, w= hat fonts do the 3 characters get displayed with? Can you try it also with no X resource font settings for Emacs? >> Issue 6: The =E2=80=9COverlay Properties=E2=80=9D manual node says this= on >> overlay priorities: [...] > >> So what is the relative priority of an overlay which has a >> nonnegative integer value of its priority property, and one which >> has no priority property at all? It seems that nil is below 0: >> >> (test-overlays >> (insert "ABC") >> (let ((o1 (make-overlay 2 3)) >> (o2 (make-overlay 2 3))) >> (overlay-put o1 'display "123") >> (overlay-put o2 'priority 0) >> (overlay-put o2 'display "abc"))) > > Both overlays have priority 0. o2 takes precedence because it is on top > (you get the same result without the second last line). Can this please be documented? Both that no =E2=80=9Cpriority=E2=80=9D pro= perty (or a value of nil) is equivalent to a value of 0, and how priority works for overlays with the same priority. --=20 Joe P.S. Here is the test-overlays macro again: (defmacro test-overlays (&rest body) `(let ((buf (get-buffer-create "xyzzy"))) (with-current-buffer buf (display-buffer buf) (erase-buffer) (dolist (o (overlays-in (point-min) (point-max))) (delete-overlay o)) ,@body)))