Emacs: can I change the name of a started process?

2019-06-18 05:39发布

问题:

I can use process-name to get the name of the process, but can I change the name after starting it? I looked in the manual, and even in the source and haven't found anything that seems like it would do this.

回答1:

There's only one line in Emacs' process.c source file where p->name is set for a process p, and that is in the function make_process. All other functions just read that value, they never (re-)set it. So it seems the answer to your question is "no".

You could, of course, try to implement your own function that changes the name of a process. See here for more information.