bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: documentation of overlays-at is confusing


From: Johan Bockgård
Subject: Re: documentation of overlays-at is confusing
Date: Wed, 19 Sep 2007 02:07:56 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

Joe Wells <jbw@macs.hw.ac.uk> writes:

> The documentation of the overlays-at function says:
>
>   Return a list of the overlays that contain position pos.
>
> This is unclear on what is meant by “contain position pos”.  A
> straightforward reading of this would lead one to believe that an
> overlay that begins or ends at pos would “contain pos”.
>
> However, it seems that the actual behavior is that it returns overlays
> which contain the _character_at_pos_.

FWIW, the manual is clear on this point

   -- Function: overlays-at pos
       This function returns a list of all the overlays that cover the
       character at position POS in the current buffer.  The list is in
       no particular order.  An overlay contains position POS if it
       begins at or before POS, and ends after POS.
       [...]

-- 
Johan Bockgård





reply via email to

[Prev in Thread] Current Thread [Next in Thread]