comint-replace-by-expanded-history-before-point is a compiled Lisp function in `comint.el'.

(comint-replace-by-expanded-history-before-point SILENT &optional START DRY-RUN)

Expand directory stack reference before point.
See `comint-replace-by-expanded-history'. Returns t if successful.

If the optional argument START is non-nil, that specifies the
start of the text to scan for history references, rather
than the logical beginning of line.

If DRY-RUN is non-nil, throw to DRY-RUN before performing any
actual side-effect.