Function: php-ts-mode-inferior--write-history
php-ts-mode-inferior--write-history is a byte-compiled function
defined in php-ts-mode.el.gz.
Signature
(php-ts-mode-inferior--write-history PROCESS _)
Documentation
Write history file for inferior PHP PROCESS.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/php-ts-mode.el.gz
;; taken and adapted from lua-ts-mode
(defun php-ts-mode-inferior--write-history (process _)
"Write history file for inferior PHP PROCESS."
;; Depending on how the process is killed the buffer may not be
;; around anymore; e.g. `kill-buffer'.
(when-let* ((buffer (process-buffer process))
((buffer-live-p (process-buffer process))))
(with-current-buffer buffer (comint-write-input-ring))))