# libtmux:same-entity-p

- **Package:** libtmux
- **Language:** Common Lisp
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-lisp/blob/c2e5fc4ed3befda21f45dfa5d5868c38fd138311/src/model.lisp#L139
- **Public owner:** libtmux
- **Page:** https://libtmux.org/en/lisp/latest/reference/libtmux-same-entity-p/

```
(same-entity-p left right)
```

Compare captured identity, not captured field values. No I/O.
Context and generation must agree. Link comparison retains its expected window
and index. Attached clients compare equal only within their original capture.

## Parameters

- `left`
- `right`

## Guides

Pages that discuss `same-entity-p`.

- [Captures and identity](/en/lisp/latest/concepts/captures/)
