Each time i press CxCc to exit emacs, it always want me be sure whether or not close the shell process spawned by ansi-term. Can i make ansi-term exit unconditionally once emacs exit ?
Sincerely!
Check (set-process-query-on-exit-flag PROCESS FLAG)
and set process-query-on-exit-flag
variable to nil for ansi-term
process.
Add (set-process-query-on-exit-flag proc nil)
to term-exec
function in term.el.
;; Crank up a new process
(let ((proc (term-exec-1 name buffer command switches)))
(set-process-query-on-exit-flag proc nil) <------------here
(make-local-variable 'term-ptyp)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.