在Emacs Lisp中,函数名称中的双减( - )约定是什么意思 [英] What does the double minus (--) convention in function names mean in Emacs Lisp
问题描述
(defun eproject - combine-regexps(regexp-list)
我想知道如果这是一个向图书馆声明私有功能的约定,但到目前为止,我还没有在Emacs编码指南中找到任何内容。
Emacs对命名空间,软件包,库或模块没有任何支持,因此Emacs源使用 foo -
作为 foo
库,在某些情况下 foo -
用于应该是内部的绑定。
I've been reading through a number of Emacs Lisp packages and have come across the convention of some functions being declared with -- after the library prefix, e.g.:
(defun eproject--combine-regexps (regexp-list)
I'm wondering if this a convention for declaring "private" functions to the library but so far I haven't found anything in the Emacs Coding guidelines.
Emacs doesn't have any support for namespaces, packages, libraries or modules. Emacs sources therefore use foo-
as a prefix for a foo
library, and in some cases foo--
is used for bindings that are supposed to be internal.
这篇关于在Emacs Lisp中,函数名称中的双减( - )约定是什么意思的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!