| Server IP : 217.160.0.212 / Your IP : 216.73.216.71 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1073854427 ( 1073854427) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/share/emacs/28.2/lisp/org/ |
Upload File : |
;ELC
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.
(byte-code "\300\301!\210\302\303\304\"\210\305\306\307\"\207" [require ob defalias lilypond-mode LilyPond-mode add-to-list org-babel-tangle-lang-exts ("LilyPond" . "ly")] 3)
#@200 Default header arguments for lilypond code blocks.
NOTE: The arguments are determined at lilypond compile time.
See `org-babel-lilypond-set-header-args'
To configure, see `ob-lilypond-header-args'
.
(defvar org-babel-default-header-args:lilypond nil (#$ . 260))
#@228 User-configurable header arguments for lilypond code blocks.
NOTE: The final value used by org-babel is computed at compile-time
and stored in `org-babel-default-header-args:lilypond'
See `org-babel-lilypond-set-header-args'.
(defvar ob-lilypond-header-args '((:results . "file") (:exports . "results")) (#$ . 529))
#@270 Following the org-babel-tangle (C-c C-v t) command,
org-babel-lilypond-compile-post-tangle determines whether ob-lilypond should
automatically attempt to compile the resultant tangled file.
If the value is nil, no automated compilation takes place.
Default value is t.
(defvar org-babel-lilypond-compile-post-tangle t (#$ . 853))
#@246 Following a successful LilyPond compilation
org-babel-lilypond-display-pdf-post-tangle determines whether to automate the
drawing / redrawing of the resultant pdf. If the value is nil,
the pdf is not automatically redrawn. Default value is t.
(defvar org-babel-lilypond-display-pdf-post-tangle t (#$ . 1190))
#@242 Following a successful LilyPond compilation
org-babel-lilypond-play-midi-post-tangle determines whether to automate the
playing of the resultant midi file. If the value is nil,
the midi file is not automatically played. Default value is t
(defvar org-babel-lilypond-play-midi-post-tangle t (#$ . 1508))
#@119 Command to execute lilypond on your system.
Do not set it directly. Customize `org-babel-lilypond-commands' instead.
(defvar org-babel-lilypond-ly-command "" (#$ . 1820))
#@118 Command to show a PDF file on your system.
Do not set it directly. Customize `org-babel-lilypond-commands' instead.
(defvar org-babel-lilypond-pdf-command "" (#$ . 1999))
#@119 Command to play a MIDI file on your system.
Do not set it directly. Customize `org-babel-lilypond-commands' instead.
(defvar org-babel-lilypond-midi-command "" (#$ . 2178))
(byte-code "\300\301\302\303\304DD\305\306\307\310\311\312\313\314\315\316\317&
\207" [custom-declare-variable org-babel-lilypond-commands funcall function #[0 "\301\267\202\n \302\207\303\207\304\207" [system-type #s(hash-table size 2 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (darwin 6 windows-nt 8)) ("/Applications/lilypond.app/Contents/Resources/bin/lilypond" "open" "open") ("lilypond" #1="" #1#) ("lilypond" "xdg-open" "xdg-open")] 2 #1#] "Commands to run lilypond and view or play the results.\nThese should be executables that take a filename as an argument.\nOn some system it is possible to specify the filename directly\nand the viewer or player will be determined from the file type;\nyou can leave the string empty on this case." :group org-babel :type (list (string :tag "Lilypond ") (string :tag "PDF Viewer ") (string :tag "MIDI Player")) :version "24.4" :package-version (Org . "8.2.7") :set #[514 "L\210\211@\211A@\3038\211\207" [org-babel-lilypond-ly-command org-babel-lilypond-pdf-command org-babel-lilypond-midi-command 2] 4 "\n\n(fn SYMBOL VALUE)"]] 14)
#@63 Non-nil means image generation (PNG) is turned on by default.
(defvar org-babel-lilypond-gen-png nil (#$ . 3466))
#@66 Non-nil means image generation (SVG) is be turned on by default.
(defvar org-babel-lilypond-gen-svg nil (#$ . 3586))
#@56 Non-nil means HTML generation is turned on by default.
(defvar org-babel-lilypond-gen-html nil (#$ . 3709))
#@58 Non-nil means PDF generation is be turned on by default.
(defvar org-babel-lilypond-gen-pdf nil (#$ . 3823))
#@53 Non-nil forces the compiler to use the EPS backend.
(defvar org-babel-lilypond-use-eps nil (#$ . 3938))
#@232 Non-nil turns Arrange mode on.
In Arrange mode the following settings are altered from default:
:tangle yes, :noweb yes
:results silent :comments yes.
In addition lilypond block execution causes tangling of all lilypond
blocks.
(defvar org-babel-lilypond-arrange-mode nil (#$ . 4049))
#@78 Expand BODY according to PARAMS, return the expanded body.
(fn BODY PARAMS)
(defalias 'org-babel-expand-body:lilypond #[514 "C\300!\301\302\303\"\"\210\242\207" [org-babel--get-vars mapc make-closure #[257 "\301@!A\300\302\303\304!P;\203 \202 \305\306\"\300\242#\240\207" [V0 symbol-name replace-regexp-in-string "$" regexp-quote format "%S"] 9 "\n\n(fn PAIR)"]] 8 (#$ . 4343)])
#@298 This function is called by `org-babel-execute-src-block'.
Depending on whether we are in arrange mode either:
1. Attempt to execute lilypond block according to header settings
(This is the default basic mode)
2. Tangle all lilypond blocks and process the result (arrange mode)
(fn BODY PARAMS)
(defalias 'org-babel-execute:lilypond #[514 "\301!\210\203 \302 \207\303\"\207" [org-babel-lilypond-arrange-mode org-babel-lilypond-set-header-args org-babel-lilypond-tangle org-babel-lilypond-process-basic] 5 (#$ . 4743)])
#@153 ob-lilypond specific tangle, attempts to invoke
=ly-execute-tangled-ly= if tangle is successful. Also passes
specific arguments to =org-babel-tangle=.
(defalias 'org-babel-lilypond-tangle #[0 "\300\301\302\303#\205\n \304 \207" [org-babel-tangle nil "yes" "lilypond" org-babel-lilypond-execute-tangled-ly] 4 (#$ . 5276) nil])
#@59 Execute a lilypond block in basic mode.
(fn BODY PARAMS)
(defalias 'org-babel-lilypond-process-basic #[514 "\301\236A\302\236A\206\f \303\304\305!\306\307\310\"\311\312\"\216r\211q\210\313\"c\210)r\211q\210\314\315\211\315\316%\210*\210\317\320\321\322!\323\"A\206B \324\325\326!\327\260\303\"\266\315\207" [org-babel-lilypond-ly-command :file :cmdline "" org-babel-temp-file "lilypond-" generate-new-buffer " *temp file*" t make-closure #[0 "\301\300!\205 \302\300!\207" [V0 buffer-name kill-buffer] 2] org-babel-expand-body:generic write-region nil 0 org-babel-eval " -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts " assoc file-name-extension (("pdf" . "--pdf ") ("ps" . "--ps ") ("png" . "--png ")) "--png " "--output=" file-name-sans-extension " "] 14 (#$ . 5609)])
#@91 Return an error because LilyPond exporter does not support sessions.
(fn SESSION PARAMS)
(defalias 'org-babel-prep-session:lilypond #[514 "\300\301!\207" [error "Sorry, LilyPond does not currently support sessions!"] 4 (#$ . 6412)])
#@120 Compile result of block tangle with lilypond.
If error in compilation, attempt to mark the error in lilypond org file.
(defalias 'org-babel-lilypond-execute-tangled-ly #[0 "\205O \301\302 \303\"\301\302 \304\"\305!\204 \306\307!\210\202* \305!\203% \310!\210\311\"\210\312\313!\210\314 \210\315!\210eb\210\316!\203B \306\317!\207\320\321!\210\322!\210\323!\266\202\207" [org-babel-lilypond-compile-post-tangle org-babel-lilypond-switch-extension buffer-file-name ".lilypond" ".ly" file-exists-p error "Error: Tangle Failed!" delete-file rename-file org-switch-to-buffer-other-window "*lilypond*" erase-buffer org-babel-lilypond-compile-lilyfile org-babel-lilypond-check-for-compile-error "Error in Compilation!" other-window -1 org-babel-lilypond-attempt-to-open-pdf org-babel-lilypond-attempt-to-play-midi] 5 (#$ . 6653)])
#@131 Compile lilypond file and check for compile errors.
FILE-NAME is full path to lilypond (.ly) file.
(fn FILE-NAME &optional TEST)
(defalias 'org-babel-lilypond-compile-lilyfile #[513 "\306\307!\210 \203
\310\202 \311\n\203 \312\202 \311\203 \313\202 \311\f\203( \314\202) \311
\2031 \315\2022 \311\316\317 !P\203S \320\321\322 \257\207\323\320\321\322\n\n\n\n\n\n&\207" [org-babel-lilypond-ly-command org-babel-lilypond-gen-png org-babel-lilypond-gen-html org-babel-lilypond-gen-pdf org-babel-lilypond-use-eps org-babel-lilypond-gen-svg message "Compiling LilyPond..." "--png" "" "--html" "--pdf" "-dbackend=eps" "-dbackend=svg" "--output=" file-name-sans-extension nil "*lilypond*" t call-process] 21 (#$ . 7495)])
#@311 Check for compile error.
This is performed by parsing the *lilypond* buffer
containing the output message from the compilation.
FILE-NAME is full path to lilypond file.
If TEST is t just return nil if no error found, and pass
nil as file-name since it is unused in this context.
(fn FILE-NAME &optional TEST)
(defalias 'org-babel-lilypond-check-for-compile-error #[513 "\300\301\302\303#\203\n \207\211\205 \304!\207" [search-forward "error:" nil t org-babel-lilypond-process-compile-error] 6 (#$ . 8256)])
#@107 Process the compilation error that has occurred.
FILE-NAME is full path to lilypond file.
(fn FILE-NAME)
(defalias 'org-babel-lilypond-process-compile-error #[257 "\300 \301\"\302\"\210\303\304!\207" [org-babel-lilypond-parse-line-num org-babel-lilypond-parse-error-line org-babel-lilypond-mark-error-line error "Error: Compilation Failed!"] 6 (#$ . 8774)])
#@144 Mark the erroneous lines in the lilypond org buffer.
FILE-NAME is full path to lilypond file.
LINE is the erroneous line.
(fn FILE-NAME LINE)
(defalias 'org-babel-lilypond-mark-error-line #[514 "\301\302\303\304\"!\260!\210`eb\210\305\306\305\307#\203&