diff options
| author | Nicolas Petton | 2017-07-07 21:21:55 +0200 |
|---|---|---|
| committer | Nicolas Petton | 2017-07-11 10:07:16 +0200 |
| commit | 0bece6c6815cc59e181817a2765a4ea752f34f56 (patch) | |
| tree | 856363b2defed20c97a25c29a7739bce9a6bd9cb /etc | |
| parent | 689c5c20d1174e95be50e674d05632545eb4b9c5 (diff) | |
| download | emacs-0bece6c6815cc59e181817a2765a4ea752f34f56.tar.gz emacs-0bece6c6815cc59e181817a2765a4ea752f34f56.zip | |
Add an optional testfn parameter to assoc
* src/fns.c (assoc): New optional testfn parameter used for comparison
when provided.
* test/src/fns-tests.el (test-assoc-testfn): Add tests for the new
'testfn' parameter.
* src/buffer.c:
* src/coding.c:
* src/dbusbind.c:
* src/font.c:
* src/fontset.c:
* src/gfilenotify.c:
* src/image.c:
* src/keymap.c:
* src/process.c:
* src/w32fns.c:
* src/w32font.c:
* src/w32notify.c:
* src/w32term.c:
* src/xdisp.c:
* src/xfont.c: Add a third argument to Fassoc calls.
* etc/NEWS:
* doc/lispref/lists.texi: Document the new 'testfn' parameter.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -100,6 +100,11 @@ required capabilities are found in terminfo. See the FAQ node | |||
| 100 | 100 | ||
| 101 | * Changes in Emacs 26.1 | 101 | * Changes in Emacs 26.1 |
| 102 | 102 | ||
| 103 | +++ | ||
| 104 | ** The function 'assoc' now takes an optional third argument 'testfn'. | ||
| 105 | This argument, when non-nil, is used for comparison instead of | ||
| 106 | 'equal'. | ||
| 107 | |||
| 103 | ** The variable 'emacs-version' no longer includes the build number. | 108 | ** The variable 'emacs-version' no longer includes the build number. |
| 104 | This is now stored separately in a new variable, 'emacs-build-number'. | 109 | This is now stored separately in a new variable, 'emacs-build-number'. |
| 105 | 110 | ||