Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道函数 set-file-modes 但它不支持“u+x”之类的东西。
elisp 中是否有支持“u+x”之类的功能?
更新完整解决方案:
(set-file-modes fname (file-modes-symbolic-to-number "u+x" (file-modes fname)))
您可能想查看file-modes-symbolic-to-number将“u+x”转换为数字。
file-modes-symbolic-to-number