unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Joe Wells <jbw@macs.hw.ac.uk>
To: bug-gnu-emacs@gnu.org
Subject: Re: Emacs Lisp manual issues regarding overlays, display properties, margins, etc.
Date: Sat, 29 Sep 2007 17:38:55 +0100	[thread overview]
Message-ID: <863awxxw80.fsf@macs.hw.ac.uk> (raw)
In-Reply-To: mailman.1468.1191066364.18990.bug-gnu-emacs@gnu.org

Johan Bockgård <bojohan+news@dd.chalmers.se> writes:
>Joe Wells <jbw@macs.hw.ac.uk> writes:
>
>> Issue 1:  The “height” display specification seems not to 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 “emacs -Q”, all three
characters (A, B, and C) get displayed with font
“-Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO8859-1”.  I
used “C-u C-x =” 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 “emacs -Q”?  If so, what fonts
do the 3 characters get displayed with?  Can you try it also with no X
resource font settings for Emacs?

>> Issue 6:  The “Overlay Properties” 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 “priority” property (or a
value of nil) is equivalent to a value of 0, and how priority works
for overlays with the same priority.

-- 
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)))




  parent reply	other threads:[~2007-09-29 16:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-28 20:34 Emacs Lisp manual issues regarding overlays, display properties, margins, etc Joe Wells
2007-09-29 11:44 ` Johan Bockgård
     [not found] ` <mailman.1468.1191066364.18990.bug-gnu-emacs@gnu.org>
2007-09-29 16:38   ` Joe Wells [this message]
2007-10-01 13:47     ` Johan Bockgård
2007-10-01 17:40     ` Richard Stallman
2007-10-01 17:57       ` Joe Wells

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=863awxxw80.fsf@macs.hw.ac.uk \
    --to=jbw@macs.hw.ac.uk \
    --cc=bug-gnu-emacs@gnu.org \
    /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).