I tried to sign the FSF copyright assignment before, but it is very
difficult for me. So I give up. Is there other ways to merge this patches
without signing the assignment? (I can give up this right)

Second: I updated branch commit messages in the ChangeLog format.

[stardiviner]           <Hack this world!>      GPG key ID: 47C32433
IRC(freeenode): stardiviner                     Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/

On Tue, May 10, 2016 at 5:42 PM, Rasmus <ras...@gmx.us> wrote:

> Hi,
>
> Thanks for your patches.
>
> Some comments follow.
>
> "numbch...@gmail.com" <numbch...@gmail.com> writes:
>
> > - ob-lua
> > - ob-php
> > - ob-redis
> >
> > https://github.com/stardiviner/org-mode
> >
> > Hope maintainer can merge those branches.
>
> First, do you have copyright assignment to the FSF or would you be willing
> to?  This is necessary to merge the patches.  Please refer to,
>
>       http://orgmode.org/worg/org-contribute.html
>
> Second, could you send your work as patches?  I.e. use git format-patch.
> Note the format of the commit message should be in the ChangeLog format
> (refer to the link above).
>
> Thanks,
> Rasmus
>
> --
> History is what should never happen again
>
>
>
From 2589d4e7d28016fb515d2131cbd9ff52797e50eb Mon Sep 17 00:00:00 2001
From: stardiviner <numbch...@gmail.com>
Date: Tue, 10 May 2016 16:03:32 +0800
Subject: [PATCH] ob-lua.el: add Lua src block executing support

* contrib/lisp/ob-lua.el (org-babel-execute:lua): support executing Lua src block.
---
 contrib/lisp/ob-lua.el | 45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)
 create mode 100644 contrib/lisp/ob-lua.el

diff --git a/contrib/lisp/ob-lua.el b/contrib/lisp/ob-lua.el
new file mode 100644
index 0000000..f33090e
--- /dev/null
+++ b/contrib/lisp/ob-lua.el
@@ -0,0 +1,45 @@
+;;; ob-lua.el --- Execute Lua code within org-mode blocks.
+;; Copyright 2016 stardiviner
+
+;; Author: stardiviner <numbch...@gmail.com>
+;; Maintainer: stardiviner <numbch...@gmail.com>
+;; Keywords: org babel lua
+;; URL: https://github.com/stardiviner/ob-lua
+;; Created: 12th April 2016
+;; Version: 0.0.1
+;; Package-Requires: ((org "8"))
+
+;;; Commentary:
+;;
+;; Execute Lua code within org-mode blocks.
+
+;;; Code:
+(require 'org)
+(require 'ob)
+
+(defgroup ob-lua nil
+  "org-mode blocks for Lua."
+  :group 'org)
+
+(defcustom ob-lua:default-session "*lua*"
+  "Default Lua session.
+
+It is lua inferior process from `run-lua'."
+  :group 'ob-lua
+  :type 'string)
+
+;;;###autoload
+(defun org-babel-execute:lua (body params)
+  "org-babel lua hook."
+  (let* ((session (or (cdr (assoc :session params))
+                      ob-lua:default-session))
+         (cmd (mapconcat 'identity (list "lua -") " ")))
+    (org-babel-eval cmd body)))
+
+;;;###autoload
+(eval-after-load "org"
+  '(add-to-list 'org-src-lang-modes '("lua" . lua)))
+
+(provide 'ob-lua)
+
+;;; ob-lua.el ends here
-- 
2.8.2

From d2e7202930fcf24e7c90826e69bb768094463a0c Mon Sep 17 00:00:00 2001
From: stardiviner <numbch...@gmail.com>
Date: Tue, 10 May 2016 16:05:38 +0800
Subject: [PATCH] ob-php.el: Add PHP src block executing support

* contrib/lisp/ob-php.el (org-babel-execute:php): support executing PHP
  src block.
---
 contrib/lisp/ob-php.el | 44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 contrib/lisp/ob-php.el

diff --git a/contrib/lisp/ob-php.el b/contrib/lisp/ob-php.el
new file mode 100644
index 0000000..31960a5
--- /dev/null
+++ b/contrib/lisp/ob-php.el
@@ -0,0 +1,44 @@
+;;; ob-php.el --- Execute PHP within org-mode blocks.
+;; Copyright 2016 stardiviner
+
+;; Author: stardiviner <numbch...@gmail.com>
+;; Maintainer: stardiviner <numbch...@gmail.com>
+;; Keywords: org babel php
+;; URL: https://github.com/stardiviner/ob-php
+;; Created: 04th May 2016
+;; Version: 0.0.1
+;; Package-Requires: ((org "8"))
+
+;;; Commentary:
+;;
+;; Execute PHP within org-mode blocks.
+
+;;; Code:
+(require 'org)
+(require 'ob)
+
+(defgroup ob-php nil
+  "org-mode blocks for PHP."
+  :group 'org)
+
+;; todo
+(defcustom ob-php:inf-php-buffer "*php*"
+  "Default PHP inferior buffer."
+  :group 'ob-php
+  :type 'string)
+
+;;;###autoload
+(defun org-babel-execute:php (body params)
+  "org-babel PHP hook."
+  ;; todo
+  (let* ((cmd (mapconcat 'identity (list "php") " -r ")))
+    (org-babel-eval cmd body)
+    ))
+
+;;;###autoload
+(eval-after-load "org"
+  '(add-to-list 'org-src-lang-modes '("php" . php)))
+
+(provide 'ob-php)
+
+;;; ob-php.el ends here
-- 
2.8.2

From eb3c0cb1467416d141a633c49e1c9050311d92ab Mon Sep 17 00:00:00 2001
From: stardiviner <numbch...@gmail.com>
Date: Tue, 10 May 2016 16:06:19 +0800
Subject: [PATCH] ob-redis.el: Add Redis src block executing support

* contrib/lisp/ob-redis.el (org-babel-execute:redis): support for
  executing redis src block.
---
 contrib/lisp/ob-redis.el | 44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 contrib/lisp/ob-redis.el

diff --git a/contrib/lisp/ob-redis.el b/contrib/lisp/ob-redis.el
new file mode 100644
index 0000000..340b050
--- /dev/null
+++ b/contrib/lisp/ob-redis.el
@@ -0,0 +1,44 @@
+;;; ob-redis.el --- Execute Redis queries within org-mode blocks.
+;; Copyright 2016 stardiviner
+
+;; Author: stardiviner <numbch...@gmail.com>
+;; Maintainer: stardiviner <numbch...@gmail.com>
+;; Keywords: org babel redis
+;; URL: https://github.com/stardiviner/ob-redis
+;; Created: 28th Feb 2016
+;; Version: 0.0.1
+;; Package-Requires: ((org "8"))
+
+;;; Commentary:
+;;
+;; Execute Redis queries within org-mode blocks.
+
+;;; Code:
+(require 'org)
+(require 'ob)
+
+(defgroup ob-redis nil
+  "org-mode blocks for Redis."
+  :group 'org)
+
+(defcustom ob-redis:default-db "127.0.0.1:6379"
+  "Default Redis database."
+  :group 'ob-redis
+  :type 'string)
+
+;;;###autoload
+(defun org-babel-execute:redis (body params)
+  "org-babel redis hook."
+  (let* ((db (or (cdr (assoc :db params))
+                 ob-redis:default-db))
+         (cmd (mapconcat 'identity (list "redis-cli") " ")))
+    (org-babel-eval cmd body)
+    ))
+
+;;;###autoload
+(eval-after-load "org"
+  '(add-to-list 'org-src-lang-modes '("redis" . redis)))
+
+(provide 'ob-redis)
+
+;;; ob-redis.el ends here
-- 
2.8.2

Reply via email to