Define an elisp variable. What is the slash function in the variable name "defvar bh / organization-task-id"

The following is the function Org mode - Organize your life in plain text! This does not work in emacs-23.4-r1. But if I remove bh / prefix in bh / organization-task-id and change it to the identifier of the task organization. It works. I do not know why. What is the slash function in the variable name and function name? Thanks in advance.

(defvar bh/organization-task-id "eb155a82-92b2-4f25-a3c6-0304591af2f9") (defun bh/clock-in-organization-task-as-default () (interactive) (org-with-point-at (org-id-find bh/organization-task-id 'marker) (org-clock-in '(16)))) 
+1
source share
1 answer

'bh /' means Bernt Hansen, author of the function.

Since Elisp does not support namespaces, it is common practice to prefix your function and variable names with a common identifier to avoid conflicts with the names used in other modules. For example, all org-mode functions and variables start with org- or ob- (for org-babel).

I cannot answer your question about why this is happening with emacs-23.4.

+3
source

Source: https://habr.com/ru/post/1482792/


All Articles