13

Elisp中如何获取文件的绝对路径

 3 years ago
source link: https://www.lujun9972.win/blog/2018/09/22/elisp%E4%B8%AD%E5%A6%82%E4%BD%95%E8%8E%B7%E5%8F%96%E6%96%87%E4%BB%B6%E7%9A%84%E7%BB%9D%E5%AF%B9%E8%B7%AF%E5%BE%84/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Elisp中如何获取文件的绝对路径 - 暗无天日

Elisp中如何获取文件的绝对路径

如果你想着用 absolute 来搜索相关函数,那是找不到的...

真正的对应函数叫做 file-truename

不过 file-truename 在处理link文件时会顺着link找到最终的那个文件。

如果想保留link文件就好,那么可以使用 expand-file-name

2018-09-22 2018-09-22 Emacs之怒 lujun9972

Related Issues not found

Please contact @lujun9972 to initialize the comment

Generated by Emacs 27.x(Org mode 9.x)

Copyright © 2014 - 2021 lujun9972   -   Powered by EGO
Themed with emacs_love


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK