summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien <bzg@gnu.org>2020-02-11 08:51:30 +0100
committerBastien <bzg@gnu.org>2020-02-11 08:51:30 +0100
commit52320f942b4d8a303c1fb0ea4fba745856d4b85e (patch)
tree7cf315d5f1eb379859e58a6e1bdbc87f677b421c
parentf7175e487815986cf1ee9b0e08c3bec6bec37217 (diff)
downloadorg-mode-52320f942b4d8a303c1fb0ea4fba745856d4b85e.tar.gz
lisp/ob-lilypond.el: Fix initialization bug
* lisp/ob-lilypond.el (org-babel-lilypond-commands): Fix the :set function. Thanks to Victor A. Stoichita for reporting this.
-rw-r--r--lisp/ob-lilypond.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/ob-lilypond.el b/lisp/ob-lilypond.el
index eb3372f..e207784 100644
--- a/lisp/ob-lilypond.el
+++ b/lisp/ob-lilypond.el
@@ -67,12 +67,15 @@ the midi file is not automatically played. Default value is t")
(defvar org-babel-lilypond-ly-command ""
"Command to execute lilypond on your system.
Do not set it directly. Customize `org-babel-lilypond-commands' instead.")
+
(defvar org-babel-lilypond-pdf-command ""
"Command to show a PDF file on your system.
Do not set it directly. Customize `org-babel-lilypond-commands' instead.")
+
(defvar org-babel-lilypond-midi-command ""
"Command to play a MIDI file on your system.
Do not set it directly. Customize `org-babel-lilypond-commands' instead.")
+
(defcustom org-babel-lilypond-commands
(cond
((eq system-type 'darwin)
@@ -94,7 +97,8 @@ you can leave the string empty on this case."
:version "24.4"
:package-version '(Org . "8.2.7")
:set
- (lambda (_symbol value)
+ (lambda (symbol value)
+ (set symbol value)
(setq
org-babel-lilypond-ly-command (nth 0 value)
org-babel-lilypond-pdf-command (nth 1 value)