[O] Repeated task, every other day, at a specific time, but how?

2015-10-30 Thread Sharon Kimble
I'm trying to schedule a task, which is a habit, for every other day at
0900, like this -

--8<---cut here---start->8---
** TODO put slow cooker on for tea
SCHEDULED: <2015-10-28 Wed 09:00 .+2>
:PROPERTIES:
:LAST_REPEAT: [2015-09-09 Wed 07:17]
:END:
:LOGBOOK:  
:STYLE: habit
:REPEAT_TO_STATE: TODO
:END:
--8<---cut here---end--->8---

But it is consistently failing, and refusing to update for the next
required day.

I can get it working if I omit the time, but I'd rather have it working
with the time as well.

So where am I going wrong then please?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.0, fluxbox 1.3.7, emacs 24.5.1


signature.asc
Description: PGP signature


[O] TODO items which do not appear in the agenda?

2015-10-30 Thread Marcin Borkowski
Hi all,

I would like to have some TODO items, so that I can mark some tasks as
incomplete; however, I don't want them to appear in the agenda, so that
it's not too cluttered.  Use case:

* Blog
** DONE Blog post idea 1
** TODO Blog post idea 2

I know about (setq org-agenda-todo-list-sublevels nil).  However,
marking the whole "Blog" headline as DONE only so that I don't see the
individual post ideas in my agenda seems hackish.

I also know that I could define my own TODO items and use filtering
(maybe even with a custom agenda command).  Maybe this is the way to go,
but somehow I'd prefer a simple set of TODO keywords
(TODO/DONE/CANCELED, for instance).

So, does the Org hive mind have any other ideas how to implement "TODO
items which do not appear in the agenda"?

TIA

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



[O] contributing to work on citations

2015-10-30 Thread Matt Price
So, from the "some projects" thread I have the sense there is a group of
users with some interest in improving citation support. What is the best
way to kickstart that process? it seems to me that, at a minimum, the
following is needed:

1. Finalization of the citation syntax.

IIUC, This involves refining and merging the work in the wip-cite git
branch.

2. Choice of a citation creation tool

IIUC, the two main candidates are pandoc-citeproc and citeproc-js/node.
Pandoc-citeproc works well but requires users to install the whole pandoc
infrastructure, and needs to be wrapped in a thin tool for use with org.
Citeproc-node has fewer dependencies (I guess), but needs to be updated to
support additional output formats (e.g. latex, odt, and org) and is a
little more elaborate to run from the command line (runs as a service, can
only be communicated with over http).

3. Handling of citation links in the various export engines
Functions must be written to handle citations in, at minimum, latex, html,
and org

4. Interface with backends
Org should be able to talk to bibtex and zotero databases, at least (and
maybe more).

A lot of this work has already been done. Richard has written org-citeproc
as a wrapper for pandoc-citeproc https://github.com/wyleyr/org-citeproc .
Aaron has written some functions for org-citeproc in the wip-cite-awe
branch. Nicolas has developed the syntax in wip-cite. I even have a fork of
citeproc-node that could be used to develop the missing features we need.
And of course John has org-ref (
http://kitchingroup.cheme.cmu.edu/blog/2014/05/13/Using-org-ref-for-citations-and-references/)
while Erik H has zotxt-emacs for Zotero integration (
https://github.com/egh/zotxt-emacs).

What would be the best next move? It seems to me there are enough moving
parts that the process will be quite a bit easier if we co-ordinate.

thanks,
Matt


[O] Babel: How to call code in one org file into another org file

2015-10-30 Thread Lawrence Bottorff
There are many, many Babel examples, but I can't seem to find this
functionality: A function in a Lisp code block in one org file is to be
called from a Lisp code block in another org file. Is this possible? I know
you can stick stuff into your personal "Library of Babel," but I just want
to write a Lisp block that calls a function from another org file. I'll
have SLIME running, of course.


file1.org:
...
 #+begin_src lisp
(defun foo ()
   (...))
#+end_src

is then called from. . .

file2.org:
...
#+begin_src lisp
(defun baa ()
  (foo))
#+end_src


LB


Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread Thomas S . Dye
Aloha Lawrence,

Lawrence Bottorff  writes:

> There are many, many Babel examples, but I can't seem to find this
> functionality: A function in a Lisp code block in one org file is to be
> called from a Lisp code block in another org file. Is this possible? I know
> you can stick stuff into your personal "Library of Babel," but I just want
> to write a Lisp block that calls a function from another org file. I'll
> have SLIME running, of course.
>
>
> file1.org:
> ...
>  #+begin_src lisp
> (defun foo ()
>(...))
> #+end_src
>
> is then called from. . .
>
> file2.org:
> ...
> #+begin_src lisp
> (defun baa ()
>   (foo))
> #+end_src

Any Org mode file can function as Library of Babel.  In your case,
(org-babel-lob-ingest path/to/file1.org) should do what you want.  Note
that org-babel-lob-ingest is bound to C-c C-v i.

hth,
Tom

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



Re: [O] [PATCH] Prevent overwriting of output files from babel calls with nil result

2015-10-30 Thread Éibhear
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 29/10/15 19:59, Aaron Ecay wrote:
> Hi Éibhear,
> 
> Thanks for sending the example.  I think it is not expected to
> work going forward because the lisp block relies on being able to
> pick up the value of ‘params’, which will not be possible now that
> org is moving to lexical binding.  In general,
> org-babel-execute:foo are internal functions, so trying to trick
> them int working properly in an elisp code block is a bad idea.
> 
> The emacs-lisp babel backend is special, so I can’t predict what
> the result would be of making it return the symbol nil instead of
> the string “nil.”  (Though for the sake of consistency it ought to
> allow nil symbol returns.)
> 
> On the balance, I recommend you do something like the following,
> using two code blocks (untested):
> 
> , | #+name: dot-code | #+begin_src emacs-lisp :results
> verbatim | (generate-dot-code) | #+end_src | | #+RESULTS: dot-code 
> | : "your dot code will appear here" | | #+begin_src dot :file
> foo.png :var code=dot-code() | $code | #+end_src | | #+RESULTS: |
> [[file:foo.png]] `
> 
> Hope this helps,
> 

Thanks Aaron.

The following works (":results raw" being the significant change):

,
| #+name: dot-code
| #+begin_src emacs-lisp :results raw
| (generate-dot-code)
| #+end_src
|
| #+RESULTS: dot-code
|
| #+begin_src dot :file foo.png :var code=dot-code()
| $code
| #+end_src
|
| #+RESULTS:
| [[file:foo.png]]
`

Éibhear

- -- 
Éibhear Ó hAnluain
Dublin, Ireland.
+---++
| e-mail: eibhear@gmail.com | Web: [http://www.gibiris.org/] |
| Twitter: @eibhear | Google+: +Éibhear Ó hAnluain   |
| Mobile: +353 86 856 5666  | VoIP: sip:eibh...@linphone.org |
+---++
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlY0ABgACgkQ0ST+nPIXcQZUCgCgpDpWlO2u/D3yT6lMQ7DRO0j4
JV4An2O021+hm6DqwdUXLh8OFKEkUA3v
=+bEL
-END PGP SIGNATURE-



Re: [O] problems with export and :cache

2015-10-30 Thread Andreas Leha
Hi all,

As a follow-up.  The caching produces un-expected results for call lines
'in the other direction' as well: Changes in the arguments to the called
code block do not invalidate the cache.

--8<---cut here---start->8---
* Test Cached Export

** A long running code block.
#+name: foo
#+begin_src emacs-lisp :var bar="baz"
  (sit-for 15)
  (message "bar=%S" bar)
#+end_src


** Cached Calls
Execute these calls one after the other.

#+name: cached_call
#+call: foo("qux") :cache yes

#+results[f2b650eb5296f72a1f7237c2a65b7fb3443acf5f]: cached_call
: bar="qux"


#+name: cached_call
#+call: foo("qux") :cache yes


#+name: cached_call
#+call: foo("quxxx") :cache yes


For me, the last one does not call foo, but I expect it to do so.
--8<---cut here---end--->8---

Regards,
Andreas


PS: I have not updated org yet.




Re: [O] How to hide UP and HOME links ?

2015-10-30 Thread Mehul Sanghvi
I had to use the following CSS entry to make the links invisible:

#org-div-home-and-up {
font-size: 80%;
color: #edf0f2;
background-color: #edf0f2;
}

#org-div-home-and-up a:link, a:visited {
color: #edf0f2;
background-color: #edf0f2;
}

to get what I wanted.


Is there a better way to do this either via org-mode or via CSS ?


cheers,

  mehul


On Fri, Oct 30, 2015 at 8:31 AM, Mehul Sanghvi 
wrote:

>
> I have :html-link-home and :html-link-up defined for my project.  I also
> use the org-info.js script for navigation and so end up with two places
> where the UP and HOME links are available.
>
> How do I prevent or hide the UP and HOME links that are in the
> #org-div-home-and-up HTML div tag?  I want to keep the the Up and Home
> links created by org-info.js visible.
>
> For reference you can look at
>
>
> http://mehul.users.sanghvi.org/no-frills/project-euler/index.html#orgheadline2
>
> in which case the UP and HOME in the upper left corner is what I want to
> hide or prevent from being shown.
>
>
>
> cheers,
>
>   mehul
>
> --
> Mehul N. Sanghvi
> email: mehul.sang...@gmail.com
>



-- 
Mehul N. Sanghvi
email: mehul.sang...@gmail.com


Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread briangpowell .
Could create a named pipe and have one org-mode file write to it and
another org-mode file read from it.

On Fri, Oct 30, 2015 at 4:55 PM, Thomas S. Dye  wrote:

> Aloha Lawrence,
>
> Lawrence Bottorff  writes:
>
> > There are many, many Babel examples, but I can't seem to find this
> > functionality: A function in a Lisp code block in one org file is to be
> > called from a Lisp code block in another org file. Is this possible? I
> know
> > you can stick stuff into your personal "Library of Babel," but I just
> want
> > to write a Lisp block that calls a function from another org file. I'll
> > have SLIME running, of course.
> >
> >
> > file1.org:
> > ...
> >  #+begin_src lisp
> > (defun foo ()
> >(...))
> > #+end_src
> >
> > is then called from. . .
> >
> > file2.org:
> > ...
> > #+begin_src lisp
> > (defun baa ()
> >   (foo))
> > #+end_src
>
> Any Org mode file can function as Library of Babel.  In your case,
> (org-babel-lob-ingest path/to/file1.org) should do what you want.  Note
> that org-babel-lob-ingest is bound to C-c C-v i.
>
> hth,
> Tom
>
> --
> Thomas S. Dye
> http://www.tsdye.com
>
>


Re: [O] Emacs+org-mode in a Docker?

2015-10-30 Thread briangpowell .
* Here are some of my notes+URL links on some docker+emacs experiments thus
far:

** Last I checked some glimmering developments seem to be coming to light
in the docker+emacs realm:

*** Believe some links below might be stepping-stones for your students,
Dr. Kitchin:

** Happily, below, I note coming across some work by one of our favorite
Elisp hackers of "elnode" fame: Nic Ferrier

** "docker.el" was in development too last I looked into this--see link
below.

* Linux Containers: ###1 read and take advice here FIRST:
http://stackoverflow.com/questions/27083182/running-emacs-in-a-docker-container


** These links are slightly tangential but I suggest them since they're
also stepping-stones to really what's going on under-the-docker-hood:

** https://en.wikipedia.org/wiki/Copy-on-write
**
http://www.linuxjournal.com/content/docker-lightweight-linux-containers-consistent-development-and-deployment?page=0,0
** http://www.liquidweb.com/kb/how-to-install-docker-on-ubuntu-14-04-lts
** http://aufs.sourceforge.net
** https://linuxcontainers.org

* Can run xampp on a docker--see notes and experiments below, here are
first checks and steps:
** docker inspect garland/xampp-base docker
** netstat -lnp|grep 8080" ; echo "=>" ; netstat -lnp | grep 8080 ; sleep 3
* Now try to run the xampp container:
docker run -t -i -p 8080:80 garland/xampp-base /bin/bash &

* /opt/lampp/lampp startapache
** http://localhost:8080/xampp/splash.php
** xterm -e docker run -i -t debian /bin/bash
** xterm -e docker run -i -t ubuntu /bin/bash
** docker run -i -t debian /bin/bash &
*** xampp on docker!?:

* Enabling XAMPP Web Interface with docker:

Start Docker in interactive mode

[[shell:docker run -t -i -p 8080:80 garland/xampp-base /bin/bash &]]

vim /opt/lampp/etc/extra/httpd-xampp.conf
Remove the bottom 4 lines.docker.el
 Commented out the bottom 4 lines and then this got it semi-working
(returned "Object not found!" error) after I did this:
/opt/lampp/lampp startapache
google-chrome http://localhost:8080/:80
* This worked!(after starting apache in the docker xterm): google
http://localhost:8080/xampp/splash.php

** https://github.com/Silex/docker.el

* [[shell:echo * Put emacs in Docker(but remember all writes will be
lost--so to really keep things write to volume(s)):";cd;docker pull
biscarch/emacs &]]

** Just mounted a "volume" (to Docker: volumes are read-write(usually) dirs
and/or files outside the Union File system (aufs) and available to the host
AND the container)
docker run -it --name container-test -h CONTAINER -v /data debian /bin/bash
docker inspect -f {{.Volumes}} container-test =>
map[/data:/var/lib/docker/vfs/dir/79d22ddf7a12b6e283c74df521289adb6b537883686eb43aa3c2405f0c6aacae]
date >
/var/lib/docker/vfs/dir/79d22ddf7a12b6e283c74df521289adb6b537883686eb43aa3c2405f0c6aacae/date.j
root@CONTAINER:/# cat /data/date.j => Mon Jul 20 09:08:33 EDT 2015
** http://container-solutions.com/understanding-volumes-docker/ "Quite
simply, volumes are directories (or files) that are outside of the default
Union File System and exist as normal directories and files on the host
filesystem."
In order to be able to save (persist) data and share data between
containers, Docker came up with the concept of volumes:
Quite simply, volumes are directories (or files) that are outside of the
default Union File System and exist as normal directories and files on the
host filesystem.
There are two ways to initialise volumes, with some subtle differences that
are important to understand. We can declare a volume at run-time with the
-v flag:

$ docker run -it --name container-test -h CONTAINER -v /data debian
/bin/bash

root@CONTAINER:/# ls /data
root@CONTAINER:/#
This will make the directory /data inside the container live outside the
Union File System and directly accessible on the host.
*** Trying this but fails--may have to do before booting the container?:
docker run -v /home/b/data55:/data55 debian ls /data55
** Can also give access to a "volume" that is available in one container to
another
*** Can't you use FUSE with a container!?
** "you can also mount a directory from your own host into a container:"
$ sudo docker run -d -P --name web -v /src/webapp:/opt/webapp
training/webapp python app.py
*** The above will mount the local directory, /src/webapp, into the
container as the /opt/webapp directory. This is very useful for testing;
for example,
we can mount our source code inside the container and see our application
at work as we change the source code!
 But with UNIONFS and AUFS this functionality has been available for
many years.
** To test docker install
docker search debian
docker pull debian
docker run -i -t debian /bin/bash
*** And/or
docker pull ubuntu
docker run -i -t ubuntu /bin/bash
* Yet another emacs in a docker(which I've done successfully--see
above--but this is "dmacs"): [[https://github.com/bcbcarl/docker-emacs]]
docker pull bcbcarl/emacs
sudo curl -L

Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread John Kitchin
I don't think this is possible. You probably need some tangling and
loading to make it happen the way I understand it.

Lawrence Bottorff writes:

> There are many, many Babel examples, but I can't seem to find this
> functionality: A function in a Lisp code block in one org file is to be
> called from a Lisp code block in another org file. Is this possible? I know
> you can stick stuff into your personal "Library of Babel," but I just want
> to write a Lisp block that calls a function from another org file. I'll
> have SLIME running, of course.
>
>
> file1.org:
> ...
>  #+begin_src lisp
> (defun foo ()
>(...))
> #+end_src
>
> is then called from. . .
>
> file2.org:
> ...
> #+begin_src lisp
> (defun baa ()
>   (foo))
> #+end_src
>
>
> LB

--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] Using org-mode with iOS?

2015-10-30 Thread Ken Mankoff

> On Oct 30, 2015, at 07:13, Peter Davis  wrote:
> 
> I don't think there will be an IOS version of emacs anytime soon

http://gamma-level.com/iphoneos/ports/emacs

  -k. 

Please excuse brevity. Sent from pocket computer with tiny non-haptic feedback 
keyboard. 



[O] Using org-mode with iOS?

2015-10-30 Thread Peter Davis


I'm considering replacing my MacBook with an iPad, and I wondered if 
there's a reasonable way to use org-mode from a tablet. I know there are 
various mobile apps that can sync with org-mode on a "real" computer, 
but I'm looking for something more transparent and robust.


I don't think there will be an IOS version of emacs anytime soon, but I 
thought using some ssh client to connect to my desktop machine might 
work for editing. However, there are gotchas around other software ... 
is there a way to export from org to html and have it open in a browser 
window on the tablet?


One of my most common uses is for authoring blog posts, which I 
typically export to html, and then copy and paste into Blogger. I think 
there are ways to use org with Blogger more seamlessly (less 
seamfully?), right?


I also use org to generate PDFs, but I guess I can walk over to the 
desktop machine for that.


Thanks,
-pd

--

Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com




Re: [O] Markup (=, ~) in word?

2015-10-30 Thread Rainer M Krug
Rasmus  writes:

> Rainer M Krug  writes:
>
>> Hi
>>
>> I guess this is not possible (and has been asked before, but I can't
>> find it t the moment...)- but how can I export the following markup?
>>
>> simASM.=SITE=.=STRATEGY=.=BUDGET=.=FIREREGIME=.=JOBID=.=ARRAYID=
>>
>>
>> Export will be mainly LaTeX, but maybe also html.
>
> You could separate with ZERO WIDTH SPACE.  AFAIR, this requires
> (xe/lua)latex, though.  In org-mode-git, you can set #+latex_command.  You
> can also remove the zero width spaces with a filter.

Looks interesting - thanks.

For the moment, I'll jut use spaces and in the final version, I'll
consider all these options.

Thanks  lot,

Rainer

>
> E.g.
>
> (defcustom rasmus/org-latex-unicode-to-tex  '((" " "~")
> (" " "\\,")
> ("​" ""))
>   "list of re rep pairs which are replaced during latex export")
>
> (defun rasmus/org-latex-unicode-to-tex (text backend info)
>   "Replace unicode strings with their TeX equivalents.
>
>   Currently:  ' ' (no break space) to '~'
>   ' ' (thin space) to '\,'
>   '​'  (zero width space) to ''."
>   (when (org-export-derived-backend-p backend 'latex)
> (cl-loop for (re rep) in rasmus/org-latex-unicode-to-tex do
>  (setq text (replace-regexp-in-string re rep text t t)))
> text))
>
> (add-to-list 'org-export-filter-final-output-functions
>  'rasmus/org-latex-unicode-to-tex)

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: [O] Bug: cached code blocks should return the same value [8.3.1]

2015-10-30 Thread Aaron Ecay
Hi Benda,

2015ko irailak 18an, Benda Xu-ek idatzi zuen:

[...]

> However, this feature does not work with cache.  In case that "input"
> code block takes a long time to evaluate, it is a good idea to cache the
> result.  But that returns "nil" in subsequent function calls:
> 
>#+name: input
>#+BEGIN_SRC sh :results output :cache yes
>echo "3"
>#+END_SRC
> 
>#+RESULTS[f69ecd305ebd448fc39b05809d214261a777c6bc]: input
>: 3
> 
>#+BEGIN_SRC R :var a=input()
>a
>#+END_SRC
> 
>#+RESULTS:
>: nil
> 
> Recalling the cached function should return exactly the same result by
> definition of "cache".

I can’t reproduce this on org master.

> 
> Or is there a way to circumvent this by referring to the "RESULT" field
> directly?

I believe you can add a name to the results, and use that:

,
| #+name: input
| #+BEGIN_SRC sh :results output :cache yes
| echo "3"
| #+END_SRC
| 
| #+name: input-results
| #+RESULTS[f69ecd305ebd448fc39b05809d214261a777c6bc]: input
| : 3
| 
| #+BEGIN_SRC R :var a=input-results
| a
| #+END_SRC
| 
| #+RESULTS:
| : 3
`


Hope this helps,

-- 
Aaron Ecay



Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread John Kitchin
Odd. I found this I wrote before 
http://kitchingroup.cheme.cmu.edu/blog/2014/06/24/Using-org-files-like-el-files/

What org version do you have?

On October 30, 2015, at 10:15 PM, Lawrence Bottorff  wrote:

@John Kitchin: I can't seem to find a `org-babel-load-file`.

 




Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread Lawrence Bottorff
Org-mode version 8.3.2 (8.3.2-10-g00dacd-elpa @
../.emacs.d/elpa/org-20151005/)

Did you all see my post directly before? The whole LOB idea seems not to
work with Lisp/SLIME. . .


Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread Lawrence Bottorff
In my init file I have

(custom-set-variables
  . . .
   '(org-babel-lob-files
   (quote
("/home/hercynian/org/babeltest/a.org" "/home/hercynian/org/babeltest/
b.org")))

that, of course, lasted an Emacs reboot after I had set them with
customization. But then right after Emacs reboot, looking into the contents
of `org-babel-library-of-babel`, I do not see the "association list" of the
entire code blocks of a.org and b.org as I did in the last Emacs/org-mode
session when I ran `org-babel-lob-ingest` on a.org and b.org. So
`org-babel-library-of-babel` is populated only
through `org-babel-lob-ingest`. Next question was, Does code alive in the
current `org-babel-library-of-babel` make it live and ready to use?
Apparently not. Experimenting has shown that starting Emacs not only does
not auto-populate `org-babel-library-of-babel`, but even when I do
a `org-babel-lob-ingest` on a.org and b.org, SLIME takes no notice and
fails to see the functions in a.org and b.org.

Here's my `org-babel-library-of-babel`:

Value: ((multi_x2 "lisp" "(defun multi_x2 (x)\n  (* 2 x))"
   ((:comments . "")
(:shebang . "")
(:cache . "no")
(:padline . "")
(:noweb . "no")
(:tangle . "no")
(:exports . "code")
(:results . "replace")
(:session)
(:hlines . "no"))
   "" "multi_x2" 0 18)
 (myadd "lisp" "(defun myadd (x y)\n  (+ x y))"
((:comments . "")
 (:shebang . "")
 (:cache . "no")
 (:padline . "")
 (:noweb . "no")
 (:tangle . "no")
 (:exports . "code")
 (:results . "replace")
 (:session)
 (:hlines . "no"))
"" "myadd" 0 15))

which seems like my code block in c.org should know about them, right? No.
Again, Babel LOB seems to have forgotten to tell SLIME the good news. But
then maybe I need to say something specific in my add_x2 code block
about these helper functions I've got in a.org and b.org?


[O] Org markup bug ?

2015-10-30 Thread Mehul Sanghvi
I have the following written in an org file:

  The =\,= allows you to put a Lisp expression there and the =#= is
   the /replace-count/.  Read /*replace-regexp*/ for more information.

When I render this in HTML I get the following:

   The \,= allows you to put a Lisp expression there and the =# is the
*replace-count*. Read *replace-regexp* for more information.

Is this a bug with the parser or am I doing something wrong ?



cheers,

  mehul

-- 
Mehul N. Sanghvi
email: mehul.sang...@gmail.com


Re: [O] How to hide UP and HOME links ?

2015-10-30 Thread Nick Dokos
Mehul Sanghvi  writes:

> I had to use the following CSS entry to make the links invisible:
>
> #org-div-home-and-up {
>     font-size: 80%;
>     color: #edf0f2;
>     background-color: #edf0f2;
> }
>
> to get what I wanted.
>
> Is there a better way to do this either via org-mode or via CSS ? 

   {
  ...
  visibility: invisible;
   }

maybe?

-- 
Nick




Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread Lawrence Bottorff
@John Kitchin: I can't seem to find a `org-babel-load-file`.


Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread Lawrence Bottorff
>
>
> I would use local variables for this--something like (untested):
>
> # eval: (org-babel-lob-ingest path/to/your/file)
> # eval: (sbe "my-add")
> # eval: (sbe "multi_x2")
>
> Computer savvy Org moders don't like eval because anything can happen,
> but if you're willing to trust yourself, then it shouldn't cause any
> problems.
>
> With this near the bottom of your file, whenever you open the file your
> other org files will be loaded into the Library of Babel where you can
> load up function definitions as needed.
>
> Of course, you'll need to have slime running when you open the file.
>
> hth,
> Tom
>

Thanks Tom. Still, I'm wondering if the whole LOB is worth it in
Lisp/SLIME-land. I can load code with org-babel-lob-ingest into
`org-babel-library-of-babel`, but SLIME doesn't seem to know about it --
which sort of defeats the whole purpose, if you follow what I mean. . . .


Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread Lawrence Bottorff
Doing M-x org-babel-lob-files called up a customization buffer that allowed
me to put in many separate file paths. I did this for ../a.org and ../b.org.

a.org:

#+name: myadd
#+begin_src lisp :session
(defun myadd (x y)
  (+ x y))
#+end_src

b.org:

#+name: multi_x2
#+begin_src lisp :session
(defun multi_x2 (x)
  (* 2 x))
#+end_src

then in c.org:

#+name: add_x2
#+begin_src lisp :session
(defun add_x2 (x y)
  (multi_x2 (myadd x y)))
#+end_src

but upon C-c C-c in c.org SLIME didn't know about myadd or multi_x2 ...
until I did C-c C-c in both a.org and b.org for the respective functions.
Then c.org's add_x2 knew about the helper functions. That is
wonderful and allows a very distributed and modular approach to org-mode LP
for Lisp. However, it would be nice if I didn't have to acquaint my SLIME
session by hand all of my ingested babel-lob files. Any way to have this
happen automatically upon C-c C-c-ing my main org file? I found this

discussion,
but I don't believe it really addresses my wish.

LB



On Fri, Oct 30, 2015 at 8:55 PM, Thomas S. Dye  wrote:

> Aloha Lawrence,
>
> Lawrence Bottorff  writes:
>
> > There are many, many Babel examples, but I can't seem to find this
> > functionality: A function in a Lisp code block in one org file is to be
> > called from a Lisp code block in another org file. Is this possible? I
> know
> > you can stick stuff into your personal "Library of Babel," but I just
> want
> > to write a Lisp block that calls a function from another org file. I'll
> > have SLIME running, of course.
> >
> >
> > file1.org:
> > ...
> >  #+begin_src lisp
> > (defun foo ()
> >(...))
> > #+end_src
> >
> > is then called from. . .
> >
> > file2.org:
> > ...
> > #+begin_src lisp
> > (defun baa ()
> >   (foo))
> > #+end_src
>
> Any Org mode file can function as Library of Babel.  In your case,
> (org-babel-lob-ingest path/to/file1.org) should do what you want.  Note
> that org-babel-lob-ingest is bound to C-c C-v i.
>
> hth,
> Tom
>
> --
> Thomas S. Dye
> http://www.tsdye.com
>


Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread Thomas S . Dye
Aloha Lawrence,

Lawrence Bottorff  writes:

> Doing M-x org-babel-lob-files called up a customization buffer that allowed
> me to put in many separate file paths. I did this for ../a.org and ../b.org.
>
> a.org:
>
> #+name: myadd
> #+begin_src lisp :session
> (defun myadd (x y)
>   (+ x y))
> #+end_src
>
> b.org:
>
> #+name: multi_x2
> #+begin_src lisp :session
> (defun multi_x2 (x)
>   (* 2 x))
> #+end_src
>
> then in c.org:
>
> #+name: add_x2
> #+begin_src lisp :session
> (defun add_x2 (x y)
>   (multi_x2 (myadd x y)))
> #+end_src
>
> but upon C-c C-c in c.org SLIME didn't know about myadd or multi_x2 ...
> until I did C-c C-c in both a.org and b.org for the respective functions.
> Then c.org's add_x2 knew about the helper functions. That is
> wonderful and allows a very distributed and modular approach to org-mode LP
> for Lisp. However, it would be nice if I didn't have to acquaint my SLIME
> session by hand all of my ingested babel-lob files. Any way to have this
> happen automatically upon C-c C-c-ing my main org file? I found this
> 
> discussion,
> but I don't believe it really addresses my wish.

I would use local variables for this--something like (untested):

# eval: (org-babel-lob-ingest path/to/your/file)
# eval: (sbe "my-add")
# eval: (sbe "multi_x2")

Computer savvy Org moders don't like eval because anything can happen,
but if you're willing to trust yourself, then it shouldn't cause any
problems.

With this near the bottom of your file, whenever you open the file your
other org files will be loaded into the Library of Babel where you can
load up function definitions as needed.

Of course, you'll need to have slime running when you open the file.

hth,
Tom

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



[O] Comment lines interfere with figure options

2015-10-30 Thread Mark Edgington
If I have some org-mode content that looks like this...

#+NAME: fig-myimage
#+CAPTION: Caption of Figure
#+ATTR_LaTeX: :width 5cm
#+RESULTS: myimage
[[file:images/myimage.png]]

then I get a centered figure with the appropriate width and caption
when exporting to LaTeX.  If, however, I add a comment (or two)
in-between one of the option-lines...

#+NAME: fig-myimage
#+CAPTION: Caption of Figure
# (this was the original width)
# +ATTR_LaTeX: width 10cm
#+ATTR_LaTeX: :width 5cm
#+RESULTS: myimage
[[file:images/myimage.png]]

then all of the settings above the comments are lost.  Would it be
difficult to modify org-mode so that comment-lines are ignored when
looking for a block of settings lines that precede an image?  This
seems like sensible behavior to me, and there are cases when it would
be convenient to annotate the options you've used, or to temporarily
replace one option-line with another by commenting one out.



[O] How to hide UP and HOME links ?

2015-10-30 Thread Mehul Sanghvi
I have :html-link-home and :html-link-up defined for my project.  I also
use the org-info.js script for navigation and so end up with two places
where the UP and HOME links are available.

How do I prevent or hide the UP and HOME links that are in the
#org-div-home-and-up HTML div tag?  I want to keep the the Up and Home
links created by org-info.js visible.

For reference you can look at


http://mehul.users.sanghvi.org/no-frills/project-euler/index.html#orgheadline2

in which case the UP and HOME in the upper left corner is what I want to
hide or prevent from being shown.



cheers,

  mehul

-- 
Mehul N. Sanghvi
email: mehul.sang...@gmail.com


Re: [O] Using org-mode with iOS?

2015-10-30 Thread Stelian Iancu

On 30/10/15 12:37, Ken Mankoff wrote:


On Oct 30, 2015, at 07:13, Peter Davis > wrote:


I don't think there will be an IOS version of emacs anytime soon


http://gamma-level.com/iphoneos/ports/emacs



A big drawback of this port, which is a showstopper for me personally, 
is that it requires a jailbrocken device. Otherwise it would be perfect.



   -k.

Please excuse brevity. Sent from pocket computer with tiny non-haptic
feedback keyboard.






[O] Minor regression

2015-10-30 Thread Simon Thum

Hi all,

I have a strange symptom when trying to add a line behind a SCHEDULED: line:

*** TODO BU
SCHEDULED: <2016-01-14 Di>x <-- press CR here

I keep getting a message:

user-error: No link found

and cannot insert that line from the point described. I'm on maint 
(54d3032cdcc2c2c30efac41e84ae4ab0543f7ad2, to be precise) and only 
recently noticed this behaviour.


HTH,

Simon



Re: [O] Using org-mode with iOS?

2015-10-30 Thread Peter Davis


On 10/30/15 7:37 AM, Ken Mankoff wrote:


On Oct 30, 2015, at 07:13, Peter Davis > wrote:



I don't think there will be an IOS version of emacs anytime soon


http://gamma-level.com/iphoneos/ports/emacs



Cool! I wonder how it works on an iPad with a keyboard.

-pd



Re: [O] Comment lines interfere with figure options

2015-10-30 Thread Nicolas Goaziou
Hello,

Mark Edgington  writes:

> If I have some org-mode content that looks like this...
>
> #+NAME: fig-myimage
> #+CAPTION: Caption of Figure
> #+ATTR_LaTeX: :width 5cm
> #+RESULTS: myimage
> [[file:images/myimage.png]]
>
> then I get a centered figure with the appropriate width and caption
> when exporting to LaTeX.  If, however, I add a comment (or two)
> in-between one of the option-lines...
>
> #+NAME: fig-myimage
> #+CAPTION: Caption of Figure
> # (this was the original width)
> # +ATTR_LaTeX: width 10cm
> #+ATTR_LaTeX: :width 5cm
> #+RESULTS: myimage
> [[file:images/myimage.png]]
>
> then all of the settings above the comments are lost.  Would it be
> difficult to modify org-mode so that comment-lines are ignored when
> looking for a block of settings lines that precede an image?

It means introducing a special cases for comments (i.e.,
comments-in-attributes). I'm not a big fan of special cases.

However you can comment the attribute above the block, e.g.,

  # (this was the original width)
  # +ATTR_LaTeX: width 10cm
  #+NAME: fig-myimage
  #+CAPTION: Caption of Figure
  #+ATTR_LaTeX: :width 5cm
  #+RESULTS: myimage
  [[file:images/myimage.png]]

It is very easy to do with M-S-up/down, considering you probably don't
have a screenful of attributes for the same block.


Regards,

-- 
Nicolas Goaziou



Re: [O] small caps

2015-10-30 Thread Christian Moe

Thomas S. Dye writes:

> Sorry, I forgot to give an example.  I use it like this [[sc:ad][AD]].
>
> The advantage of a link over a macro is that the link should export
> correctly to both LaTeX and HTML.
>
> If you intend to export to a single backend, then Nicolas' suggestion to
> use a macro is simpler.

Though you could support multiple backends with a macro, too, you just
need to use lots of @'s. E.g.:


#+MACRO: sc @@latex:\textsc{$1}html:$1@@

Already in 400 {{{sc(bc)}}}, the Greeks...


That's for a quick example; better to use  or
something and put the CSS in a separate stylesheet, of course.

Yours,
Christian



Re: [O] Regression in Org triggered from helm

2015-10-30 Thread Simon Thum

Thank you, works like a charm!

On 10/28/15 13:34, Nicolas Goaziou wrote:

Hello,

Kyle Meyer  writes:


Fixed with 1c74002.  Thanks for reporting the issue.


Thank you for the patch, and the tests.


Regards,





Re: [O] TODO items which do not appear in the agenda?

2015-10-30 Thread Nick Dokos
Marcin Borkowski  writes:

> Hi all,
>
> I would like to have some TODO items, so that I can mark some tasks as
> incomplete; however, I don't want them to appear in the agenda, so that
> it's not too cluttered.  Use case:
>
> * Blog
> ** DONE Blog post idea 1
> ** TODO Blog post idea 2
>
> I know about (setq org-agenda-todo-list-sublevels nil).  However,
> marking the whole "Blog" headline as DONE only so that I don't see the
> individual post ideas in my agenda seems hackish.
>
> I also know that I could define my own TODO items and use filtering
> (maybe even with a custom agenda command).  Maybe this is the way to go,
> but somehow I'd prefer a simple set of TODO keywords
> (TODO/DONE/CANCELED, for instance).
>
> So, does the Org hive mind have any other ideas how to implement "TODO
> items which do not appear in the agenda"?
>

Don't schedule them?

-- 
Nick




Re: [O] TODO items which do not appear in the agenda?

2015-10-30 Thread Tory S. Anderson
I'm a little confused; for me, by default, TODO items do NOT 
appear in the agenda. They only appear if connected to a deadline, 
date, or schedule item. I have files of hundreds of TODO items 
that don't appear in agenda unless I give them a date. I think 
this is the default behavior. 


Marcin Borkowski  writes:


Hi all,

I would like to have some TODO items, so that I can mark some 
tasks as
incomplete; however, I don't want them to appear in the agenda, 
so that

it's not too cluttered.  Use case:

* Blog
** DONE Blog post idea 1
** TODO Blog post idea 2

I know about (setq org-agenda-todo-list-sublevels nil). 
However,
marking the whole "Blog" headline as DONE only so that I don't 
see the

individual post ideas in my agenda seems hackish.

I also know that I could define my own TODO items and use 
filtering
(maybe even with a custom agenda command).  Maybe this is the 
way to go,

but somehow I'd prefer a simple set of TODO keywords
(TODO/DONE/CANCELED, for instance).

So, does the Org hive mind have any other ideas how to implement 
"TODO

items which do not appear in the agenda"?

TIA




[O] Filtering properties in agenda view

2015-10-30 Thread Georg Otto
Dear all,

I am trying to filter my entries in agenda view by properties

According to the orgmode manual, this can be done with C-c a m

However for me, C-c a m filters only on tags, not on properties. Also
the commands C-c / m and C-c \ give me an error, saying they are
undefined.

Has anybody an idea what is going on? How can I filter properties in
agenda view. and vice versa, how can I exclude a property from agenda
view?

I am running emacs 24.3.1 and orgmode 7.9.3f 

Cheers,

Georg




Re: [O] TODO items which do not appear in the agenda?

2015-10-30 Thread Marcin Borkowski

On 2015-10-30, at 15:42, Tory S. Anderson  wrote:

> I'm a little confused; for me, by default, TODO items do NOT 
> appear in the agenda. They only appear if connected to a deadline, 
> date, or schedule item. I have files of hundreds of TODO items 
> that don't appear in agenda unless I give them a date. I think 
> this is the default behavior. 

No wonder you are confused, I meant the global TODO list, not the
agenda.  Sorry.

Best,

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



[O] Wrong agenda results in orgmode 8.3.2

2015-10-30 Thread Dr. Martin Zuther

Hi!

I've been using org-mode as schedule for a while and simply love it!

Last week I tried updating org-mode from version 8.2.9 which is 
distributed with Emacs to the current version 8.3.2-10-g00dacf (via 
ELPA).  Things worked quite fine, except for certain parts of my agenda 
where events started showing in the wrong places.


Here is a minimal test case for my agenda setup.  First the org-file:


* TODO Timestamp 1  
:@work:

<2015-01-01 Do>
* Timestamp 2   
:@work:

<2015-01-01 Do>
* TODO Scheduled 1   :@work:
SCHEDULED: <2015-01-01 Do>
* TODO Scheduled 2   :@work:
SCHEDULED: <2015-01-01 Do>
* TODO Scheduled 3   :@work:
SCHEDULED: <2015-01-01 Do>
:LOGBOOK:
:END:
* TODO Scheduled 4   :@work:
:LOGBOOK:
:END:
SCHEDULED: <2015-01-01 Do>
* TODO Scheduled 5   :@work:
SCHEDULED: <2015-01-01 Do>
* TODO Scheduled 6   :@work:
SCHEDULED: <2015-01-01 Do>
* TODO Timestamp 3  
:@work:

<2015-01-01 Do>
* Timestamp 4   
:@work:

<2015-01-01 Do>


And now, some Lisp:


(setq org-agenda-custom-commands
  '(
("x" "Debug"
 ((tags-todo "-@home+SCHEDULED>=\"<1980-01-01>\""
((org-agenda-overriding-header "Scheduled")
 (org-agenda-files (quote 
("C:/Users/some/place/test.org")))
 ))
  (tags "-@home+TIMESTAMP>=\"<1980-01-01>\""
((org-agenda-overriding-header "Timestamp")
 (org-agenda-files (quote 
("C:/Users/some/place/test.org")))
 )))
 nil
 ("C:/Users/some/place/icalendar/Test.ics"))
))


This is what I expect to get (taken from org-mode 8.2.10):


Scheduled
  test:   TODO Scheduled 1   
:@work:
  test:   TODO Scheduled 2   
:@work:
  test:   TODO Scheduled 3   
:@work:
  test:   TODO Scheduled 4   
:@work:
  test:   TODO Scheduled 5   
:@work:
  test:   TODO Scheduled 6   
:@work:



Timestamp
  test:   TODO Timestamp 1   
:@work:
  test:   Timestamp 2
:@work:
  test:   TODO Timestamp 3   
:@work:
  test:   Timestamp 4
:@work:



And here is what I get in org-mode 8.3.2:


Scheduled
  test:   TODO Scheduled 1   
:@work:
  test:   TODO Scheduled 2   
:@work:
  test:   TODO Scheduled 3   
:@work:
  test:   TODO Scheduled 5   
:@work:
  test:   TODO Scheduled 6   
:@work:



Timestamp
  test:   TODO Timestamp 1   
:@work:
  test:   Timestamp 2
:@work:
  test:   TODO Scheduled 1   
:@work:
  test:   TODO Scheduled 2   
:@work:
  test:   TODO Scheduled 4   
:@work:
  test:   TODO Scheduled 6   
:@work:
  test:   TODO Timestamp 3   
:@work:
  test:   Timestamp 4
:@work:



Is this a problem of my set-up or did I stumble upon a bug?

Thanks for listening and have a nice week-end!

Martin


-

Emacs  : GNU Emacs 24.5.1 (i686-pc-mingw32)
 of 2015-04-11 on LEG570
Package: Org-mode version 8.3.2 (8.3.2-10-g00dacd-elpa @ 
c:/Users/[...]/AppData/Roaming/.emacs.d/elpa/org-20151005/)


current state:
==
(setq
 org-enforce-todo-checkbox-dependencies t
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
  
org-babel-execute-safely-maybe)
 org-stuck-projects '("+LEVEL=1/-DONE-WAIT" 

[O] 'bare' time stamps

2015-10-30 Thread Subhan Michael Tindall
I'm a fairly well versed org user for managing projects, on a personal
level.
I'm trying to set up some projects that need to have fixed numbers of hours
from other departments distributed among projects and/or users. In order to
do this cleanly, I'd like to be able to use 'bare' time stamps and time
ranges IE No dates
<01:00>   (1 hour)
<02:00>--<03:00>  1hr  1 hour time between 2&3
or something similar.
I don't believe org can handle this out of the box, but can anyone point me
toward a package, hack, etc that might meet my needs?
Subhan


Re: [O] TODO items which do not appear in the agenda?

2015-10-30 Thread Marcin Borkowski

On 2015-10-30, at 15:38, Nick Dokos  wrote:

> Don't schedule them?

Well, as I wrote a moment ago, I meant the global TODO list, not the
agenda.  Sorry for the confusion.

Best,

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



[O] Emacs+org-mode in a Docker?

2015-10-30 Thread John Kitchin
Has anyone tried setting up a Docker with an Emacs and org-mode setup?

I am looking for some kind of solution like this to use with some
students. Any thoughts?

Thanks,

--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



[O] Bug: commit 72c3f5e8e breaks diary-style sexp entries

2015-10-30 Thread Stefan-W. Hahn
Hello,

commit 72c3f5e8e55ccab8a9793f729bfbaa89f4fab732
Author: Nicolas Goaziou 
Date:   Wed Oct 28 14:41:31 2015 +0100

org-agenda: Fix `org-agenda-get-scheduled'

* lisp/org-agenda.el (org-agenda-get-scheduled): Rewrite function.
  Comment code.  Fix fontification and sorting issues introduced in


breaks org-agenda when using diary-style sexp entries like <%%(diary-float t
4 2)> in as schedule date in org-agenda-get-scheduled when calling
org-time-string-to-absolute with the sexp.

Errormessage is:

error: #("Bad timestamp ‘%%(diary-float t 4 2)’
Error was: (Not a standard Org-mode time string: %%(diary-float t 4 2))" 15 36 
(org-category "test-date" fontified nil))


With kind regards,
Stefan

-- 
Stefan-W. Hahn  It is easy to make things.
It is hard to make things simple.



Re: [O] Wrong agenda results in orgmode 8.3.2

2015-10-30 Thread Eric S Fraga
On Friday, 30 Oct 2015 at 12:36, Dr. Martin Zuther wrote:
> Hi!
>
> I've been using org-mode as schedule for a while and simply love it!
>
> Last week I tried updating org-mode from version 8.2.9 which is
> distributed with Emacs to the current version 8.3.2-10-g00dacf (via
> ELPA).  Things worked quite fine, except for certain parts of my
> agenda where events started showing in the wrong places.

There was a change (from 8.2 to 8.3) in the format org expects
especially to do with SCHEDULED and DEADLINE lines.  They must come
immediately after the headline before LOGBOOK and PROPERTIES.

I believe there is a function for fixing such org files but I don't know
where or what it is.  Sorry.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.2-209-gba4d33



Re: [O] Wrong agenda results in orgmode 8.3.2

2015-10-30 Thread Kyle Meyer
Eric S Fraga  writes:

[...]

> I believe there is a function for fixing such org files but I don't know
> where or what it is.  Sorry.

It's here: http://orgmode.org/Changes.html

-- 
Kyle



Re: [O] Filtering properties in agenda view

2015-10-30 Thread Subhan Michael Tindall
Read a little further down.  It's all in the syntax, you have to specify a
property name and value.
>From the org manual:

C-c a m
Match: BIB_AUTHOR="Walter Evensong"


On Fri, Oct 30, 2015 at 8:13 AM Georg Otto  wrote:

> Dear all,
>
> I am trying to filter my entries in agenda view by properties
>
> According to the orgmode manual, this can be done with C-c a m
>
> However for me, C-c a m filters only on tags, not on properties. Also
> the commands C-c / m and C-c \ give me an error, saying they are
> undefined.
>
> Has anybody an idea what is going on? How can I filter properties in
> agenda view. and vice versa, how can I exclude a property from agenda
> view?
>
> I am running emacs 24.3.1 and orgmode 7.9.3f
>
> Cheers,
>
> Georg
>
>
>


Re: [O] Regression in Org triggered from helm

2015-10-30 Thread Simon Thum

I was a bit early; I am getting this error now:

Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
  replace-regexp-in-string("[  ]+\\'" "" nil)
  (lambda (s) (replace-regexp-in-string "[ ]+\\'" "" s))(nil)
  mapconcat((lambda (s) (replace-regexp-in-string "[ 	]+\\'" "" s)) 
(#("Aktionen" 0 8 (face org-level-1)) #("Stellensuche" 0 12 (face 
org-level-2)) #("Kandidaten" 0 10 (face org-level-3)) nil) "/")



I bet it's my habit of putting slashes into headlines which breaks the 
logic. However it worked before.


Cheers,

Simon

On 10/28/15 13:34, Nicolas Goaziou wrote:

Hello,

Kyle Meyer  writes:


Fixed with 1c74002.  Thanks for reporting the issue.


Thank you for the patch, and the tests.


Regards,





Re: [O] Filtering properties in agenda view

2015-10-30 Thread Eric S Fraga
On Friday, 30 Oct 2015 at 15:10, Georg Otto wrote:
> Dear all,
>
> I am trying to filter my entries in agenda view by properties
>
> According to the orgmode manual, this can be done with C-c a m
>
> However for me, C-c a m filters only on tags, not on properties. Also
> the commands C-c / m and C-c \ give me an error, saying they are
> undefined.

I cannot answer the first part (about properties) but the C-c / commands
are not agenda commands; they are commands available within an org
buffer directly.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.2-209-gba4d33



Re: [O] Regression in Org triggered from helm

2015-10-30 Thread Kyle Meyer
Simon Thum  writes:

> I was a bit early; I am getting this error now:
>
> Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
>   replace-regexp-in-string("[ ]+\\'" "" nil)
>   (lambda (s) (replace-regexp-in-string "[]+\\'" "" s))(nil)
>   mapconcat((lambda (s) (replace-regexp-in-string "[  ]+\\'" "" s))
> (#("Aktionen" 0 8 (face org-level-1)) #("Stellensuche" 0 12 (face
> org-level-2)) #("Kandidaten" 0 10 (face org-level-3)) nil) "/")
>
>
> I bet it's my habit of putting slashes into headlines which breaks the
> logic. However it worked before.

I can reproduce this with a buffer containing an empty heading.
(Slashes should work fine.)

org-format-outline-path takes a list of strings for path elements.  It
handles an empty list fine, but helm-get-org-candidates-in-file is
passing it (nil).  I'll update org-format-outline-path to discard nil
path elements, but I should also probably submit a patch to helm to make
it ignore empty headers rather than passing a non-string list.

Thanks.

--
Kyle



[O] [RFC] [PATCH] bug with babel call lines and cache

2015-10-30 Thread Aaron Ecay
Hello all,

In playing around with some of the cache-related issues, I’ve discovered
that C-c C-c on the following #+call line will give the following
backtrace:

,
| #+name: foo
| #+begin_src emacs-lisp :var bar="baz"
|   bar
| #+end_src
|
| #+call: foo[:cache yes]("qux")
|
| #+RESULTS:
| : qux
`

,
| Debugger entered--Lisp error: (wrong-type-argument listp "bar=\"qux\"")
|   car("bar=\"qux\"")
|   (list (car var) (list (quote quote) (cdr var)))
|   (print (list (car var) (list (quote quote) (cdr var
|   (format "%S" (print (list (car var) (list (quote quote) (cdr var)
|   (closure ((result-params "replace") (vars "bar=\"qux\"") (params (:cache . 
"yes") (:comments . "yes") (:exports . "code") (:hlines . "no") (:noweb . "no") 
(:padline . "") (:result-params "replace") (:result-type . value) (:results . 
"silent") (:session . "none") (:shebang . "") (:tangle . "no") (:var . 
"bar=\"qux\"")) (body . "bar") t) (var) (format "%S" (print (list (car var) 
(list (quote quote) (cdr var))("bar=\"qux\"")
|   mapconcat((closure ((result-params "replace") (vars "bar=\"qux\"") (params 
(:cache . "yes") (:comments . "yes") (:exports . "code") (:hlines . "no") 
(:noweb . "no") (:padline . "") (:result-params "replace") (:result-type . 
value) (:results . "silent") (:session . "none") (:shebang . "") (:tangle . 
"no") (:var . "bar=\"qux\"")) (body . "bar") t) (var) (format "%S" (print (list 
(car var) (list (quote quote) (cdr var)) ("bar=\"qux\"") "\n  ")
|   (concat "(let (" (mapconcat (function (lambda (var) (format "%S" (print 
(list (car var) (list ... ...)) vars "\n  ") ")\n" body "\n)")
|   (if (> (length vars) 0) (concat "(let (" (mapconcat (function (lambda (var) 
(format "%S" (print (list ... ...) vars "\n  ") ")\n" body "\n)") 
(concat body "\n"))
|   (let* ((vars (org-babel--get-vars params)) (result-params (cdr (assoc 
:result-params params))) (print-level nil) (print-length nil) (body (if (> 
(length vars) 0) (concat "(let (" (mapconcat (function (lambda ... ...)) vars 
"\n  ") ")\n" body "\n)") (concat body "\n" (if (or (member "code" 
result-params) (member "pp" result-params)) (concat "(pp " body ")") body))
|   org-babel-expand-body:emacs-lisp("bar" ((:cache . "yes") (:comments . 
"yes") (:exports . "code") (:hlines . "no") (:noweb . "no") (:padline . "") 
(:result-params "replace") (:result-type . value) (:results . "silent") 
(:session . "none") (:shebang . "") (:tangle . "no") (:var . "bar=\"qux\"")))
|   funcall(org-babel-expand-body:emacs-lisp "bar" ((:cache . "yes") (:comments 
. "yes") (:exports . "code") (:hlines . "no") (:noweb . "no") (:padline . "") 
(:result-params "replace") (:result-type . value) (:results . "silent") 
(:session . "none") (:shebang . "") (:tangle . "no") (:var . "bar=\"qux\"")))
|   (if (fboundp expand-cmd) (funcall expand-cmd body params) 
(org-babel-expand-body:generic body params (and (fboundp assignments-cmd) 
(funcall assignments-cmd params
|   (let* ((rm (function (lambda (lst) (let ((--dolist-tail-- ...) p) (while 
--dolist-tail-- (setq p ...) (setq lst ...) (setq --dolist-tail-- ...))) lst))) 
(norm (function (lambda (arg) (let ((v ...)) (if (and v ...) (progn ...)) 
(lang (nth 0 info)) (params (nth 2 info)) (body (if (org-babel-noweb-p params 
:eval) (org-babel-expand-noweb-references info) (nth 1 info))) (expand-cmd 
(intern (concat "org-babel-expand-body:" lang))) (assignments-cmd (intern 
(concat "org-babel-variable-assignments:" lang))) (expanded (if (fboundp 
expand-cmd) (funcall expand-cmd body params) (org-babel-expand-body:generic 
body params (and (fboundp assignments-cmd) (funcall assignments-cmd 
params)) (let* ((it (format "%s-%s" (mapconcat (function identity) (delq 
nil (mapcar ... ...)) ":") expanded)) (hash (sha1 it))) (if (with-no-warnings 
(called-interactively-p (quote interactive))) (progn (message hash))) hash))
|   (let ((print-level nil) (info (or info (org-babel-get-src-block-info 
(let* ((c (nthcdr 2 info))) (setcar c (sort (copy-sequence (nth 2 info)) 
(function (lambda (a b) (string< (car a) (car b))) (let* ((rm (function 
(lambda (lst) (let (... p) (while --dolist-tail-- ... ... ...)) lst))) (norm 
(function (lambda (arg) (let (...) (if ... ...) (lang (nth 0 info)) (params 
(nth 2 info)) (body (if (org-babel-noweb-p params :eval) 
(org-babel-expand-noweb-references info) (nth 1 info))) (expand-cmd (intern 
(concat "org-babel-expand-body:" lang))) (assignments-cmd (intern (concat 
"org-babel-variable-assignments:" lang))) (expanded (if (fboundp expand-cmd) 
(funcall expand-cmd body params) (org-babel-expand-body:generic body params 
(and (fboundp assignments-cmd) (funcall assignments-cmd params)) (let* ((it 
(format "%s-%s" (mapconcat (function identity) (delq nil ...) ":") expanded)) 
(hash (sha1 it))) (if (with-no-warnings (called-interactively-p (quote 
interactive))) (progn (message hash))) hash)))
|   org-babel-sha1-hash(("emacs-lisp" "bar" ((:cache 

Re: [O] Emacs+org-mode in a Docker?

2015-10-30 Thread Matt Price
I don't have any thoughts but would love to see what you ocme upwith.
Would be great not only for teaching but e.g. for pointing to a working
environment for research results.

On Fri, Oct 30, 2015 at 12:13 PM, John Kitchin 
wrote:

> Has anyone tried setting up a Docker with an Emacs and org-mode setup?
>
> I am looking for some kind of solution like this to use with some
> students. Any thoughts?
>
> Thanks,
>
> --
> Professor John Kitchin
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu
>
>