Emacs:可以更改启动进程的名称吗? [英] Emacs: can I change the name of a started process?

查看:110
本文介绍了Emacs:可以更改启动进程的名称吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用 process-name 获取进程的名称,但可以在启动该名称后更改名称吗?我查看了手册,甚至在来源,并没有找到任何似乎会这样做的东西。

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.

推荐答案

Emacs只有一行' process.c 源文件其中 p->名称设置为进程 p ,这是在函数 make_process 中。所有其他功能只读取该值,它们从不(重新)设置它。所以看来你的问题的答案是否。

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.

这篇关于Emacs:可以更改启动进程的名称吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆