Re: [O] Worg isn't publishing

2015-08-29 Thread Thomas S . Dye

Robert Klein  writes:

> Hi,
>
> On Fri, 28 Aug 2015 12:38:57 -0400
> Kyle Meyer  wrote:
>
>> Thomas S. Dye  writes:
>> 
>> > Aloha all,
>> >
>> > Worg hasn't published for several days.
>> >
>> > All the best,
>> > Tom
>> 
>> I pushed to Worg last night and noticed that it did not update.  I
>> recorded the message below but hadn't got around to emailing the list.
>
> I saw two updates on worg from yesterday, so probably everything is Ok
> again.

I'm not seeing my changes to
http://orgmode.org/worg/org-contrib/babel/languages.html

All the best,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] "no such file or directory" "gnuplot"

2015-08-29 Thread Tobias Frischholz

On 28 Aug 2015, at 15:50, Grant Rettke wrote:


Perhaps it isn't in your =PATH=. Try
https://github.com/purcell/exec-path-from-shell .


That seems like a wonderful solution - *Messages* isn't showing the 
error any more!

However: all it says now is

gnuplot-mode 0.7-beta -- determining gnuplot version ..
gnuplot-mode 0.7-beta (gnuplot 5.0) -- report bugs with "C-c C-u"
Starting gnuplot plotting program...Done

But I'm wondering where the plotted data is. There's nothing - neither 
in the org file nor in an exported LaTeX pdf... I'm really puzzled.



Tobias

PGP PUBLIC KEY: http://pgp.mit.edu/pks/lookup?search=0xCD463AC1&op=index



Re: [O] org-mode 3.5.1 emacs 24: invalid-functon 41

2015-08-29 Thread Martin Steffen


Hi,

thanks for the info. I tried to reproduce the error but failed, which
means, in the meantime org 3.5.1  works. 

Note, however, that it's no longer the same git-reversion. When I first
stumbled upon it, it was org-version 3.5.1 and the then latest pull from
the git-server. Since it basically made all of org unsusable ("RETURN"
did not work any longer), I decided to ``go back in time'' and
git-pulled an earlier version (namely the one git-labeled "release
3.5").

Now, in order to reproduce the error (and try the patch), I pulled the
now latest one, and the ``41-error'' does _not_ show up. I also applied
to small patch (because the 2 lines you pointed at do appear in the
org-element.el file), but that does not lead to an immediately visible
change (but as said, the error was gone already).

Unfortunately, I don't know which exact revision it was that showed that
problem ---I think in the meantime I did not also update emacs
itself---, but if it disappeared in the now latest version, I am content
as well.


Thanks, Martin


Nicolas> Hello,

Nicolas> Martin Steffen  writes:

>> org-element--set-regexps: Invalid function: 41

Nicolas> 41 is ?\) character. I think the problem lies in this
Nicolas> snippet from `org-element--set-regexps'

Nicolas>   (case org-plain-list-ordered-item-terminator (?\) ")")
Nicolas> (?. "\\.") (otherwise "[.)]"))  ^^^




Nicolas> Could you try the following patch?

Nicolas> diff --git a/lisp/org-element.el b/lisp/org-element.el
Nicolas> index 8f41ab2..7b95e0d 100644 --- a/lisp/org-element.el +++
Nicolas> b/lisp/org-element.el @@ -177,8 +177,11 @@ specially in
Nicolas> `org-element--object-lex'.")  ;; Clock lines.
Nicolas> (regexp-quote org-clock-string) "\\|" ;; Lists.  - (let
Nicolas> ((term (case org-plain-list-ordered-item-terminator - (?\)
Nicolas> ")") (?. "\\.") (otherwise "[.)]")))  + (let ((term (if
Nicolas> (characterp + org-plain-list-ordered-item-terminator) +
Nicolas> (char-to-string + org-plain-list-ordered-item-terminator) +
Nicolas> "[.)]"))  (alpha (and org-list-allow-alphabetical
Nicolas> "\\|[A-Za-z]"))) (concat "\\(?:[-+*]\\|\\(?:[0-9]+" alpha
Nicolas> "\\)" term "\\)" "\\(?:[ \t]\\|$\\)"))


Nicolas> Regards,

Nicolas> -- Nicolas Goaziou



Re: [O] Strange behavior of C-c C-x C-d

2015-08-29 Thread Nicolas Goaziou
Hello,

Marcin Borkowski  writes:

> I have this:
>
> * TODO Some task
> :LOGBOOK:
> CLOCK: [2015-08-29 sob 08:45]--[2015-08-29 sob 08:50] =>  0:05
> CLOCK: [2014-11-06 czw 01:41]--[2014-11-06 czw 01:53] =>  0:12
> :END:
>
> and pressing C-c C-x C-d reveals that the 12 minutes of last year are
> not counted.  The problem disappears with emacs -Q.  Before I bisect my
> long-ish init.el: does anyone know what might be the cause for that?

You probably need to tweak `org-clock-display-default-range'.

Regards,

-- 
Nicolas Goaziou



Re: [O] problems with beamer under the new exporter: no theme; unable to specify heading level; slides fill from bottom up

2015-08-29 Thread Joseph Vidal-Rosset
2015-07-27 6:06 GMT+02:00 Christopher W. Ryan :

> Below is a minimal working example of my problem. The trouble is that
> the Berlin theme is not applied--it remains the default theme.
>


Hello the list,

I meet exactly the same problem.
I just followed this web-page :
http://emacs-fu.blogspot.ca/2009/10/writing-presentations-with-org-mode-and.html
but surprisingly I do not succeed to change the beamer theme. I do not get
for example CambridgeUS.

Your help is welcome.

Best wishes

Jo.


Re: [O] "no such file or directory" "gnuplot"

2015-08-29 Thread Grant Rettke
If you initial issue is addressed then please start a new email thread.

Include information about the version of emacs, version of org mode,
version of gnuplot, and walk us through the steps that you performed,
on what data, what you expected would happen, and then what actually
happened. That way we can try it out, too
Grant Rettke
--
g...@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
“All creativity is an extended form of a joke.” --Kay
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson


On Sat, Aug 29, 2015 at 5:15 AM, Tobias Frischholz  wrote:
> On 28 Aug 2015, at 15:50, Grant Rettke wrote:
>
>> Perhaps it isn't in your =PATH=. Try
>> https://github.com/purcell/exec-path-from-shell .
>
>
> That seems like a wonderful solution - *Messages* isn't showing the error
> any more!
> However: all it says now is
>
> gnuplot-mode 0.7-beta -- determining gnuplot version ..
> gnuplot-mode 0.7-beta (gnuplot 5.0) -- report bugs with "C-c C-u"
> Starting gnuplot plotting program...Done
>
> But I'm wondering where the plotted data is. There's nothing - neither in
> the org file nor in an exported LaTeX pdf... I'm really puzzled.
>
>
> Tobias
>
>
> PGP PUBLIC KEY: http://pgp.mit.edu/pks/lookup?search=0xCD463AC1&op=index



Re: [O] Auto org-mobile-push kills buffer

2015-08-29 Thread Jorge
This has happened two more times.

On Wed, Aug 26, 2015 at 11:43 AM, Jorge  wrote:
> Hi.  I use MobileOrg.  To automate org-mobile-push I have installed
> the code below from
> https://github.com/matburt/mobileorg-android/wiki/FAQ.  However, the
> code sometimes does weird things, such as killing the current buffer
> (happened twice).
> Is this a known bug?  Also, in the last line, why is the lambda quoted?
>
> ;; https://github.com/matburt/mobileorg-android/wiki/FAQ
> (defvar org-mobile-push-timer nil
>   "Timer that `org-mobile-push-timer' used to reschedule itself, or nil.")
>
> (defun org-mobile-push-with-delay (secs)
>   (when org-mobile-push-timer
> (cancel-timer org-mobile-push-timer))
>   (setq org-mobile-push-timer
> (run-with-idle-timer
>  (* 1 secs) nil #'org-mobile-push)))
>
> (add-hook 'after-save-hook
>  (lambda ()
>(when (eq major-mode 'org-mode)
>  (dolist (file (org-mobile-files-alist))
>   (if (string= (file-truename (expand-file-name (car file)))
>   (file-truename (buffer-file-name)))
>(org-mobile-push-with-delay 30)))
>  )))
>
> ;; refreshes agenda file each day
> (run-at-time "00:05" 86400 '(lambda () (org-mobile-push-with-delay 1)))



Re: [O] Strange behavior of C-c C-x C-d

2015-08-29 Thread Marcin Borkowski

On 2015-08-29, at 13:31, Nicolas Goaziou  wrote:

> Hello,
>
> Marcin Borkowski  writes:
>
>> I have this:
>>
>> * TODO Some task
>> :LOGBOOK:
>> CLOCK: [2015-08-29 sob 08:45]--[2015-08-29 sob 08:50] =>  0:05
>> CLOCK: [2014-11-06 czw 01:41]--[2014-11-06 czw 01:53] =>  0:12
>> :END:
>>
>> and pressing C-c C-x C-d reveals that the 12 minutes of last year are
>> not counted.  The problem disappears with emacs -Q.  Before I bisect my
>> long-ish init.el: does anyone know what might be the cause for that?
>
> You probably need to tweak `org-clock-display-default-range'.

Ah, thanks!  (It's not mentioned in the docs, and C-h v'ing it says:

--8<---cut here---start->8---
org-clock-display-default-range is a variable defined in `org-clock.el'.
Its value is thisyear

Documentation:
Default range when displaying clocks with `org-clock-display'.
--8<---cut here---end--->8---

I skimmed through the definition of `org-clock-special-range', and I'm
not sure whether there is a setting for
`org-clock-display-default-range' like 'all, so that everything is
summed up?  (I have projects that last more than one year, and sometimes
I'd like to be able to see at a glance how long they took.)

(I guess that introducing 'thiscentury would be enough. ;-) )

> Regards,

Thanks again,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



[O] [bug] org-open-file: ignores browse-url settings

2015-08-29 Thread Rasmus
Hi,

>From Emacs-devel:

 From: ra...@google.com
 Subject: org-open-file: ignores browse-url settings
 Date: the 21st of August 2015 at 20:07
 Archived-At: 

 Function org-open-file uses customization variable org-file-apps to
 decide how to open a file.
 Unfortunately it's also making it difficult / impossible to set it up
 so that  org files exported to HTML open in Emacs using EWW ---
 -specifically: the customization interface for org-file-apps claims to
 let you provide a custom lisp form which in principle should let one
 specify browse-url -- (admittedly convoluted ) but even that fails to
 work -- mostly because the documentation is somewhat light with
 respect to showing how one gets ones hands on the matched link.


My personal opinion would be to get rid of org-file-apps.  Opening files
correctly is the job of either Emacs or the OS.

Rasmus

-- 
. . . It begins of course with The Internet.  A Net of Peers




Re: [O] Strange behavior of C-c C-x C-d

2015-08-29 Thread Nicolas Goaziou
Marcin Borkowski  writes:

> org-clock-display-default-range is a variable defined in `org-clock.el'.
> Its value is thisyear
>
> Documentation:
> Default range when displaying clocks with `org-clock-display'.
>
> I skimmed through the definition of `org-clock-special-range', and I'm
> not sure whether there is a setting for
> `org-clock-display-default-range' like 'all, so that everything is
> summed up?  (I have projects that last more than one year, and sometimes
> I'd like to be able to see at a glance how long they took.)

The docstring and the manual could be improved, indeed. Do you want to
provide a patch for that?

> (I guess that introducing 'thiscentury would be enough. ;-) )

I introduced `untilnow' recently.


Regards,



[O] Latex/Table: horizontal line spanning some cells

2015-08-29 Thread Vikas Rawal
In a table, I would like some horizontal lines that span only some columns, and 
not the whole width. My document has to be exported to latex, in which you need 
something like \cline{4-5} for a horizontal line spanning columns 4-5 
(http://tex.stackexchange.com/questions/8549/how-can-i-draw-a-horizontal-line-spanning-only-some-of-the-table-cells
 
).
 
How could I do this in org, so that I will get the right latex export.

Has anyone done this in org?

Vikas



Re: [O] Latex/Table: horizontal line spanning some cells

2015-08-29 Thread Rasmus
Hi,

Vikas Rawal  writes:

> In a table, I would like some horizontal lines that span only some
> columns, and not the whole width. My document has to be exported to
> latex, in which you need something like \cline{4-5} for a horizontal
> line spanning columns 4-5

For bookstabs you'd use \cmidrule(·){·-·}.

AFAIK, there's no support for this.

There's column groups, but they will insert vertical lines, which is
arguably (much) less interesting.

Perhaps we would add support for other groupings as well, e.g.

| / | ( | ) |   |
|   | a | b | c |
|---+---+---+---|

It would also be nice to add multicolumns.

> How could I do this in org, so that I will get the right latex export.

For now you'd have to go with a filter or maybe use other means to produce
a table.  In the past, when I have needed more complex tables I've usually
used a mix of Hmisc in R, babel and some Emacs-lisp to clean it up...  Not
so nice.

> Has anyone done this in org?

Undoubtedly.

Rasmus

-- 
Hvor meget poesi tror De kommer ud af et glas isvand?




Re: [O] [bug] org-cycle changed behavior in orgstruct-mode

2015-08-29 Thread Rasmus
Nicolas Goaziou  writes:

> Rasmus  writes:
>
>> I tried to recompile with that line commented out but it doesn't make a
>> difference.  I also tried to remove that defun from orgstruct-setup, but
>> that also didn't make change anything.
>
> What if you replace the defun with `show-children' in `orgstruct-setup'
> instead of simply removing the line? You may want to still comment out
> the line above though.

I tried to add show-children, and NOT have org-show-children in the setup
but alas it doesn't change the situation.  But anyway it's called through
`org-cycle', in my use-case at least.  This in turn rely on at least
org-cycle-internal-local which in turn uses org-show-children.

So maybe the easiest way to "fix" this is to advice orgstruct to redirect
call?  Maybe add-function :around... We can rely on nadvice in master,
right?

Rasmus

-- 
Need more coffee. . .




[O] Set babel scheme to chicken?

2015-08-29 Thread Lawrence Bottorff
I have a few schemes installed on my computer (MIT, guile, chicken), but
when I run such code as this

#+BEGIN_SRC scheme :session one
(define (myadd x y)
   (+ x y))
#+END_SRC

it works -- beautifully with multiple REPLs (as you name them in the
:session) -- but it always grabs the guile. I'd like it to use chicken
instead -- or maybe later MIT. I've got latest geiser installed as well
that should handle chicken. How can I use chicken inside of orgmode scheme
code blocks? Wild guess, guile is first on some list, i.e., path? babel
customize didn't seem to have an entry for which flavor.

LB


[O] gnuplot export: Symbol's value as variable is void: org-export-filters-alist

2015-08-29 Thread Tobias Frischholz

Hi List,

I have a hard time getting gnuplot to run.

Right now I've done a C-c " g on this table:

#+PLOT: title:"Citas" ind:1 deps:(3) type:2d with:histograms set:"yrange 
[0:]"

  | Sede  | Max cites | H-index |
  |---+---+-|
  | Chile |257.72 |   21.39 |
  | Leeds |165.77 |   19.68 |
  | Sao Paolo | 71.00 |   11.50 |
  | Stockholm |134.19 |   14.33 |
  | Morelia   |257.56 |   17.67 |

I get this in *Messages*:

gnuplot-mode 0.7-beta -- determining gnuplot version ..
gnuplot-mode 0.7-beta (gnuplot 5.0) -- report bugs with "C-c C-u"
Starting gnuplot plotting program...Done

When I want to export that file with C-c C-e l o I get this weird error:

org-export-as: Symbol's value as variable is void: 
org-export-filters-alist



Heres's my init.el:

(setq user-full-name "Tobias Frischholz"
  user-mail-address "tob...@friolz.com")

(package-initialize)

 ;; https://github.com/purcell/exec-path-from-shell
(when (memq window-system '(mac ns))
  (exec-path-from-shell-initialize))

(require 'org)
(require 'org-install)
(add-to-list 'org-modules "org-habit")

(setq org-todo-keywords
   '((sequence "TODO(t)" "WAIT(w@/!)" "|" "DONE(d!)" 
"CANCELED(c@)")))


(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cc" 'org-capture)
(setq org-default-notes-file "~/org/organizer.org")
(global-set-key (kbd "C-c o")
(lambda () (interactive) (find-file 
"~/org/organizer.org")))

(global-set-key "\C-cb" 'org-iswitchb)

(setq org-agenda-files (list "~/org/organizer.org"))

(setq org-feed-alist
  '(("Hacker News"
  "https://news.ycombinator.com/rss";
  "~/org/feeds.org" "Hacker News Entries")
  ("SZ"
	  
"http://rss.sueddeutsche.de/app/service/rss/alles/index.rss?output=rss";

  "~/org/feeds.org" "SZ Entries")))


(require 'package)
(add-to-list 'package-archives
 '("melpa" . "https://melpa.org/packages/";))

(add-to-list 'load-path "~/elisp/erc")
(require 'erc)

(add-to-list 'load-path "~/.elisp/gnuplot-mode/")
(require 'gnuplot)

(setq inhibit-startup-message t)

(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(custom-enabled-themes (quote (sanityinc-solarized-light)))
 '(custom-safe-themes
   (quote
("4aee8551b53a43a883cb0b7f3255d6859d766b6c5e14bcb01bed572fcbef4328" 
"4cf3221feff536e2b3385209e9b9dc4c2e0818a69a1cdb4b522756bcdf4e00a4" 
default

(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )


--
Tobi

PGP PUBLIC KEY: http://pgp.mit.edu/pks/lookup?search=0xCD463AC1&op=index



Re: [O] Set babel scheme to chicken?

2015-08-29 Thread Thomas S . Dye
Aloha Lawrence,

Lawrence Bottorff  writes:

> I have a few schemes installed on my computer (MIT, guile, chicken), but
> when I run such code as this
>
> #+BEGIN_SRC scheme :session one
> (define (myadd x y)
>(+ x y))
> #+END_SRC
>
> it works -- beautifully with multiple REPLs (as you name them in the
> :session) -- but it always grabs the guile. I'd like it to use chicken
> instead -- or maybe later MIT. I've got latest geiser installed as well
> that should handle chicken. How can I use chicken inside of orgmode scheme
> code blocks? Wild guess, guile is first on some list, i.e., path? babel
> customize didn't seem to have an entry for which flavor.

Looking at the code, there is a :scheme header argument that can
indicate what scheme implementation should be used.  Otherwise, it
appears to use geiser-impl--implementation, which a comment says is
defined in geiser-impl.el.  There is also geiser-default-implementation
and geiser-active-implementations from that same source.

hth,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] Set babel scheme to chicken?

2015-08-29 Thread Lawrence Bottorff
Not sure what the :scheme header argument might be or how to change it.
However, changing the geiser-impl--implementation (changed order to make
sure) and geiser-default-implementation seemed to do the trick. My bad
overlooking this.

Thanks,
LB

On Sat, Aug 29, 2015 at 10:45 PM, Thomas S. Dye  wrote:

> Aloha Lawrence,
>
> Lawrence Bottorff  writes:
>
> > I have a few schemes installed on my computer (MIT, guile, chicken), but
> > when I run such code as this
> >
> > #+BEGIN_SRC scheme :session one
> > (define (myadd x y)
> >(+ x y))
> > #+END_SRC
> >
> > it works -- beautifully with multiple REPLs (as you name them in the
> > :session) -- but it always grabs the guile. I'd like it to use chicken
> > instead -- or maybe later MIT. I've got latest geiser installed as well
> > that should handle chicken. How can I use chicken inside of orgmode
> scheme
> > code blocks? Wild guess, guile is first on some list, i.e., path? babel
> > customize didn't seem to have an entry for which flavor.
>
> Looking at the code, there is a :scheme header argument that can
> indicate what scheme implementation should be used.  Otherwise, it
> appears to use geiser-impl--implementation, which a comment says is
> defined in geiser-impl.el.  There is also geiser-default-implementation
> and geiser-active-implementations from that same source.
>
> hth,
> Tom
>
> --
> Thomas S. Dye
> http://www.tsdye.com
>


Re: [O] Latex/Table: horizontal line spanning some cells

2015-08-29 Thread Vikas Rawal
> 
> For now you'd have to go with a filter or maybe use other means to produce
> a table.  In the past, when I have needed more complex tables I've usually
> used a mix of Hmisc in R, babel and some Emacs-lisp to clean it up...  Not
> so nice.


At this stage, I think I will just manually fix the final latex export. I do 
not know enough Emacs-lisp to be able to do this.

I have an org file (with a lot of embedded R and by now a lot of embedded 
LaTeX) producing a final pdf for a book, which goes to press in three days. I 
would be sorry if there is this little thing that I am unable to do in org :(.

Sometime back, Eric Schulte had very kindly shared code that creates 
multicolumn cells in latex export. I have used it extensively. I think that 
should be integrated into org.

In the meanwhile, I hope somebody can come up with a way to insert \cmidrule in 
tables before my next project :).

Thank you, and thank you all.

Vikas


Re: [O] Set babel scheme to chicken?

2015-08-29 Thread Thomas S . Dye

Lawrence Bottorff  writes:

> Not sure what the :scheme header argument might be or how to change it.

I think this might work, but don't have a scheme to check it out.

#+BEGIN_SRC scheme :session one :scheme chicken
  (define (myadd x y)
(+ x y))
#+END_SRC

hth,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com



[O] [PATCH] org-mime: Use `compose-mail' to send mail

2015-08-29 Thread Erik Hetzner
* contrib/lisp/org-mime.el (org-mime-compose): Use `compose-mail' to
send mail.  Allows customization via `mail-user-agent'.

TINYCHANGE
---
 contrib/lisp/org-mime.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/lisp/org-mime.el b/contrib/lisp/org-mime.el
index 078ebef..682f635 100644
--- a/contrib/lisp/org-mime.el
+++ b/contrib/lisp/org-mime.el
@@ -285,7 +285,7 @@ otherwise export the entire body."
 
 (defun org-mime-compose (body fmt file &optional to subject headers)
   (require 'message)
-  (message-mail to subject headers nil)
+  (compose-mail to subject headers nil)
   (message-goto-body)
   (let ((bhook
 (lambda (body fmt)
-- 
2.1.4




Re: [O] Worg isn't publishing

2015-08-29 Thread Robert Klein
Hi,


Thomas S. Dye  wrote:

> 
> Robert Klein  writes:
> 
> > Hi,
> >
> > Kyle Meyer  wrote:
> >
> >> Thomas S. Dye  writes:
> >> 
> >> > Aloha all,
> >> >
> >> > Worg hasn't published for several days.
> >> >
> >> > All the best,
> >> > Tom
> >> 
> >> I pushed to Worg last night and noticed that it did not update.  I
> >> recorded the message below but hadn't got around to emailing the
> >> list.
> >
> > I saw two updates on worg from yesterday, so probably everything is
> > Ok again.
> 
> I'm not seeing my changes to
> http://orgmode.org/worg/org-contrib/babel/languages.html
> 
> All the best,
> Tom
> 



I fixed the build.  Your changes now show up.

Best regards
Robert