unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* zero length overlays not found with overlays-at
@ 2007-11-22 23:00 Lennart Borgman (gmail)
  2007-11-23  0:19 ` Johan Bockgård
  0 siblings, 1 reply; 4+ messages in thread
From: Lennart Borgman (gmail) @ 2007-11-22 23:00 UTC (permalink / raw)
  To: Emacs Bugs

This shows the bug:

(defun test-0-ovl ()
   (remove-overlays)
   (make-overlay (point) (point) (current-buffer) t t)
   (message "point=%s, -at=%S, -in=%S"
            (point)
            (overlays-at (point))
            (overlays-in (point) (1+ (point)))
            ))

Is this bug still there?

In GNU Emacs 22.1.50.1 (i386-mingw-nt5.1.2600)
  of 2007-07-04




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: zero length overlays not found with overlays-at
  2007-11-22 23:00 zero length overlays not found with overlays-at Lennart Borgman (gmail)
@ 2007-11-23  0:19 ` Johan Bockgård
  2007-11-23  0:29   ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 4+ messages in thread
From: Johan Bockgård @ 2007-11-23  0:19 UTC (permalink / raw)
  To: bug-gnu-emacs

"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:

> This shows the bug:
>
> (defun test-0-ovl ()
>   (remove-overlays)
>   (make-overlay (point) (point) (current-buffer) t t)
>   (message "point=%s, -at=%S, -in=%S"
>            (point)
>            (overlays-at (point))
>            (overlays-in (point) (1+ (point)))
>            ))
>
> Is this bug still there?

It's the correct behavior.  The doc string for overlays-at (now) says

    Return a list of the overlays that contain the character at POS.

-- 
Johan Bockgård





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: zero length overlays not found with overlays-at
  2007-11-23  0:19 ` Johan Bockgård
@ 2007-11-23  0:29   ` Lennart Borgman (gmail)
  2007-11-23 10:45     ` Johan Bockgård
  0 siblings, 1 reply; 4+ messages in thread
From: Lennart Borgman (gmail) @ 2007-11-23  0:29 UTC (permalink / raw)
  To: bug-gnu-emacs

Johan Bockgård wrote:
> "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
> 
>> This shows the bug:
>>
>> (defun test-0-ovl ()
>>   (remove-overlays)
>>   (make-overlay (point) (point) (current-buffer) t t)
>>   (message "point=%s, -at=%S, -in=%S"
>>            (point)
>>            (overlays-at (point))
>>            (overlays-in (point) (1+ (point)))
>>            ))
>>
>> Is this bug still there?
> 
> It's the correct behavior.  The doc string for overlays-at (now) says
> 
>     Return a list of the overlays that contain the character at POS.

Thanks. I guess there is a good reason for changing the doc string, but 
this reminds me of a big company ...

In any case this is ok.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: zero length overlays not found with overlays-at
  2007-11-23  0:29   ` Lennart Borgman (gmail)
@ 2007-11-23 10:45     ` Johan Bockgård
  0 siblings, 0 replies; 4+ messages in thread
From: Johan Bockgård @ 2007-11-23 10:45 UTC (permalink / raw)
  To: bug-gnu-emacs

"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:

> Thanks. I guess there is a good reason for changing the doc string

It was changed last month. The manual has said "character at" for eight
years already.

-- 
Johan Bockgård





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-11-23 10:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-22 23:00 zero length overlays not found with overlays-at Lennart Borgman (gmail)
2007-11-23  0:19 ` Johan Bockgård
2007-11-23  0:29   ` Lennart Borgman (gmail)
2007-11-23 10:45     ` Johan Bockgård

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