Function: windmove-coord-add
windmove-coord-add is a byte-compiled function defined in
windmove.el.gz.
This function is obsolete since 27.1; no longer used.
Signature
(windmove-coord-add COORD1 COORD2)
Documentation
Add the two coordinates.
Both COORD1 and COORD2 are coordinate cons pairs, (HPOS . VPOS). The result is another coordinate cons pair.
Probably introduced at or before Emacs version 27.1.
Source Code
;; Defined in /usr/src/emacs/lisp/windmove.el.gz
;; Note:
;;
;; The functions that follow were used in the implementation of
;; `windmove-find-other-window', but they are known to be unreliable
;; after the window and frame rework done in 2013, so they are no
;; longer used or maintained; their functionality is subsumed in the
;; new function `window-in-direction'. They are kept only for
;; compatibility and will be removed in the future. Please consider
;; using the new window interfaces documented in "(elisp)Windows".
;; Quick & dirty utility function to add two (x . y) coords.
(defun windmove-coord-add (coord1 coord2)
"Add the two coordinates.
Both COORD1 and COORD2 are coordinate cons pairs, (HPOS . VPOS). The
result is another coordinate cons pair."
(declare (obsolete "no longer used." "27.1"))
(cons (+ (car coord1) (car coord2))
(+ (cdr coord1) (cdr coord2))))