对此错误感到困惑:
bookmark-bmenu-show-filenames:错误类型参数:char-或string-p,(concat (getenv "TNS_ADMIN") "/tnsnames.ora")
上下文:我正在尝试编辑标准.emacs.bmk文件中的现有书签以供使用(concat (getenv“TNS_ADMIN”).)代替硬编码路径名:
;;;; Emacs Bookmark Format Version 1 ;;;;
;;; This format is meant to be slightly human-readable;
;;; nevertheless, you probably don't want to edit it.
;;; -*- End Of Bookmark File Format Version Stamp -*-
(("tnsnames.ora"
(filename . (concat (getenv "TNS_ADMIN") "/tnsnames.ora"))
(front-context-string . "#\n# TNSNAMES.ORA")
(rear-context-string)
(position . 1))
)
发布于 2021-02-19 06:20:49
我将得出结论,.emacs.bmk的内容是一个数据结构,没有被解释,因此没有解释像concat和getenv这样的elisp函数。
我发现这个链接有助于理解错误消息:https://www.gnu.org/software/emacs/manual/html_node/eintr/Wrong-Type-of-Argument.html
https://stackoverflow.com/questions/66245740
复制