<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emacs/test, branch feature/noverlay</title>
<subtitle>Emacs is the extensible, customizable, self-documenting real-time display editor. 
</subtitle>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/'/>
<entry>
<title>Add `get-pos-property' tests covering bug#58706</title>
<updated>2022-10-23T03:58:09+00:00</updated>
<author>
<name>Matt Armstrong</name>
</author>
<published>2022-10-23T03:46:30+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=555bc1f8b3ed8b02fb5acb013ed24073b0666585'/>
<id>555bc1f8b3ed8b02fb5acb013ed24073b0666585</id>
<content type='text'>
* test/src/buffer-tests.el (get-pos-property-overlay-beg): New test.
(get-pos-property-overlay-empty-rear-advance): ditto.
(get-pos-property-overlay-past-rear-advance): ditto.
(get-pos-property-overlay-at-narrowed-end): ditto.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* test/src/buffer-tests.el (get-pos-property-overlay-beg): New test.
(get-pos-property-overlay-empty-rear-advance): ditto.
(get-pos-property-overlay-past-rear-advance): ditto.
(get-pos-property-overlay-at-narrowed-end): ditto.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix a narrow-to-region vs. overlays-at bug</title>
<updated>2022-10-22T02:58:34+00:00</updated>
<author>
<name>Matt Armstrong</name>
</author>
<published>2022-10-22T02:45:13+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=f2a51774a934f29848c5796b46faa5e3b022c401'/>
<id>f2a51774a934f29848c5796b46faa5e3b022c401</id>
<content type='text'>
See bug#58703.

* src/buffer.c (overlays_in): Add a new TRAILING arg expressing the
behavior wanted by `overlays-at', namely to include all overlays
beginning at the POS passed to `overlays-at', even if POS is the end
of the narrowed region.  Pass true and the search range is extended to
ZV+1 if END is greater than ZV, just as is done for EMPTY.
(overlays_at): Pass 'true' for the new trailing arg.  At present this
is the only caller passing 'true'.
(mouse_face_overlay_overlaps): Pass 'false' for the new trailing arg.
(disable_line_numbers_overlay_at_eob): ditto.
(Foverlays_in): ditto.
* src/editfns.c (overlays_around): ditto.
* test/src/buffer-tests.el (sorted-overlays): Add a spot test for
this.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
See bug#58703.

* src/buffer.c (overlays_in): Add a new TRAILING arg expressing the
behavior wanted by `overlays-at', namely to include all overlays
beginning at the POS passed to `overlays-at', even if POS is the end
of the narrowed region.  Pass true and the search range is extended to
ZV+1 if END is greater than ZV, just as is done for EMPTY.
(overlays_at): Pass 'true' for the new trailing arg.  At present this
is the only caller passing 'true'.
(mouse_face_overlay_overlaps): Pass 'false' for the new trailing arg.
(disable_line_numbers_overlay_at_eob): ditto.
(Foverlays_in): ditto.
* src/editfns.c (overlays_around): ditto.
* test/src/buffer-tests.el (sorted-overlays): Add a spot test for
this.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix handling of overlays that begin at END in 'overlays_in'</title>
<updated>2022-10-21T23:19:56+00:00</updated>
<author>
<name>Matt Armstrong</name>
</author>
<published>2022-10-21T23:07:08+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=a2fde77b5cc15ec5a1c29ca72c97c806204818a9'/>
<id>a2fde77b5cc15ec5a1c29ca72c97c806204818a9</id>
<content type='text'>
When passed EMPTY, 'overlays_in' should return empty overlays at END.
It was doing so, but it was also returning any other overlay that
happened to begin at END.

bug#58672

* src/buffer.c (overlays_in): Don't return overlays at END unless they
are empty overlays.
(disable_line_numbers_overlay_at_eob): Pass 'false' instead of 'NULL'
for the bool 'empty' arg.
* test/src/buffer-tests.el (sorted-overlays-in): New helper function.
(test-overlays-in-empty-range): New test exhaustively covering these
edge conditions.
(test-overlays-in-empty-range-bug58672): Simple test for one case.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When passed EMPTY, 'overlays_in' should return empty overlays at END.
It was doing so, but it was also returning any other overlay that
happened to begin at END.

bug#58672

* src/buffer.c (overlays_in): Don't return overlays at END unless they
are empty overlays.
(disable_line_numbers_overlay_at_eob): Pass 'false' instead of 'NULL'
for the bool 'empty' arg.
* test/src/buffer-tests.el (sorted-overlays-in): New helper function.
(test-overlays-in-empty-range): New test exhaustively covering these
edge conditions.
(test-overlays-in-empty-range-bug58672): Simple test for one case.
</pre>
</div>
</content>
</entry>
<entry>
<title>src/textprop.c (get_char_property_and_overlay): Fix bug#58479</title>
<updated>2022-10-14T20:28:33+00:00</updated>
<author>
<name>Stefan Monnier</name>
</author>
<published>2022-10-14T20:28:33+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=b86505387480fed81629cbc81cef6b70098bd607'/>
<id>b86505387480fed81629cbc81cef6b70098bd607</id>
<content type='text'>
Correct `get-char-property` which failed to ignore empty overlays.

* src/textprop.c (get_char_property_and_overlay): Make sure the
overlay covers the character.
* test/src/buffer-tests.el (buffer-tests--overlay-bug58479): New test.
* src/buffer.h (buffer_has_overlays): Avoid `interval_tree_size`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Correct `get-char-property` which failed to ignore empty overlays.

* src/textprop.c (get_char_property_and_overlay): Make sure the
overlay covers the character.
* test/src/buffer-tests.el (buffer-tests--overlay-bug58479): New test.
* src/buffer.h (buffer_has_overlays): Avoid `interval_tree_size`.
</pre>
</div>
</content>
</entry>
<entry>
<title>; * test/src/buffer-tests.el: Remove unecessary `message' calls.</title>
<updated>2022-10-10T02:24:53+00:00</updated>
<author>
<name>Matt Armstrong</name>
</author>
<published>2022-10-09T17:12:32+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=246acbddbeb3e9a390fe78242259182af0c2cc18'/>
<id>246acbddbeb3e9a390fe78242259182af0c2cc18</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>; * test/src/buffer-tests.el (test-overlay-randomly): new test.</title>
<updated>2022-10-09T03:37:28+00:00</updated>
<author>
<name>Matt Armstrong</name>
</author>
<published>2022-10-08T16:28:29+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=92a0bf6ce2d2afe909d8a075ad9760eb003a8e73'/>
<id>92a0bf6ce2d2afe909d8a075ad9760eb003a8e73</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge 'master' into noverlay</title>
<updated>2022-09-25T20:15:16+00:00</updated>
<author>
<name>Stefan Monnier</name>
</author>
<published>2022-09-25T20:15:16+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=650c20f1ca4e07591a727e1cfcc74b3363d15985'/>
<id>650c20f1ca4e07591a727e1cfcc74b3363d15985</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>hideshow.el: Improve hs-toggle-hiding behavior</title>
<updated>2022-09-24T15:08:29+00:00</updated>
<author>
<name>kobarity</name>
</author>
<published>2022-09-19T04:43:33+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=2084f4ada38c3ebaaf77806f32a79073fc9f0bf4'/>
<id>2084f4ada38c3ebaaf77806f32a79073fc9f0bf4</id>
<content type='text'>
* lisp/progmodes/hideshow.el
(hs-find-block-beginning-match): New function to be used in
`hs-already-hidden-p'.
(hs-already-hidden-p): Add check if beginning of line is inside a
block.
(hs-toggle-hiding): Don't change to selected-window's buffer when
event arg is absent.

* test/lisp/progmodes/hideshow-tests.el
(hideshow-tests-with-temp-buffer-selected): New helper macro.
(hideshow-tests-make-event-at): New helper function.
(hideshow-already-hidden-p-1): New test.
(hideshow-toggle-hiding-1): New test.
(hideshow-mouse-toggle-hiding-1): New test (bug#52092).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/progmodes/hideshow.el
(hs-find-block-beginning-match): New function to be used in
`hs-already-hidden-p'.
(hs-already-hidden-p): Add check if beginning of line is inside a
block.
(hs-toggle-hiding): Don't change to selected-window's buffer when
event arg is absent.

* test/lisp/progmodes/hideshow-tests.el
(hideshow-tests-with-temp-buffer-selected): New helper macro.
(hideshow-tests-make-event-at): New helper function.
(hideshow-already-hidden-p-1): New test.
(hideshow-toggle-hiding-1): New test.
(hideshow-mouse-toggle-hiding-1): New test (bug#52092).
</pre>
</div>
</content>
</entry>
<entry>
<title>Move thumbs.el to lisp/obsolete</title>
<updated>2022-09-24T12:07:57+00:00</updated>
<author>
<name>Stefan Kangas</name>
</author>
<published>2022-09-24T11:18:38+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=4b537dd99f686e65e7ba0295eb157841e0d442e5'/>
<id>4b537dd99f686e65e7ba0295eb157841e0d442e5</id>
<content type='text'>
* lisp/thumbs.el:
* test/lisp/thumbs-tests.el: Move from here...
* lisp/obsolete/thumbs.el:
* test/lisp/obsolete/thumbs-tests.el: ...to here.  (Bug#57779)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/thumbs.el:
* test/lisp/thumbs-tests.el: Move from here...
* lisp/obsolete/thumbs.el:
* test/lisp/obsolete/thumbs-tests.el: ...to here.  (Bug#57779)
</pre>
</div>
</content>
</entry>
<entry>
<title>cconv.el: Fix interactive closure bug#51695</title>
<updated>2022-09-23T20:36:16+00:00</updated>
<author>
<name>Stefan Monnier</name>
</author>
<published>2022-09-23T20:36:16+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=c244d4af57deb96ce399c70c2781c54e14e1f0bd'/>
<id>c244d4af57deb96ce399c70c2781c54e14e1f0bd</id>
<content type='text'>
Make cconv.el detect when a closure's interactive form needs to
capture variables from the context and tweak the code accordingly
if so.

* lisp/emacs-lisp/cconv.el (cconv--interactive-form-funs): New var.
(cconv-convert): Handle the case where the interactive form captures
vars from the surrounding context.  Remove left over handling of
`declare` which was already removed from the cconv-analyze` phase.
(cconv-analyze-form): Adjust analysis of interactive forms accordingly.

* lisp/emacs-lisp/oclosure.el (cconv--interactive-helper): New type and
function.
* lisp/simple.el (function-documentation, oclosure-interactive-form):
Add methods for it.

* test/lisp/emacs-lisp/cconv-tests.el
(cconv-tests-interactive-closure-bug51695): New test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make cconv.el detect when a closure's interactive form needs to
capture variables from the context and tweak the code accordingly
if so.

* lisp/emacs-lisp/cconv.el (cconv--interactive-form-funs): New var.
(cconv-convert): Handle the case where the interactive form captures
vars from the surrounding context.  Remove left over handling of
`declare` which was already removed from the cconv-analyze` phase.
(cconv-analyze-form): Adjust analysis of interactive forms accordingly.

* lisp/emacs-lisp/oclosure.el (cconv--interactive-helper): New type and
function.
* lisp/simple.el (function-documentation, oclosure-interactive-form):
Add methods for it.

* test/lisp/emacs-lisp/cconv-tests.el
(cconv-tests-interactive-closure-bug51695): New test.
</pre>
</div>
</content>
</entry>
</feed>
