1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-27 07:41:28 -08:00
emacs/etc
Stefan Monnier 806759dc0a (pcase): New _ syntax in pred/app functions
The current syntax for functions in `app` and `pred` patterns
allows a shorthand (F ARGS) where the object being matched is
added as an extra last argument.  This is nice for things like
(pred (< 5)) but sometimes the object needs to be at
another position.
Until now you had to use (pred (lambda (x) (memq x my-list)))
or (pred (pcase--flip memq my-list)) in those cases.
So, introduce a new shorthand where `_` can be used to indicate
where the object should be passed: (pred (memq _ my-list))

* lisp/emacs-lisp/pcase.el (pcase--split-pred): Document new syntax
for pred/app functions.
(pcase--funcall): Support new syntax.
(pcase--flip): Declare obsolete.
(pcase--u1, \`): Use `_` instead.
(pcase--split-pred): Adjust accordingly.

* doc/lispref/control.texi (pcase Macro): Document new syntax
for pred/app functions.

* lisp/progmodes/opascal.el (pcase-defmacro):
* lisp/emacs-lisp/seq.el (seq--make-pcase-bindings):
* lisp/emacs-lisp/eieio.el (eieio):
* lisp/emacs-lisp/cl-macs.el (cl-struct, cl-type):
Use _ instead of `pcase--flip`.
(cl--pcase-mutually-exclusive-p): Adjust accordingly.

* lisp/emacs-lisp/map.el (map--pcase-map-elt): Declare obsolete.
(map--make-pcase-bindings): Use `_` instead.
2024-02-11 22:00:44 -05:00
..
charsets ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
e
forms ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
gnus
images ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
nxml
org ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
refcards Merge from origin/emacs-29 2024-01-02 10:19:48 +08:00
schema ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
srecode ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
themes ; * etc/themes/manoj-dark-theme.el (manoj-dark): Fix :box faces. 2024-01-03 19:21:56 +02:00
tutorials Update Polish translation of tutorial 2024-01-20 09:18:27 +02:00
AUTHORS ; Regenerate lisp/ldefs-boot.el and etc/AUTHORS for 29.2. 2024-01-18 05:17:44 -05:00
CALC-NEWS Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
ChangeLog.1 Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
compilation.txt Make Compilation mode recognize Lua errors 2024-01-10 14:48:00 +01:00
COPYING
DEBUG ; * etc/DEBUG: Add a blurb about disabling ASLR on macOS. 2024-01-26 21:02:10 +02:00
DEVEL.HUMOR
DISTRIB ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
edt-user.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
EGLOT-NEWS Eglot: bump to 1.17 2024-01-25 12:20:27 +00:00
emacs-buffer.gdb ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
emacs-mail.desktop
emacs.desktop
emacs.icon
emacs.metainfo.xml ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
emacs.service
emacs_lldb.py Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
emacsclient-mail.desktop Add 'server-eval-args-left' to server.el 2023-10-29 14:10:23 +02:00
emacsclient.desktop Make emacsclient handle org-protocol:// links 2023-09-18 12:54:22 +02:00
enriched.txt ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
ERC-NEWS Fix local variable persistence in erc-stamp 2024-02-02 17:07:14 -08:00
ETAGS.EBNF ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
ETAGS.README ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
future-bug
gnus-tut.txt ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
grep.txt ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
HELLO ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
HISTORY * Update etc/HISTORY and ChangeLog.4 for 29.2 release. 2024-01-18 04:40:34 -05:00
JOKES
MACHINES Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
MH-E-NEWS ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
NEWS (pcase): New _ syntax in pred/app functions 2024-02-11 22:00:44 -05:00
NEWS.1-17 ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
NEWS.18 ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
NEWS.19 ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
NEWS.20 Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
NEWS.21 Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
NEWS.22 Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
NEWS.23 Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
NEWS.24 Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
NEWS.25 ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
NEWS.26 Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
NEWS.27 ; Delete pre-release remainder in NEWS.27 2024-01-19 00:40:12 +01:00
NEWS.28 ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
NEWS.29 ; Merge NEWS.29. 2024-01-20 06:40:54 -05:00
NEXTSTEP ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
NXML-NEWS ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
ORG-NEWS ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
org.gnu.emacs.defaults.gschema.xml ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
package-keyring.gpg * etc/package-keyring.gpg: Update with new key 2022-12-28 12:19:02 -05:00
PROBLEMS Merge from origin/emacs-29 2024-02-10 05:07:56 -05:00
ps-prin0.ps ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
ps-prin1.ps ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
publicsuffix.txt Update publicsuffix.txt from upstream 2023-12-10 14:44:41 +01:00
README ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
rgb.txt Revert "Update etc/rgb.txt from X.Org upstream" 2023-10-16 08:56:53 +08:00
ses-example.ses ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
spook.lines
TERMS ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
TODO Merge from origin/emacs-29 2024-01-13 05:36:16 -05:00
w32-feature.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
yow.lines

This directory contains the architecture-independent files used by or
with Emacs.  This includes some text files of documentation for GNU
Emacs or of interest to Emacs users, and the file of dumped docstrings
for Emacs functions and variables.

COPYRIGHT AND LICENSE INFORMATION FOR IMAGE FILES

File: emacs.icon
  Author: Sun Microsystems, Inc
  Copyright (C) 1999, 2001-2024 Free Software Foundation, Inc.
  License: GNU General Public License version 3 or later (see COPYING)