<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emacs/test, branch scratch/so-long</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>Make `global-so-long-mode' use `buffer-line-statistics'</title>
<updated>2021-07-30T03:56:04+00:00</updated>
<author>
<name>Phil Sainty</name>
</author>
<published>2021-01-16T12:25:13+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=3d685baa92732df866412873f4485b6315c086eb'/>
<id>3d685baa92732df866412873f4485b6315c086eb</id>
<content type='text'>
* lisp/so-long.el: (so-long-statistics-excessive-p): New predicate
function using `buffer-line-statistics'.
(so-long-predicate): Use `so-long-statistics-excessive-p' by default.

* etc/NEWS: Describe changes.

* test/lisp/so-long-tests/so-long-tests-helpers.el:
* test/lisp/so-long-tests/so-long-tests.el: Update tests.
Also improve the existing `so-long-tests-predicate' tests.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/so-long.el: (so-long-statistics-excessive-p): New predicate
function using `buffer-line-statistics'.
(so-long-predicate): Use `so-long-statistics-excessive-p' by default.

* etc/NEWS: Describe changes.

* test/lisp/so-long-tests/so-long-tests-helpers.el:
* test/lisp/so-long-tests/so-long-tests.el: Update tests.
Also improve the existing `so-long-tests-predicate' tests.
</pre>
</div>
</content>
</entry>
<entry>
<title>Support 'preserved' variables and minor modes in `so-long-mode'</title>
<updated>2021-07-30T01:49:48+00:00</updated>
<author>
<name>Phil Sainty</name>
</author>
<published>2021-01-10T02:02:58+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=3a109aaa2972026d245444ddc4c86cbea2fd4c30'/>
<id>3a109aaa2972026d245444ddc4c86cbea2fd4c30</id>
<content type='text'>
The default values support preserving the state of `view-mode' when
switching to (and reverting from) `so-long-mode' (bug#45084).

* lisp/so-long.el (so-long-mode-preserved-variables)
(so-long-mode-preserved-minor-modes): New user options.
(so-long-mode-maintain-preserved-variables)
(so-long-mode-maintain-preserved-minor-modes): New functions.
(so-long-remember-all, so-long-after-change-major-mode)
(so-long-mode-revert): Use them.

* etc/NEWS: Describe changes.

* test/lisp/so-long-tests/so-long-tests-helpers.el:
* test/lisp/so-long-tests/so-long-tests.el: Update tests.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The default values support preserving the state of `view-mode' when
switching to (and reverting from) `so-long-mode' (bug#45084).

* lisp/so-long.el (so-long-mode-preserved-variables)
(so-long-mode-preserved-minor-modes): New user options.
(so-long-mode-maintain-preserved-variables)
(so-long-mode-maintain-preserved-minor-modes): New functions.
(so-long-remember-all, so-long-after-change-major-mode)
(so-long-mode-revert): Use them.

* etc/NEWS: Describe changes.

* test/lisp/so-long-tests/so-long-tests-helpers.el:
* test/lisp/so-long-tests/so-long-tests.el: Update tests.
</pre>
</div>
</content>
</entry>
<entry>
<title>; so-long-tests.el: Suppress expected warnings</title>
<updated>2021-07-30T01:45:01+00:00</updated>
<author>
<name>Phil Sainty</name>
</author>
<published>2021-03-20T08:48:18+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=cf5ef99d90a187eba7b3b33349e7a5a605ac35c7'/>
<id>cf5ef99d90a187eba7b3b33349e7a5a605ac35c7</id>
<content type='text'>
* test/lisp/so-long-tests/so-long-tests.el
(so-long-tests-invisible-buffer-function): Suppress warning about
obsolete function `run-window-configuration-change-hook', as we are
using it intentionally (see the preceding code comments and URL for
details).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* test/lisp/so-long-tests/so-long-tests.el
(so-long-tests-invisible-buffer-function): Suppress warning about
obsolete function `run-window-configuration-change-hook', as we are
using it intentionally (see the preceding code comments and URL for
details).
</pre>
</div>
</content>
</entry>
<entry>
<title>; * lisp/so-long.el: Minor bug fixes</title>
<updated>2021-07-30T01:45:01+00:00</updated>
<author>
<name>Phil Sainty</name>
</author>
<published>2021-01-10T02:20:51+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=0e0d677db07d1b9415c25b245f547481e49c7fd9'/>
<id>0e0d677db07d1b9415c25b245f547481e49c7fd9</id>
<content type='text'>
(so-long-disable-minor-modes): Don't call the mode function to disable
the mode unless it was actually enabled.

(so-long-restore-minor-modes, so-long-restore-variables): Use the
remembered list values, which might be different to the defaults.

Also comments, and spelling consistency changes for the so-long tests
(a fixup for commit 83bc4ad369 which had only addressed so-long.el,
and not the test files).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(so-long-disable-minor-modes): Don't call the mode function to disable
the mode unless it was actually enabled.

(so-long-restore-minor-modes, so-long-restore-variables): Use the
remembered list values, which might be different to the defaults.

Also comments, and spelling consistency changes for the so-long tests
(a fixup for commit 83bc4ad369 which had only addressed so-long.el,
and not the test files).
</pre>
</div>
</content>
</entry>
<entry>
<title>Mark all autorevert tests as unstable on Cygwin (bug#49665)</title>
<updated>2021-07-27T17:41:57+00:00</updated>
<author>
<name>Michael Albinus</name>
</author>
<published>2021-07-27T17:41:57+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=35610b870e8581d80963211e4ff983174a070d00'/>
<id>35610b870e8581d80963211e4ff983174a070d00</id>
<content type='text'>
* test/lisp/autorevert-tests.el: Mark all tests as unstable on
Cygwin (bug#49665).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* test/lisp/autorevert-tests.el: Mark all tests as unstable on
Cygwin (bug#49665).
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix mistake in switch-case generation of `null` (bug#49746)</title>
<updated>2021-07-27T15:32:23+00:00</updated>
<author>
<name>Mattias Engdegård</name>
</author>
<published>2021-07-27T15:26:26+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=949dd41c31dab69f7a5067bba324c28bb2cfbf8e'/>
<id>949dd41c31dab69f7a5067bba324c28bb2cfbf8e</id>
<content type='text'>
Reported by Gregor Zattler.

* lisp/emacs-lisp/bytecomp.el (byte-compile--cond-switch-prefix):
Be more careful in the selection of equality.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases):
Add test case.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reported by Gregor Zattler.

* lisp/emacs-lisp/bytecomp.el (byte-compile--cond-switch-prefix):
Be more careful in the selection of equality.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases):
Add test case.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix extended attributes for Tramp's sudoedit method (bug#49724)</title>
<updated>2021-07-25T12:14:49+00:00</updated>
<author>
<name>Michael Albinus</name>
</author>
<published>2021-07-25T12:14:49+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=41e62df73af373f30a89281b25be0344b14cf98b'/>
<id>41e62df73af373f30a89281b25be0344b14cf98b</id>
<content type='text'>
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file):
Remove compat code for `{set-}file-extended-attributes'.
(tramp-sudoedit-handle-write-region): Handle extended attributes.
(Bug#49724)

* test/lisp/net/tramp-tests.el (tramp-test25-file-selinux):
Fix test for sudoedit method.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file):
Remove compat code for `{set-}file-extended-attributes'.
(tramp-sudoedit-handle-write-region): Handle extended attributes.
(Bug#49724)

* test/lisp/net/tramp-tests.el (tramp-test25-file-selinux):
Fix test for sudoedit method.
</pre>
</div>
</content>
</entry>
<entry>
<title>Keep track of match extents in occur-mode (bug#39121)</title>
<updated>2021-07-25T08:29:09+00:00</updated>
<author>
<name>Mattias Engdegård</name>
</author>
<published>2021-07-24T14:32:11+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=c52e26df30d5679dc2b9b34853a3c2db062524ac'/>
<id>c52e26df30d5679dc2b9b34853a3c2db062524ac</id>
<content type='text'>
Use the `occur-target` text property to keep track of the extents of
all matches on each line instead of just the start of the first match.
Doing so allows us to highlight all matches when jumping to a matching
line instead of just the first one, and it works in a more principled
way.  It also removes compatibility problems that were introduced with
occur-highlight-regexp.

For compatibility with code that populate their own occur-mode
buffers, we still accept `occur-target` properties with a single
marker as value.

* lisp/replace.el (occur-highlight-regexp, occur-highlight-overlay):
Remove.
(occur-highlight-overlays): New.
(occur--targets-start): New.
* lisp/replace.el (occur-after-change-function):
(occur-mode-find-occurrence): Replace with...
(occur-mode--find-occurrences): ...this function that returns the
whole `occur-target` property value.
(occur-mode-goto-occurrence, occur-mode-goto-occurrence-other-window)
(occur-goto-locus-delete-o, occur-mode-display-occurrence)
(occur-engine): Adjust to new property format.
(occur--highlight-occurrence): Replace with...
(occur--highlight-occurrences): ...this function that takes
the `occur-target` property value as argument.
(occur-1): Don't use `occur-highlight-regexp`.
* test/lisp/replace-tests.el (occur-highlight-occurrence):
Adapt to new property format.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use the `occur-target` text property to keep track of the extents of
all matches on each line instead of just the start of the first match.
Doing so allows us to highlight all matches when jumping to a matching
line instead of just the first one, and it works in a more principled
way.  It also removes compatibility problems that were introduced with
occur-highlight-regexp.

For compatibility with code that populate their own occur-mode
buffers, we still accept `occur-target` properties with a single
marker as value.

* lisp/replace.el (occur-highlight-regexp, occur-highlight-overlay):
Remove.
(occur-highlight-overlays): New.
(occur--targets-start): New.
* lisp/replace.el (occur-after-change-function):
(occur-mode-find-occurrence): Replace with...
(occur-mode--find-occurrences): ...this function that returns the
whole `occur-target` property value.
(occur-mode-goto-occurrence, occur-mode-goto-occurrence-other-window)
(occur-goto-locus-delete-o, occur-mode-display-occurrence)
(occur-engine): Adjust to new property format.
(occur--highlight-occurrence): Replace with...
(occur--highlight-occurrences): ...this function that takes
the `occur-target` property value as argument.
(occur-1): Don't use `occur-highlight-regexp`.
* test/lisp/replace-tests.el (occur-highlight-occurrence):
Adapt to new property format.
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename directory-append to file-name-concat</title>
<updated>2021-07-25T06:54:20+00:00</updated>
<author>
<name>Lars Ingebrigtsen</name>
</author>
<published>2021-07-25T06:54:20+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=f04f8126f016b43c45d432bf353ba2a0ac8f7d96'/>
<id>f04f8126f016b43c45d432bf353ba2a0ac8f7d96</id>
<content type='text'>
* src/fileio.c (Ffile_name_concat):
* lisp/files.el (move-file-to-trash):
* lisp/emacs-lisp/shortdoc.el (file-name):
* doc/lispref/files.texi (Directory Names): Rename
`directory-append' to `file-name-concat'.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/fileio.c (Ffile_name_concat):
* lisp/files.el (move-file-to-trash):
* lisp/emacs-lisp/shortdoc.el (file-name):
* doc/lispref/files.texi (Directory Names): Rename
`directory-append' to `file-name-concat'.
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow empty elements in directory-append</title>
<updated>2021-07-25T06:00:50+00:00</updated>
<author>
<name>Lars Ingebrigtsen</name>
</author>
<published>2021-07-25T06:00:50+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=aa9cba658768aba4da1b74ffb33d9962ffff5756'/>
<id>aa9cba658768aba4da1b74ffb33d9962ffff5756</id>
<content type='text'>
* doc/lispref/files.texi (Directory Names): Document it.
* src/fileio.c (Fdirectory_append): Allow empty elements.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* doc/lispref/files.texi (Directory Names): Document it.
* src/fileio.c (Fdirectory_append): Allow empty elements.
</pre>
</div>
</content>
</entry>
</feed>
