]> git.eshelyaron.com Git - emacs.git/commit
Add conditional operator xor to subr.el
authorMattias Engdegård <mattiase@acm.org>
Wed, 31 Jul 2019 17:45:06 +0000 (19:45 +0200)
committerMattias Engdegård <mattiase@acm.org>
Tue, 6 Aug 2019 11:38:47 +0000 (13:38 +0200)
commitc676444a43e4634c1f98ec286b5bd9e46b23216b
tree8381c0ef5720a92b845808e8e885f6b5976ee0a1
parent1d8b5bc8dd543ada2f3c46436e43ea27faa3cd0e
Add conditional operator xor to subr.el

Suggested by Oleh Krehel and implemented by Basil Contovounesios in
the following thread:
https://lists.gnu.org/archive/html/emacs-devel/2019-07/msg00547.html

* lisp/array.el (xor): Move unused function from here...
* lisp/subr.el: ...to here, and improve.
* lisp/gnus/spam.el (spam-xor):
* lisp/play/5x5.el (5x5-xor):
* lisp/proced.el (proced-xor):
* lisp/progmodes/idlwave.el (idlwave-xor):
* lisp/vc/diff-mode.el (diff-xor): Define as obsolete aliases of,
and replace all uses with, xor.
* lisp/jsonrpc.el: Remove unused dependency on array.el.
* lisp/org/org.el (org-xor): Move from here...
* lisp/org/org-compat.el (org-xor): ...to here, as a compatibility
shim for xor.
* lisp/progmodes/idlw-shell.el (idlwave-shell-enable-all-bp):
* lisp/simple.el (exchange-point-and-mark):
* lisp/windmove.el (windmove-display-in-direction): Use xor.
* lisp/strokes.el (strokes-xor): Remove commented-out xor
implementation.

* doc/lispref/control.texi (Control Structures): Extend menu entry
for new combining condition.
(Combining Conditions):
* etc/NEWS (Lisp Changes): Document xor.

* test/lisp/subr-tests.el (subr-test-xor): New test.
17 files changed:
doc/lispref/control.texi
etc/NEWS
lisp/array.el
lisp/gnus/spam.el
lisp/jsonrpc.el
lisp/org/org-compat.el
lisp/org/org.el
lisp/play/5x5.el
lisp/proced.el
lisp/progmodes/idlw-shell.el
lisp/progmodes/idlwave.el
lisp/simple.el
lisp/strokes.el
lisp/subr.el
lisp/vc/diff-mode.el
lisp/windmove.el
test/lisp/subr-tests.el