<feed xmlns='http://www.w3.org/2005/Atom'>
<title>elpa.git, branch scratch/greader</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/elpa.git/'/>
<entry>
<title>Miscellanous simplifications and "tightening"</title>
<updated>2023-09-15T16:57:50+00:00</updated>
<author>
<name>Stefan Monnier</name>
<email>monnier@iro.umontreal.ca</email>
</author>
<published>2023-09-15T16:56:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/elpa.git/commit/?id=6fe3129a11f32078f5622e1321e9e5021eb0f5cc'/>
<id>6fe3129a11f32078f5622e1321e9e5021eb0f5cc</id>
<content type='text'>
Many of the simplifications result from hoisting `setq`
out of ifs or avoiding `setq` altogether.
Among the tightening, don't treat hooks as mere "variables holding
a list of functions", since they're a bit more complex than that
(e.g. can contain a function rather than a list, can have both
global and buffer-local functions at the same time, ...).

* greader.el (greader--call-functions-after-get-of-sentence):
Use `run-hook-wrapped` and simplify.
(greader--call-before-finish-functions):
Use `run-hook-with-args-until-success`.
(greader-change-backend): Consolidate the `seq-local`s outside of
the ifs.  Use (cadr (memq ...)) to find the "next" item instead of
going through index numbers.
(greader-read-asynchronous): Simplify the computation of `txt` and
`backend` by avoiding `setq`.
(greader-action): Assume `greader-backend-action` is non-nil.
Use `ignore` rather than `nil` if you want a backend that does
nothing :-)
(greader-set-language): Simplify by avoiding `setq`.
(greader-timer-flag-p, greader-sentence-needs-dehyphenation): η-reduce.
(greader-compile-mode): Don't trust the `member` test
since hooks aren't just "normal var holding a list".

* greader-speechd.el (greader-speechd-set-punctuation): Simplify.
Signal an error when `punct` is nil instead of returning
`greader-speechd-punctuation` without a preceding "-m".

* greader-mac.el: Add missing `Code:` header.
(greader-mac-set-voice): Simplify.
(greader-mac-forward-sentence): Use `move` arg of `re-search-forward`.
(greader-mac-get-sentence): Use `greader-mac-forward-sentence`
and eliminate dummy initialization of `sentence-start` that's
immediately overwritten by something else.
(greader--mac-get-voices): `beginning-of-buffer` is "interactive-only".
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Many of the simplifications result from hoisting `setq`
out of ifs or avoiding `setq` altogether.
Among the tightening, don't treat hooks as mere "variables holding
a list of functions", since they're a bit more complex than that
(e.g. can contain a function rather than a list, can have both
global and buffer-local functions at the same time, ...).

* greader.el (greader--call-functions-after-get-of-sentence):
Use `run-hook-wrapped` and simplify.
(greader--call-before-finish-functions):
Use `run-hook-with-args-until-success`.
(greader-change-backend): Consolidate the `seq-local`s outside of
the ifs.  Use (cadr (memq ...)) to find the "next" item instead of
going through index numbers.
(greader-read-asynchronous): Simplify the computation of `txt` and
`backend` by avoiding `setq`.
(greader-action): Assume `greader-backend-action` is non-nil.
Use `ignore` rather than `nil` if you want a backend that does
nothing :-)
(greader-set-language): Simplify by avoiding `setq`.
(greader-timer-flag-p, greader-sentence-needs-dehyphenation): η-reduce.
(greader-compile-mode): Don't trust the `member` test
since hooks aren't just "normal var holding a list".

* greader-speechd.el (greader-speechd-set-punctuation): Simplify.
Signal an error when `punct` is nil instead of returning
`greader-speechd-punctuation` without a preceding "-m".

* greader-mac.el: Add missing `Code:` header.
(greader-mac-set-voice): Simplify.
(greader-mac-forward-sentence): Use `move` arg of `re-search-forward`.
(greader-mac-get-sentence): Use `greader-mac-forward-sentence`
and eliminate dummy initialization of `sentence-start` that's
immediately overwritten by something else.
(greader--mac-get-voices): `beginning-of-buffer` is "interactive-only".
</pre>
</div>
</content>
</entry>
<entry>
<title>* greader.el: Improve some of the docstrings</title>
<updated>2023-09-15T16:57:50+00:00</updated>
<author>
<name>Stefan Monnier</name>
<email>monnier@iro.umontreal.ca</email>
</author>
<published>2023-09-15T16:36:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/elpa.git/commit/?id=dff6b60acb7456422f5e32e2c9a36fda8f077267'/>
<id>dff6b60acb7456422f5e32e2c9a36fda8f077267</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>* greader.el: Prefer #' to quote function names</title>
<updated>2023-09-15T16:57:50+00:00</updated>
<author>
<name>Stefan Monnier</name>
<email>monnier@iro.umontreal.ca</email>
</author>
<published>2023-09-15T16:31:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/elpa.git/commit/?id=7ae215c13fe441fe196a31699d710d7bb2a625d9'/>
<id>7ae215c13fe441fe196a31699d710d7bb2a625d9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>* greader.el: Fix hook naming convention</title>
<updated>2023-09-15T16:57:50+00:00</updated>
<author>
<name>Stefan Monnier</name>
<email>monnier@iro.umontreal.ca</email>
</author>
<published>2023-09-15T16:25:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/elpa.git/commit/?id=08158a459b9a67c97ca9500abb015716f599029a'/>
<id>08158a459b9a67c97ca9500abb015716f599029a</id>
<content type='text'>
Normal hooks are those run with plain `run-hooks` (i.e. take no args
and return no value).  They use the `-hook` suffix.
Abnormal hooks use the `-functions` suffix.

(greader-before-get-sentence-hook): Rename from
`greader-before-get-sentence-functions`.
(greader-before-finish-functions): Rename from
`greader-before-finish-hook`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Normal hooks are those run with plain `run-hooks` (i.e. take no args
and return no value).  They use the `-hook` suffix.
Abnormal hooks use the `-functions` suffix.

(greader-before-get-sentence-hook): Rename from
`greader-before-get-sentence-functions`.
(greader-before-finish-functions): Rename from
`greader-before-finish-hook`.
</pre>
</div>
</content>
</entry>
<entry>
<title>version 0.3.0</title>
<updated>2023-09-14T09:06:09+00:00</updated>
<author>
<name>Michelangelo Rodriguez</name>
<email>michelangelo.rodriguez@gmail.com</email>
</author>
<published>2023-09-14T09:06:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/elpa.git/commit/?id=230c54be6c82c4c7de6afa8ce04ec57d8c26d468'/>
<id>230c54be6c82c4c7de6afa8ce04ec57d8c26d468</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use of `greader-tts-stop instead of `greader-stop' to stop reading</title>
<updated>2023-09-14T08:28:07+00:00</updated>
<author>
<name>Michelangelo Rodriguez</name>
<email>michelangelo.rodriguez@gmail.com</email>
</author>
<published>2023-09-14T08:28:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/elpa.git/commit/?id=15e4d552774f6851bfd274ff3fd163d3cd1d8f08'/>
<id>15e4d552774f6851bfd274ff3fd163d3cd1d8f08</id>
<content type='text'>
internally.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
internally.
</pre>
</div>
</content>
</entry>
<entry>
<title>greader now manages regions.</title>
<updated>2023-09-14T08:25:52+00:00</updated>
<author>
<name>Michelangelo Rodriguez</name>
<email>michelangelo.rodriguez@gmail.com</email>
</author>
<published>2023-09-14T04:01:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/elpa.git/commit/?id=a9066ce745b83aba491ea3709267f839fcf6c3b9'/>
<id>a9066ce745b83aba491ea3709267f839fcf6c3b9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>More work on last commit.</title>
<updated>2023-09-13T03:10:11+00:00</updated>
<author>
<name>Michelangelo Rodriguez</name>
<email>michelangelo.rodriguez@gmail.com</email>
</author>
<published>2023-09-10T05:03:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/elpa.git/commit/?id=dd528739b9bc828b31fe0edf3ce3d671fe9c2d55'/>
<id>dd528739b9bc828b31fe0edf3ce3d671fe9c2d55</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>greader-espeak function autoload.</title>
<updated>2023-09-10T04:44:43+00:00</updated>
<author>
<name>Michelangelo Rodriguez</name>
<email>michelangelo.rodriguez@gmail.com</email>
</author>
<published>2023-09-10T04:44:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/elpa.git/commit/?id=7c7850b9cb3166aea1b5a220c9ecdd54753d4427'/>
<id>7c7850b9cb3166aea1b5a220c9ecdd54753d4427</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>0.2</title>
<updated>2023-09-09T12:25:44+00:00</updated>
<author>
<name>Michelangelo Rodriguez</name>
<email>michelangelo.rodriguez@gmail.com</email>
</author>
<published>2023-09-09T12:25:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/elpa.git/commit/?id=c7de1dea4edd0a3f2ec571889746975dfaa67efb'/>
<id>c7de1dea4edd0a3f2ec571889746975dfaa67efb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
