Hi, all
This patch is finally merged into the master branch, we can export results
of scheme code block under batch mode now.
Thanks to Eric, Bastien and Oleh.
On Sat, Apr 12, 2014 at 10:12 PM, Eric Schulte wrote:
> KDr2 writes:
>
> > HI, Eric
> >
> > You are right, I remove the usage of advi
KDr2 writes:
> HI, Eric
>
> You are right, I remove the usage of advice now, and use the method you
> (nearly) gave, only 1 little change:
> I found the code:
>
> (defun t1 () (message "abc"))
> ;;(symbol-function 't1)
>
> (let ((hold #'t1))
> (defun t1 () (message "def"))
> (setq t1 hol
HI, Eric
You are right, I remove the usage of advice now, and use the method you
(nearly) gave, only 1 little change:
I found the code:
(defun t1 () (message "abc"))
;;(symbol-function 't1)
(let ((hold #'t1))
(defun t1 () (message "def"))
(setq t1 hold))
;;(symbol-function 't1)
did
Hmmm,
Not to be overly nitpicky here, but I see two issues.
1. You should use unwind-protect, to ensure that (ad-unadvise #'message)
is run even if @body throws an error, and
2. This will remove any advise which the user has placed on #'message.
How about something shaped like the following.
Hi, Eric
I'm sorry for that I used `flet' in the patch, It's a easy way to let
function `current-message' work in batch mode, so I used it even I saw that
emacs says `flet' is obsolete, I'm sorry for that.
And I made a new patch(attachment) using `defadvice' for `message' to
capture the message i
We can no longer use `flet' in the Org-mode code base, please re-work
this patch w/o flet.
Also, I don't see your name in the list of contributors, and (I believe)
this patch is too large to apply w/o FSF assignment. See the following
page on how to contribute to Org-mode.
http://orgmode.org/w
org-plus-contrib-20140407
And the file lisp/ob-scheme.el is the same as it in the master branch:
And the error message before patched:
Loading /home/kdr2/.emacs.d/init.el (source)...
Loading /home/kdr2/.emacs.d/src/elisp/common.el (source)...
Loading pde-load...
Loading pde-loaddefs...
../.emacs
> Version of geiser I installed: geiser-20140326.951, If it has been changed,
> it must be changed in the past 2 weeks ...
>
That's exactly the version that I have.
Which org-mode are you using?
Version of geiser I installed: geiser-20140326.951, If it has been
changed, it must be changed in the past 2 weeks ...
On Thu, Apr 10, 2014 at 6:54 PM, Oleh wrote:
> Of course it works, that's the first thing I tried.
> The issue probably is that the implementation of geiser functions that
>
Of course it works, that's the first thing I tried.
The issue probably is that the implementation of geiser functions that
ob-scheme uses has been changed.
Oleh
On Thu, Apr 10, 2014 at 11:02 AM, KDr2 wrote:
> Does your "M-x run-geiser" work? It will lead you to a scheme REPL like
> this:
>
> GNU
Does your "M-x run-geiser" work? It will lead you to a scheme REPL like
this:
GNU Guile 2.0.9-deb+1-1
Copyright (C) 1995-2013 Free Software Foundation, Inc.
Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
u
> 0. I use Debian(sid) and Emacs 24
> 1. install guile (using apt): http://www.gnu.org/software/guile/
> 2. install geiser(http://www.nongnu.org/geiser/) with elpa
> and setting for geiser:
>
> (setq geiser-active-implementations '(guile))
> (setq geiser-default-implementation 'guile)
>
Hi, Oleh
Thanks for you reply. Here is my config steps:
0. I use Debian(sid) and Emacs 24
1. install guile (using apt): http://www.gnu.org/software/guile/
2. install geiser(http://www.nongnu.org/geiser/) with elpa
and setting for geiser:
(setq geiser-active-implementations '(guile))
(
Hi,
I tried to have a look at your patch, but ob-scheme has stopped working
for me. Can you send me the minimal init.el to make your scheme-test.org
work in interactive mode?
regards,
Oleh
On Tue, Apr 8, 2014 at 3:56 PM, KDr2 wrote:
> Hi, folks
>
> Has anyone reviewed this patch? Or is there a
Hi, folks
Has anyone reviewed this patch? Or is there a better way to fix the bug?
Thanks.
On Wed, Apr 2, 2014 at 11:48 AM, KDr2 wrote:
> The bug:
> write file ~/scheme-test.org with the content below:
> ---8<--
> #+BEGIN_SRC scheme :exports results :results output raw
> (di
The bug:
write file ~/scheme-test.org with the content below:
---8<--
#+BEGIN_SRC scheme :exports results :results output raw
(display "Hello Scheme in OrgMode")
#+END_SRC
---8<--
and run:
emacs --batch --eval='(load "~/.emacs.d/init.el")' ~/scheme-test.org -f
or
16 matches
Mail list logo