From: Martyn Jago <martyn.jago@btinternet.com> To: Bastien <bzg@gnu.org> Cc: emacs-orgmode@gnu.org Subject: Re: [patch][babel] ob-lilypond maintenance Date: Wed, 21 Mar 2012 11:20:26 +0000 [thread overview] Message-ID: <m2mx7amc91.fsf@btinternet.com> (raw) In-Reply-To: <87zkbas1me.fsf@gnu.org> (Bastien's message of "Wed, 21 Mar 2012 11:13:29 +0100") [-- Attachment #1: Type: text/plain, Size: 669 bytes --] Hi Bastien Bastien <bzg@gnu.org> writes: > Hi Martyn, > > Martyn Jago <martyn.jago@btinternet.com> writes: > >> Maintenance patches: >> >> 1) Fix compiler warning >> 2) Leave versioning to Org >> 3) Set `no cache' default in audition mode >> 4) Redirect `homepage' to Worg > > Thanks a lot. > > Patch #1 applies correctly on hotfix-7.8.06 and master. > > #2-3-4 apply on master but not on hotfix-7.8.06. > > Can you submit the patches for hotfix-7.8.06? This is > not critical and we can go for master if you want. Let > me know. > > Best, Here's #1,2,4. #3 Makes no sense in context of code difference between hotfix-7.8.06 against master. Best, Martyn [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: Fix compiler warning --] [-- Type: text/x-patch, Size: 784 bytes --] From 2d12de6b60196871303438ca51f9d50e3ae19342 Mon Sep 17 00:00:00 2001 From: Martyn Jago <martyn.jago@btinternet.com> Date: Wed, 21 Mar 2012 10:49:57 +0000 Subject: [PATCH 1/3] Fix compiler warning. * lisp/ob-lilypond.el: Fix compiler warning. --- lisp/ob-lilypond.el | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/lisp/ob-lilypond.el b/lisp/ob-lilypond.el index 1f412fd..19fe465 100644 --- a/lisp/ob-lilypond.el +++ b/lisp/ob-lilypond.el @@ -30,10 +30,9 @@ (require 'ob) (require 'ob-eval) (require 'ob-tangle) +(require 'outline) (defalias 'lilypond-mode 'LilyPond-mode) -(declare-function show-all "outline" ()) - (add-to-list 'org-babel-tangle-lang-exts '("LilyPond" . "ly")) (defvar org-babel-default-header-args:lilypond '() -- 1.7.3.4 [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #3: Leave versioning to Org --] [-- Type: text/x-patch, Size: 2339 bytes --] From 78e9de9942947ea47c5983367dfee8c6b67b0f77 Mon Sep 17 00:00:00 2001 From: Martyn Jago <martyn.jago@btinternet.com> Date: Wed, 21 Mar 2012 10:52:49 +0000 Subject: [PATCH 2/3] Leave versioning to Org. * lisp/ob-lilypond.el: Leave versioning to Org. * testing/lisp/test-ob-lilypond.el: Leave versioning to Org. --- lisp/ob-lilypond.el | 11 +---------- testing/lisp/test-ob-lilypond.el | 10 ---------- 2 files changed, 1 insertions(+), 20 deletions(-) diff --git a/lisp/ob-lilypond.el b/lisp/ob-lilypond.el index 19fe465..90a1b60 100644 --- a/lisp/ob-lilypond.el +++ b/lisp/ob-lilypond.el @@ -38,9 +38,6 @@ (defvar org-babel-default-header-args:lilypond '() "Default header arguments for js code blocks.") -(defconst ly-version "0.3" - "The version number of the file ob-lilypond.el.") - (defvar ly-compile-post-tangle t "Following the org-babel-tangle (C-c C-v t) command, ly-compile-post-tangle determines whether ob-lilypond should @@ -407,13 +404,7 @@ If TEST is non-nil, it contains a simulation of the OS for test purposes" (message (concat "Arrange mode has been " (if ly-arrange-mode "ENABLED." "DISABLED.")))) -(defun ly-version (&optional insert-at-point) - (interactive) - (let ((version (format "ob-lilypond version %s" ly-version))) - (when insert-at-point (insert version)) - (message version))) - - (defun ly-switch-extension (file-name ext) +(defun ly-switch-extension (file-name ext) "Utility command to swap current FILE-NAME extension with EXT" (concat (file-name-sans-extension diff --git a/testing/lisp/test-ob-lilypond.el b/testing/lisp/test-ob-lilypond.el index 2ca0597..2c35eca 100644 --- a/testing/lisp/test-ob-lilypond.el +++ b/testing/lisp/test-ob-lilypond.el @@ -43,16 +43,6 @@ (should-error (org-babel-prep-session:lilypond nil nil)) :type 'error) -(ert-deftest ob-lilypond/ly-version-const () - (should (boundp 'ly-version))) - -(ert-deftest ob-lilypond/ly-version-command () - (should (equal "ob-lilypond version 0.3" (ly-version))) - (with-temp-buffer - (ly-version t) - (should (equal "ob-lilypond version 0.3" - (buffer-substring (point-min) (point-max)))))) - (ert-deftest ob-lilypond/ly-compile-lilyfile () (should (equal `(,(ly-determine-ly-path) ;program -- 1.7.3.4 [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #4: Redirect `homepage' to Worg --] [-- Type: text/x-patch, Size: 765 bytes --] From 71755479fd315167b67875bd647376b48c126085 Mon Sep 17 00:00:00 2001 From: Martyn Jago <martyn.jago@btinternet.com> Date: Wed, 21 Mar 2012 10:56:52 +0000 Subject: [PATCH 3/3] Re-direct homepage to Worg. * lisp/ob-lilypond.el: Re-direct homepage to Worg. --- lisp/ob-lilypond.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/ob-lilypond.el b/lisp/ob-lilypond.el index 90a1b60..6b03bd8 100644 --- a/lisp/ob-lilypond.el +++ b/lisp/ob-lilypond.el @@ -4,7 +4,7 @@ ;; Author: Martyn Jago ;; Keywords: babel language, literate programming -;; Homepage: https://github.com/mjago/ob-lilypond +;; Homepage: http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html ;; This file is part of GNU Emacs. -- 1.7.3.4
next prev parent reply other threads:[~2012-03-21 11:20 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-03-21 9:49 Martyn Jago 2012-03-21 10:13 ` Bastien 2012-03-21 11:20 ` Martyn Jago [this message] 2012-03-21 14:27 ` Bastien
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style List information: https://www.orgmode.org/ * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=m2mx7amc91.fsf@btinternet.com \ --to=martyn.jago@btinternet.com \ --cc=bzg@gnu.org \ --cc=emacs-orgmode@gnu.org \ --subject='Re: [patch][babel] ob-lilypond maintenance' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Code repositories for project(s) associated with this inbox: https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).