Function: org-babel-lilypond-parse-error-line
org-babel-lilypond-parse-error-line is a byte-compiled function
defined in ob-lilypond.el.gz.
Signature
(org-babel-lilypond-parse-error-line FILE-NAME LINENO)
Documentation
Extract the erroneous line from the tangled .ly file.
FILE-NAME is full path to lilypond file. LINENO is the number of the erroneous line.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ob-lilypond.el.gz
(defun org-babel-lilypond-parse-error-line (file-name lineNo)
"Extract the erroneous line from the tangled .ly file.
FILE-NAME is full path to lilypond file.
LINENO is the number of the erroneous line."
(with-temp-buffer
(insert-file-contents (org-babel-lilypond-switch-extension file-name ".ly")
nil nil nil t)
(if (> lineNo 0)
(progn
(goto-char (point-min))
(forward-line (- lineNo 1))
(buffer-substring (point) (line-end-position)))
nil)))