Re: [O] Babel Clojure example problems

2014-06-05 Thread Thorsten Jolitz
Lawrence Bottorff  writes:

> I'm having trouble following the example page on babel and clojure (
> http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.html
> ). I believe I've done everything correctly, the first example works:

all 3 blocks work fine for me

#+begin_src clojure :results silent
(+ 1 4)
#+end_src

#+begin_src clojure :results value
[ 1 2 3 4]
#+end_src

#+results:
| 1 | 2 | 3 | 4 |

#+begin_src clojure :results value
(def small-map {:a 2 :b 4 :c 8})
(:b small-map)
#+end_src

#+results:
: 4


PS
#+begin_src emacs-lisp
(emacs-version)
#+end_src

#+results:
: GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.7)
:  of 2014-01-28 on var-lib-archbuild-extra-x86_64-juergen


#+begin_src emacs-lisp
(call-interactively 'org-version)
#+end_src

#+results:

: Org-mode version 8.2.6 (release_8.2.6-1123-g024a05 @
: /usr/share/emacs/24.3/lisp/org/lisp/)

-- 
cheers,
Thorsten




Re: [O] inline images outside org

2014-06-05 Thread Thorsten Jolitz
Christoph Held GMX  writes:

> How do I check the syntax of the underlying link of which I currently
> only see the pretty face? So far I have used Emacs really only to run
> org mode. This is probably where it shows that without the training
> wheels it is still a bumpy ride for me.

you could e.g. either set the buffer in text mode

,-
| M-x fundamental-mode
`-

or do 

,
| C-c C-l
`

on the link again to see/find-out-about its real content.

But 

,
| M-x org-toggle-link-display
`

does exactly what you want ...

-- 
cheers,
Thorsten




[O] [bug] [new exporter] [markdown] spoiled URL containing '=' if using http/s org-links

2014-06-05 Thread Martin Carlé
It appears that the markdown export process spoils URLs that conain the
char '=' by wrongly replacing it with '%3D'.

This happens with org-links [[url][some_text]], but not with plain URLs.

I took a quick look at the defun 'org-md-link' and could see that the org-link
URLs are already spoiled when they get retrieved as 'raw-path' by the line:

  (t (let* ((raw-path (org-element-property :path link))

So, I got stuck there.

Hoping that it's easy to resolve this bug for people more familier with the
new exporter.

All best,
mc

-- 
Fetch my gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 7E3CA33F



smime.p7s
Description: S/MIME cryptographic signature


Re: [O] inline images outside org

2014-06-05 Thread Christoph
Thorsten Jolitz  gmail.com> writes:

> 
> Christoph Held GMX  gmx.net> writes:
> 
> > How do I check the syntax of the underlying link of which I currently
> > only see the pretty face? So far I have used Emacs really only to run
> > org mode. This is probably where it shows that without the training
> > wheels it is still a bumpy ride for me.
> 
> you could e.g. either set the buffer in text mode
> 
> ,-
> | M-x fundamental-mode
> `-
> 
> or do 
> 
> ,
> | C-c C-l
> `
> 
> on the link again to see/find-out-about its real content.
> 
> But 
> 
> ,
> | M-x org-toggle-link-display
> `
> 
> does exactly what you want ...
> 
Perhaps you missed that I was asking for checking the underlying syntax 
of inline images *outside* org mode. If you just install railwaycat's Emacs, 
the buffer that greets you first has an inline image, in fundamental mode. 
Your solutions all work well inside org mode but not outside, which was
 the subject of my question. 

Any ideas?
Christoph






Re: [O] inline images outside org

2014-06-05 Thread Thorsten Jolitz
Christoph  writes:

> Thorsten Jolitz  gmail.com> writes:
>
>> 
>> Christoph Held GMX  gmx.net> writes:
>> 
>> > How do I check the syntax of the underlying link of which I currently
>> > only see the pretty face? So far I have used Emacs really only to run
>> > org mode. This is probably where it shows that without the training
>> > wheels it is still a bumpy ride for me.
>> 
>> you could e.g. either set the buffer in text mode
>> 
>> ,-
>> | M-x fundamental-mode
>> `-
>> 
>> or do 
>> 
>> ,
>> | C-c C-l
>> `
>> 
>> on the link again to see/find-out-about its real content.
>> 
>> But 
>> 
>> ,
>> | M-x org-toggle-link-display
>> `
>> 
>> does exactly what you want ...
>> 
> Perhaps you missed that I was asking for checking the underlying syntax 
> of inline images *outside* org mode. If you just install railwaycat's
> Emacs,

Yes, I missed that ...

> the buffer that greets you first has an inline image, in fundamental mode. 
> Your solutions all work well inside org mode but not outside, which was
>  the subject of my question. 
>
> Any ideas?

not really. 

Maybe 

,
| http://shallowsky.com/blog/linux/editors/graphics-in-emacs.html
`

?

-- 
cheers,
Thorsten




[O] How to list inactive timestamps and logged items together in agenda?

2014-06-05 Thread Martin Beck
I want to create an agenda view which lets me list all items, I've been working on in a certain time interval in chronological order.

 

I have created an agenda which does that by listing all headings with inactice timestamps like that:

 

("ip" "past 7d +3d" agenda "" ((org-agenda-overriding-header "Activities during last 7 days") (org-agenda-start-day "-7d") (org-agenda-span 10) (org-agenda-repeating-timestamp-show-all nil) (org-agenda-include-inactive-timestamps t) (org-agenda-entry-types (quote (:deadline :timestamp :sexp)

 

My problem is: it only lists items with an inactive timestamp, but not those which have been clocked in the observed time.

Sure, in the same agenda I can type "v c" and then show the clocking history but it seems I can not have both at the same time.

 

Is there a way to expand the above described agenda so that it also displays headings which have been clocked  in/out during the agenda span?

In theory, those timestamps already exist in the LOGBOOK drawer, but they seem to be ignored by the "org-agenda-include-inactive-timestamps" option).

 

Kind regards

 

Martin



Re: [O] org-contacts email completion by tags

2014-06-05 Thread John Kitchin
neat idea. This code does exactly what I need for the completion for a
whole tag query. It should be possible to integrate that into completion.

(defun insert-emails-from-tags (tags)
  (interactive "sTags: ")
  (insert
   (save-window-excursion
 (find-file "contacts-bbdb.org")
 (mapconcat
  'identity
  (let ((todo-only nil))
(org-scan-tags
 (lambda ()
   (org-entry-get (point) "EMAIL")) ; action
 (cdr (org-make-tags-matcher tags)) ; matcher
 nil)) ", "

It should be possible to integrate this into the org-contacts database to
get this with completion. I will look into this later today. Thanks for the
ideas.



John

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



On Thu, Jun 5, 2014 at 12:51 AM, Daimrod  wrote:

> John Kitchin  writes:
>
> > Hi all,
> >
> > I have setup org-contacts and completion of emails in message mode. I
> have some contacts that are tagged :group: and some tagged :group:ms:
> >
> > If I put +group in the email To field, it completes to all of the
> entries (awesome!)
> >
> > But +group-ms does not work. Is that a bug, or a known limit of
> org-contacts? That search works fine with C-c am.
>
> An unknown limitation of org-contacts. ;)
>
> org-contacts doesn't use `org-tags-view', that's why it doesn't support
> this match syntax.
>
> ATM, it is unclear to me how such syntax could be integrated with the
> completion mechanism.
>
> Also, I haven't look at the code that handles this in org-mode so I
> don't know how easy or hard it would be to use it with org-contacts.
>
>
> An alternative would be to provide a way to store the addresses of
> contacts in a sparse tree or in the *org-agenda* buffer.
>
> e.g.
> C-x b contacts.org RET
> C-c a m foo+bar RET
> M-x org-contacts-copy-contacts RET
> C-x b *Group* RET ;; Switch to Gnus
> m ;; compose a message
> C-c C-f   ;; goto From
> C-y
>
> WDYT?
>
>
> Best,
> --
> Daimrod/Greg
>


[O] Scroll agenda to a certain line after refresh or creation?

2014-06-05 Thread Martin Beck
Hi,

 

I have an agenda view which lists all my activities during the last days to easily find them for adding info or continue working on them.

 

It is defined as a custom agenda command like that:

("ip" "past 7d +3d" agenda "" ((org-agenda-overriding-header "Activities during last 7 days") (org-agenda-start-day "-7d") (org-agenda-span 10) (org-agenda-repeating-timestamp-show-all nil) (org-agenda-include-inactive-timestamps t) (org-agenda-entry-types (quote (:deadline :timestamp :sexp)

 

This agenda view gets quite long and confusing for the eye.

 

Can I let the agenda scroll automatically to the line with the current time, which looks like that (naturally, the time is not a constant) after building or rebuilding it?

  13:24.. now - - - - - - - - - - - - - - - - - - - - - - - - -

 

How can I apply a special face to this line to make it better visible (but only in this agenda view, not in others)?

 

Kind regards

 

Martin

 



Re: [O] #+INCLUDE: myfile.html html does not include /literally/; Org processes

2014-06-05 Thread Nicolas Goaziou
Achim Gratz  writes:

> Nicolas Goaziou writes:

>> It is close to your initial approach, minus the "wrap" keyword, which
>> seems unnecessary. If you agree with this suggestion, do you volunteer
>> to finalize it, along with the required documentation?
>
> I'll have a look at that later this week.

Thank you.


Regards,

-- 
Nicolas Goaziou



Re: [O] org-contacts email completion by tags

2014-06-05 Thread Daimrod
John Kitchin  writes:

> neat idea. This code does exactly what I need for the completion for a
> whole tag query. It should be possible to integrate that into
> completion.
>
> (defun insert-emails-from-tags (tags)
>   (interactive "sTags: ")
>   (insert
>    (save-window-excursion
>  (find-file "contacts-bbdb.org")
>  (mapconcat
>   'identity
>   (let ((todo-only nil))
>     (org-scan-tags
>      (lambda ()
>        (org-entry-get (point) "EMAIL")) ; action
>      (cdr (org-make-tags-matcher tags)) ; matcher
>      nil)) ", "
>
> It should be possible to integrate this into the org-contacts database
> to get this with completion. I will look into this later today. Thanks
> for the ideas.

The completion for group based on tags is done in the function
`org-contacts-complete-group'.

It's been a long time since I played with the completion mechanism, so I
don't remember exactly how it worked. Maybe you can replace the mapcar
with your function, but it might a bit more tricky than that, especially
to handle empty result.

Thanks for your work :)

Best,

-- 
Daimrod/Greg



Re: [O] src blocks not fontified

2014-06-05 Thread Sebastien Vauban
Shiyuan wrote:
> I need to download the htmlize.el from the org-mode git repos separately.
>  After that, htmlize works magically and highlights the syntax in the
> resulting html without any extra markup. Thanks for the help.
>
> On Tue, Jun 3, 2014 at 11:53 AM, Nick Dokos  wrote:
>
>> Shiyuan  writes:
>>
>> > I can only find htmlfontify in ELPA, but not htmlize. Which ELPA
>> > repository will have htmlize?  Or I need to install the .el file
>> > manually. I can find the htmlize.el in the following link, but not
>> > sure it's up to date.
>> > http://www.emacswiki.org/emacs-ja/htmlize.el.
>> >
>>
>> htmlize.el is included in the contrib/lisp directory of org (but I'm not
>> sure if contrib is part of the ELPA org distribution - it is available
>> if you get org from the git repo or from the tarball). The one I have
>> says:
>>
>> ,
>> | ;;; htmlize.el --- Convert buffer text and decorations to HTML.
>> |
>> | ;; Copyright (C) 1997-2013 Hrvoje Niksic
>> |
>> | ;; Author: Hrvoje Niksic 
>> | ;; Keywords: hypermedia, extensions
>> | ;; Version: 1.43
>> `

You can find it in ELPA. Mine:

  ╭
  │ ;;; htmlize.el --- Convert buffer text and decorations to HTML.
  │ 
  │ ;; Copyright (C) 1997-2003,2005,2006,2009,2011,2012 Hrvoje Niksic
  │ 
  │ ;; Author: Hrvoje Niksic 
  │ ;; Keywords: hypermedia, extensions
  │ ;; Version: 20130207.1202
  │ ;; X-Original-Version: 1.47
  ╰

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] DTD prohibited

2014-06-05 Thread Rick Frankel

On 2014-06-04 12:52, AW wrote:

Am Mittwoch, 4. Juni 2014, 17:04:14 schrieb Eric Abrahamsen:
Eric S Fraga  writes:
> On Tuesday,  3 Jun 2014 at 22:14, AW wrote:
>
> [...]
>
>> Hi,
>>
>> thank you, I started again digging into this strange thing and the
>> culprit
>> seems the first line of the html-file:
>>
>> 
>>
Seems like simply exporting as html5 might solve the problem.

Yes, it does, thank you. But the price is that tabulars lose the frames 
and

lines. I did not invest whether due to export without those elements or
because Word had issues with html5.


It's because the html5 export has no default style for tables --
before opening in word, try opening the html in a browser, you will
see that xhtml-strict export adds style info to the table element, but 
xhtml5 doesn't.


If you want the same style in html5 as html4, try the following
preamble in your org file:

#+HTML_DOCTYPE: xhtml5
#+HTML_HEAD: 
#+HTML_HEAD: table {
#+HTML_HEAD: border-top: thin solid gray;
#+HTML_HEAD: border-bottom: thin solid gray;
#+HTML_HEAD: }
#+HTML_HEAD: thead {border-bottom: thin solid grey;}
#+HTML_HEAD: td, th {padding: 6px;}
#+HTML_HEAD:

FYI, here's the table definition output in html4:



and html5



rick



Re: [O] An org password manager

2014-06-05 Thread Jorge A. Alfaro-Murillo
Michael Albinus  writes:

> A useful feature would be an auth-source backend, See (info "(auth)")
> By this, other packages (like Gnus or Tramp) would profit from the
> password manager directly.
>
> Best regards, Michael.

Thanks Michael. I will look more into auth. What is your idea? To be
able to use something like auth-source-search, to pass features of the
org-passwords database as secrets? 

I only use auth for gnus and jabber, so my .authinfo.gpg is only five
lines. What setup could benefit on that? Can auth send secrets to other
applications, like a web browser?

Best,

Jorge.





Re: [O] Babel Clojure example problems

2014-06-05 Thread Lawrence Bottorff
I guess the question comes down to, Do I need to install ob-clojure.el and
if so, what's the best way? ELPA doesn't have it. But then my (require
'ob-clojure) doesn't seem to throw an error. . . .

LB


On Thu, Jun 5, 2014 at 9:10 AM, Thorsten Jolitz  wrote:

> Lawrence Bottorff  writes:
>
> [why PM?]
>
> > . . . and here's what I get:
> >
> > #+begin_src emacs-lisp
> > (emacs-version)
> > #+end_src
> >
> > #+RESULTS:
> > : GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.6)
> > : of 2014-01-02 on papaya, modified by Debian
> >
> > #+begin_src emacs-lisp
> > (call-interactively 'org-version)
> > #+end_src
> >
> > #+RESULTS:
> > : Org-mode version 8.2.3a (release_8.2.3a @
> > /home/me/.emacs.d/elpa/org-20140602/)
> >
> > Q: Do I need to download and install a separate ob-clojure.el ? Or is
> > it included somewhere?
>
> havn't done much with ob-clojure yet, sorry, but when block 1 and 2 work
> for you, you must have it.
>
> maybe return to the list and ask if somebody can decipher the error
> message? I'm just starting out with clojure and can't help much. I just
> opened a temp buffer, put it in org-mode, inserted you 3 blocks, called
> M-x cider-jack-in, and evaluated them successfully ...
>
> > LB
> >
> > On Thu, Jun 5, 2014 at 4:53 AM, Thorsten Jolitz 
> > wrote:
> >
> > Lawrence Bottorff  writes:
> >
> > > I'm having trouble following the example page on babel and
> > clojure (
> > >
> > http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.
> > html
> > > ). I believe I've done everything correctly, the first example
> > works:
> >
> >
> > all 3 blocks work fine for me
> >
> >
> > #+begin_src clojure :results silent
> > (+ 1 4)
> > #+end_src
> >
> >
> > #+begin_src clojure :results value
> > [ 1 2 3 4]
> > #+end_src
> >
> >
> > #+results:
> > | 1 | 2 | 3 | 4 |
> >
> >
> > #+begin_src clojure :results value
> > (def small-map {:a 2 :b 4 :c 8})
> > (:b small-map)
> > #+end_src
> >
> >
> > #+results:
> > : 4
> >
> >
> > PS
> > #+begin_src emacs-lisp
> > (emacs-version)
> > #+end_src
> >
> > #+results:
> > : GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.7)
> > : of 2014-01-28 on var-lib-archbuild-extra-x86_64-juergen
> >
> >
> > #+begin_src emacs-lisp
> > (call-interactively 'org-version)
> > #+end_src
> >
> > #+results:
> >
> > : Org-mode version 8.2.6 (release_8.2.6-1123-g024a05 @
> > : /usr/share/emacs/24.3/lisp/org/lisp/)
> >
> > --
> > cheers,
> > Thorsten
> >
> >
> >
> >
>
> --
> cheers,
> Thorsten
>


Re: [O] Babel Clojure example problems

2014-06-05 Thread Thorsten Jolitz
Lawrence Bottorff  writes:

> I guess the question comes down to, Do I need to install ob-clojure.el
> and if so, what's the best way? ELPA doesn't have it. But then my
> (require 'ob-clojure) doesn't seem to throw an error. . . .

why? for me its right there in /org-mode/lisp

  ,--
  | /home/tj/gitclone/org-mode/lisp:
  | insgesamt 8108
  | drwxr-xr-x 2 tj tj  12288  5. Jun 16:49 .
  | drwxr-xr-x 9 tj tj   4096 24. Apr 11:07 ..
  | -rw-r--r-- 1 tj tj   2525 23. Apr 17:32 Makefile
  | [...]
  | -rw-r--r-- 1 tj tj   4260 23. Apr 17:32 ob-clojure.el
  `--


and when two out of three source-blocks work, it must be there and
installed, I would guess. Do you have:

,
| org-babel-load-languages is a variable defined in `org.el'.
| [...]
| Value: ((emacs-lisp . t)
|  (clojure . t)
|  (latex . t))
`


-- 
cheers,
Thorsten




[O] Feature request: creating separate tables on same rows

2014-06-05 Thread Aldric Giacomoni
I'd like to be able to create multiple tables on the same rows, like such:


| Group | Name | | Something | Else |
|--+--| |-+- --|
|1 | foo | |   Yes |   No |
|--+--| |-+---|

This might be based on a pretty fundamental misunderstanding of how to use
tables, org-mode and emacs, but I would find it useful to be able to
compare tables and making changes easily without scrolling too much.

Someone on #emacs pointed me towards clone-indirect-buffer, which works for
my purposes, but I figured I'd ask here and ask all you experts if this
idea is reasonable or crazy-pants.

Thanks,
-Aldric


Re: [O] org-table: Reference *one* cell below a hline?

2014-06-05 Thread Nick Dokos
James Harkins  writes:

> On Friday, May 30, 2014 7:50:39 PM HKT, Bastien wrote:
>> James Harkins  writes:
>>> I have this:
>>>
>>> | Section  | Seconds |
>>> |--+-|
>>> | Theme|  54 |
>>> | 12/8 |  80 |
>>> | 6/8  |  66 |
>>> | Clarinet | 116 |
>>> | Oboe |  89 |
>>> | Bassoon  |  60 |
>>> |--+-|
>>> |  | |
>>>
>>> #+TBLFM: @II+1$2=vsum(@I$2..@II$2)
>>
>> When I run this from master, I get this user-error:
>>
>> "Can't assign to hline relative reference"
>>
>> which implies that hline relative references are not supported here.
>> Don't you get this error?  What version of Org and Emacs are you
>> running? 
>
> Org-version says "Org-mode version 8.2.5f (release_8.2.5f-518-gd74205
> @ /home/dlm/share/org-mode.git/lisp/)" -- the latest commit in my
> working environment is af6f14d9. And, "This is GNU Emacs 23.3.1
> (x86_64-pc-linux-gnu, GTK+ Version 2.24.10)."
>
> If assigning to an hline-relative reference is not supported, would it
> be a valid feature request?
>

Not sure how hard it would be to implement, but at least in this
particular case (getting to the last row or the last few rows of the
table), I'd recommend against using hlines as a reference: use @>, @>>,
etc.  instead.

Do you have a need for an hline-relative reference somewhere in the
middle of a table?

Nick






Re: [O] Feature request: creating separate tables on same rows

2014-06-05 Thread Thorsten Jolitz
Aldric Giacomoni  writes:

> I'd like to be able to create multiple tables on the same rows, like
> such:
>
> | Group | Name | | Something | Else |
> |--+--| |-+- --|
> | 1 | foo | | Yes | No |
> |--+--| |-+---|
>
> This might be based on a pretty fundamental misunderstanding of how to
> use tables, org-mode and emacs, but I would find it useful to be able
> to compare tables and making changes easily without scrolling too
> much.
>
> Someone on #emacs pointed me towards clone-indirect-buffer, which
> works for my purposes, but I figured I'd ask here and ask all you
> experts if this idea is reasonable or crazy-pants.

1+ for crazy-pants

-- 
cheers,
Thorsten




Re: [O] org-contacts email completion by tags

2014-06-05 Thread John Kitchin
On Thu, Jun 5, 2014 at 7:50 AM, Daimrod  wrote:

> org-contacts-complete-group


Here is a better function I think. It uses the builtin org-contacts
database:

(defun insert-emails-from-tags (tag-expression)
  "insert emails from org-contacts that match the tags expression. For
example:
group-phd will match entries tagged with group but not with phd."
  (interactive "sTags: ")
  (insert
   (mapconcat 'identity
  (loop for contact in (org-contacts-filter)
for contact-name = (car contact)
for email = (org-contacts-strip-link (car
(org-contacts-split-property
   (or
(cdr (assoc-string
org-contacts-email-property
   (caddr contact)))
""
for tags = (cdr (assoc "TAGS" (nth 2 contact)))
for tags-list = (if tags
(split-string (substring (cdr (assoc "TAGS" (nth 2
contact))) 1 -1) ":")
  '())
if (let ((todo-only nil))
 (eval (cdr (org-make-tags-matcher tag-expression

collect (org-contacts-format-email contact-name email))
  ",")))


John

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


Re: [O] Fwd: Emphasizing multiple lines

2014-06-05 Thread Doyley, Marvin M.
> Yup, looks like that's how it works over here, too -- as far as I know
> it won't automatically display the face when you close emphasis past a
> newline. It's only cosmetic, though -- export and whatnot will parse it
> correctly. My guess is there's no easy way around it...

Hi Eric,
Since this is only cosmetic, I will work with the default values. 

Thanks,
M



Re: [O] Feature request: creating separate tables on same rows

2014-06-05 Thread Omid

With clone-indirect-buffer you'll get a twin copy of your original
buffer. You are in effect editing the same buffer in two different ,
with some additional niceties like having separate modes and
narrow-to-region, etc (see an example usage at
http://demonastery.org/2013/04/emacs-narrow-to-region-indirect/). I
don't see how this can help with your problem, though.

On 06/05/2014 12:52 PM, Thorsten Jolitz wrote:
> Aldric Giacomoni  writes:
> 
>> I'd like to be able to create multiple tables on the same rows, like
>> such:
>>
>> | Group | Name | | Something | Else |
>> |--+--| |-+- --|
>> | 1 | foo | | Yes | No |
>> |--+--| |-+---|
>>
>> This might be based on a pretty fundamental misunderstanding of how to
>> use tables, org-mode and emacs, but I would find it useful to be able
>> to compare tables and making changes easily without scrolling too
>> much.
>>
>> Someone on #emacs pointed me towards clone-indirect-buffer, which
>> works for my purposes, but I figured I'd ask here and ask all you
>> experts if this idea is reasonable or crazy-pants.
> 
> 1+ for crazy-pants
> 

-- 
Omid

Sent from my Emacs



Re: [O] Feature request: creating separate tables on same rows

2014-06-05 Thread Aldric Giacomoni
Omid: The idea is C-x 3, clone-indirect-buffer, so I can see and modify the
same buffer in two different places. So.. A workaround, not a solution.


On Thu, Jun 5, 2014 at 3:28 PM, Omid  wrote:

>
> With clone-indirect-buffer you'll get a twin copy of your original
> buffer. You are in effect editing the same buffer in two different ,
> with some additional niceties like having separate modes and
> narrow-to-region, etc (see an example usage at
> http://demonastery.org/2013/04/emacs-narrow-to-region-indirect/). I
> don't see how this can help with your problem, though.
>
> On 06/05/2014 12:52 PM, Thorsten Jolitz wrote:
> > Aldric Giacomoni  writes:
> >
> >> I'd like to be able to create multiple tables on the same rows, like
> >> such:
> >>
> >> | Group | Name | | Something | Else |
> >> |--+--| |-+- --|
> >> | 1 | foo | | Yes | No |
> >> |--+--| |-+---|
> >>
> >> This might be based on a pretty fundamental misunderstanding of how to
> >> use tables, org-mode and emacs, but I would find it useful to be able
> >> to compare tables and making changes easily without scrolling too
> >> much.
> >>
> >> Someone on #emacs pointed me towards clone-indirect-buffer, which
> >> works for my purposes, but I figured I'd ask here and ask all you
> >> experts if this idea is reasonable or crazy-pants.
> >
> > 1+ for crazy-pants
> >
>
> --
> Omid
>
> Sent from my Emacs
>
>


Re: [O] Feature request: creating separate tables on same rows

2014-06-05 Thread Omid
Then I misunderstood you. I thought you wanted to create tables side
by sides. This of course allows you to look at different parts of your
buffer side by side, with the additional features I mentioned.

On 06/05/2014 03:54 PM, Aldric Giacomoni wrote:
> Omid: The idea is C-x 3, clone-indirect-buffer, so I can see and modify
> the same buffer in two different places. So.. A workaround, not a solution.
> 
> 
> On Thu, Jun 5, 2014 at 3:28 PM, Omid  > wrote:
> 
> 
> With clone-indirect-buffer you'll get a twin copy of your original
> buffer. You are in effect editing the same buffer in two different ,
> with some additional niceties like having separate modes and
> narrow-to-region, etc (see an example usage at
> http://demonastery.org/2013/04/emacs-narrow-to-region-indirect/). I
> don't see how this can help with your problem, though.
> 
> On 06/05/2014 12:52 PM, Thorsten Jolitz wrote:
> > Aldric Giacomoni mailto:trev...@gmail.com>>
> writes:
> >
> >> I'd like to be able to create multiple tables on the same rows, like
> >> such:
> >>
> >> | Group | Name | | Something | Else |
> >> |--+--| |-+- --|
> >> | 1 | foo | | Yes | No |
> >> |--+--| |-+---|
> >>
> >> This might be based on a pretty fundamental misunderstanding of
> how to
> >> use tables, org-mode and emacs, but I would find it useful to be able
> >> to compare tables and making changes easily without scrolling too
> >> much.
> >>
> >> Someone on #emacs pointed me towards clone-indirect-buffer, which
> >> works for my purposes, but I figured I'd ask here and ask all you
> >> experts if this idea is reasonable or crazy-pants.
> >
> > 1+ for crazy-pants
> >
> 
> --
> Omid
> 
> Sent from my Emacs
> 
> 

-- 
Omid

Sent from my Emacs



Re: [O] problem with org-caldav and ox-icalendar: UID property wrapping

2014-06-05 Thread David Engster
Eric S. Fraga writes:
> On Tuesday,  3 Jun 2014 at 21:54, David Engster wrote:
>
> [...]
>
>> Well, that took a bit longer, but I pushed it now...
>>
>> -David
>
> Well, the good news is that you have indeed fixed the problem I noted
> about IDs on more than one line.
>
> The bad news is that other things are now broken.  I haven't had time to
> totally narrow down was is happening but basically:

Yes, I made a stupid mistake. I hope it is fixed now, but it might be
necessary to delete the remote calendars and sync anew. Sorry for that.

-David



Re: [O] Feature request: creating separate tables on same rows

2014-06-05 Thread Aldric Giacomoni
I did -want- to do that.


On Thu, Jun 5, 2014 at 4:08 PM, Omid  wrote:

> Then I misunderstood you. I thought you wanted to create tables side
> by sides. This of course allows you to look at different parts of your
> buffer side by side, with the additional features I mentioned.
>
> On 06/05/2014 03:54 PM, Aldric Giacomoni wrote:
> > Omid: The idea is C-x 3, clone-indirect-buffer, so I can see and modify
> > the same buffer in two different places. So.. A workaround, not a
> solution.
> >
> >
> > On Thu, Jun 5, 2014 at 3:28 PM, Omid  > > wrote:
> >
> >
> > With clone-indirect-buffer you'll get a twin copy of your original
> > buffer. You are in effect editing the same buffer in two different ,
> > with some additional niceties like having separate modes and
> > narrow-to-region, etc (see an example usage at
> > http://demonastery.org/2013/04/emacs-narrow-to-region-indirect/). I
> > don't see how this can help with your problem, though.
> >
> > On 06/05/2014 12:52 PM, Thorsten Jolitz wrote:
> > > Aldric Giacomoni mailto:trev...@gmail.com>>
> > writes:
> > >
> > >> I'd like to be able to create multiple tables on the same rows,
> like
> > >> such:
> > >>
> > >> | Group | Name | | Something | Else |
> > >> |--+--| |-+- --|
> > >> | 1 | foo | | Yes | No |
> > >> |--+--| |-+---|
> > >>
> > >> This might be based on a pretty fundamental misunderstanding of
> > how to
> > >> use tables, org-mode and emacs, but I would find it useful to be
> able
> > >> to compare tables and making changes easily without scrolling too
> > >> much.
> > >>
> > >> Someone on #emacs pointed me towards clone-indirect-buffer, which
> > >> works for my purposes, but I figured I'd ask here and ask all you
> > >> experts if this idea is reasonable or crazy-pants.
> > >
> > > 1+ for crazy-pants
> > >
> >
> > --
> > Omid
> >
> > Sent from my Emacs
> >
> >
>
> --
> Omid
>
> Sent from my Emacs
>


Re: [O] Feature request: creating separate tables on same rows

2014-06-05 Thread Thorsten Jolitz
Aldric Giacomoni  writes:

> I did -want- to do that.
>
> On Thu, Jun 5, 2014 at 4:08 PM, Omid  wrote:
>
> Then I misunderstood you. I thought you wanted to create tables
> side by sides.

In Org-mode that would be (at least) very strange, but Org-mode uses
backends for the final docs, so you might want to look at e.g. LaTeX
multi-column styles and if Org-mode supports them somehow. But even if
so, it might get complicated and using AucTex directly might be the
better choice in such cases.

-- 
cheers,
Thorsten




Re: [O] Feature request: creating separate tables on same rows

2014-06-05 Thread Jorge A. Alfaro-Murillo
Thorsten Jolitz  writes:

> In Org-mode that would be (at least) very strange, but Org-mode uses
> backends for the final docs, so you might want to look at e.g. LaTeX
> multi-column styles and if Org-mode supports them somehow. But even if
> so, it might get complicated and using AucTex directly might be the
> better choice in such cases.

I agree, in such cases I use AucTeX directly. You can use orgtbl-mode in
your tex file to build the main data of the table in LaTeX in Org form,
check: (info "(org) A LaTeX example"). Then add your multi-columns with:

#+BEGIN_LaTeX
  \multirow{''num_rows''}{''width''}{''contents''}
#+END_LaTeX

If you want multi-rows:
#+BEGIN_LaTeX
  \usepackage{multirow}
  \multirow{''num_rows''}{''width''}{''contents''}
#+END_LaTeX

A complete example, from a recent paper I was working on:

#+BEGIN_LaTeX
\documentclass{article}
\usepackage{multirow}
\usepackage{booktabs}
\begin{document}

\begin{table}
  \centering
  \begin{tabular}{cc}
\toprule
\multirow{2}{*}{Age-group} & \multirow{2}{*}{$L-a$} &
\multirow{2}{*}{$p_{d}$}  & \multirow{2}{*}{$p_{h}$} & 
\multicolumn{2}{c}{Likelihood} \\
\cmidrule(lr){5-6}
& & & & Mean & 95\% CI \\
\midrule
0-5   & 83.73 & 0.4 & 0.0141  & 0.38009 & $[0.24024,\,0.53638]$\\
5-17  & 74.78 & 0.1 & 0.0006  & 0.19399 & $[0.10497,\,0.31382]$\\
18-49 & 52.52 & 0.9 & 0.0042  & 0.12682 & $[0.07216,\,0.20166]$\\
50-64 & 30.10 & 0.00134 & 0.0193  & 0.12682 & $[0.07216,\,0.20166]$\\
65+   & 14.19 & 0.01170 & 0.0421  & 0.17229 & $[0.09871,\,0.26994]$\\
\bottomrule
  \end{tabular}
  \caption{Age-dependent health effect parameters.}
\end{table}

\end{document}
#+END_LaTeX

Everything between \midrule and \bottomrule is easier written with
orgtbl-mode.

Best,

Jorge.




Re: [O] Feature request: creating separate tables on same rows

2014-06-05 Thread Aldric Giacomoni
Understood, thank you very much for explaining it :)


On Thu, Jun 5, 2014 at 7:06 PM, Jorge A. Alfaro-Murillo <
jorge.a.alf...@gmail.com> wrote:

> Thorsten Jolitz  writes:
>
> > In Org-mode that would be (at least) very strange, but Org-mode uses
> > backends for the final docs, so you might want to look at e.g. LaTeX
> > multi-column styles and if Org-mode supports them somehow. But even if
> > so, it might get complicated and using AucTex directly might be the
> > better choice in such cases.
>
> I agree, in such cases I use AucTeX directly. You can use orgtbl-mode in
> your tex file to build the main data of the table in LaTeX in Org form,
> check: (info "(org) A LaTeX example"). Then add your multi-columns with:
>
> #+BEGIN_LaTeX
>   \multirow{''num_rows''}{''width''}{''contents''}
> #+END_LaTeX
>
> If you want multi-rows:
> #+BEGIN_LaTeX
>   \usepackage{multirow}
>   \multirow{''num_rows''}{''width''}{''contents''}
> #+END_LaTeX
>
> A complete example, from a recent paper I was working on:
>
> #+BEGIN_LaTeX
> \documentclass{article}
> \usepackage{multirow}
> \usepackage{booktabs}
> \begin{document}
>
> \begin{table}
>   \centering
>   \begin{tabular}{cc}
> \toprule
> \multirow{2}{*}{Age-group} & \multirow{2}{*}{$L-a$} &
> \multirow{2}{*}{$p_{d}$}  & \multirow{2}{*}{$p_{h}$} &
> \multicolumn{2}{c}{Likelihood} \\
> \cmidrule(lr){5-6}
> & & & & Mean & 95\% CI \\
> \midrule
> 0-5   & 83.73 & 0.4 & 0.0141  & 0.38009 &
> $[0.24024,\,0.53638]$\\
> 5-17  & 74.78 & 0.1 & 0.0006  & 0.19399 &
> $[0.10497,\,0.31382]$\\
> 18-49 & 52.52 & 0.9 & 0.0042  & 0.12682 &
> $[0.07216,\,0.20166]$\\
> 50-64 & 30.10 & 0.00134 & 0.0193  & 0.12682 &
> $[0.07216,\,0.20166]$\\
> 65+   & 14.19 & 0.01170 & 0.0421  & 0.17229 &
> $[0.09871,\,0.26994]$\\
> \bottomrule
>   \end{tabular}
>   \caption{Age-dependent health effect parameters.}
> \end{table}
>
> \end{document}
> #+END_LaTeX
>
> Everything between \midrule and \bottomrule is easier written with
> orgtbl-mode.
>
> Best,
>
> Jorge.
>
>
>


Re: [O] src blocks not fontified

2014-06-05 Thread Shiyuan
What ELPA repos you are using? Could you show me the value of C-h
v package-archives? Thanks.


On Thu, Jun 5, 2014 at 6:13 AM, Sebastien Vauban 
wrote:

> Shiyuan wrote:
> > I need to download the htmlize.el from the org-mode git repos separately.
> >  After that, htmlize works magically and highlights the syntax in the
> > resulting html without any extra markup. Thanks for the help.
> >
> > On Tue, Jun 3, 2014 at 11:53 AM, Nick Dokos  wrote:
> >
> >> Shiyuan  writes:
> >>
> >> > I can only find htmlfontify in ELPA, but not htmlize. Which ELPA
> >> > repository will have htmlize?  Or I need to install the .el file
> >> > manually. I can find the htmlize.el in the following link, but not
> >> > sure it's up to date.
> >> > http://www.emacswiki.org/emacs-ja/htmlize.el.
> >> >
> >>
> >> htmlize.el is included in the contrib/lisp directory of org (but I'm not
> >> sure if contrib is part of the ELPA org distribution - it is available
> >> if you get org from the git repo or from the tarball). The one I have
> >> says:
> >>
> >> ,
> >> | ;;; htmlize.el --- Convert buffer text and decorations to HTML.
> >> |
> >> | ;; Copyright (C) 1997-2013 Hrvoje Niksic
> >> |
> >> | ;; Author: Hrvoje Niksic 
> >> | ;; Keywords: hypermedia, extensions
> >> | ;; Version: 1.43
> >> `
>
> You can find it in ELPA. Mine:
>
>   ╭
>   │ ;;; htmlize.el --- Convert buffer text and decorations to HTML.
>   │
>   │ ;; Copyright (C) 1997-2003,2005,2006,2009,2011,2012 Hrvoje Niksic
>   │
>   │ ;; Author: Hrvoje Niksic 
>   │ ;; Keywords: hypermedia, extensions
>   │ ;; Version: 20130207.1202
>   │ ;; X-Original-Version: 1.47
>   ╰
>
> Best regards,
>   Seb
>
> --
> Sebastien Vauban
>
>
>


Re: [O] src blocks not fontified

2014-06-05 Thread Omid
Here is the setq for the "usual places"

(setq package-archives
  '(("original". "http://tromey.com/elpa/";)
("gnu" . "http://elpa.gnu.org/packages/";)
("melpa"   . "http://melpa.milkbox.net/packages/";)
("marmalade"   . "http://marmalade-repo.org/packages/";)))
(package-initialize)

Be aware that MELPA packages may not be as stable as others

Omid

Sent from my Emacs

On 06/06/2014 01:51 AM, Shiyuan wrote:
> What ELPA repos you are using? Could you show me the value of C-h
> v package-archives? Thanks. 
> 
> 
> On Thu, Jun 5, 2014 at 6:13 AM, Sebastien Vauban
> mailto:sva-n...@mygooglest.com>> wrote:
> 
> Shiyuan wrote:
> > I need to download the htmlize.el from the org-mode git repos
> separately.
> >  After that, htmlize works magically and highlights the syntax in the
> > resulting html without any extra markup. Thanks for the help.
> >
> > On Tue, Jun 3, 2014 at 11:53 AM, Nick Dokos  > wrote:
> >
> >> Shiyuan mailto:gshy2...@gmail.com>> writes:
> >>
> >> > I can only find htmlfontify in ELPA, but not htmlize. Which ELPA
> >> > repository will have htmlize?  Or I need to install the .el file
> >> > manually. I can find the htmlize.el in the following link, but not
> >> > sure it's up to date.
> >> > http://www.emacswiki.org/emacs-ja/htmlize.el.
> >> >
> >>
> >> htmlize.el is included in the contrib/lisp directory of org (but
> I'm not
> >> sure if contrib is part of the ELPA org distribution - it is
> available
> >> if you get org from the git repo or from the tarball). The one I have
> >> says:
> >>
> >> ,
> >> | ;;; htmlize.el --- Convert buffer text and decorations to HTML.
> >> |
> >> | ;; Copyright (C) 1997-2013 Hrvoje Niksic
> >> |
> >> | ;; Author: Hrvoje Niksic  >
> >> | ;; Keywords: hypermedia, extensions
> >> | ;; Version: 1.43
> >> `
> 
> You can find it in ELPA. Mine:
> 
>   ╭
>   │ ;;; htmlize.el --- Convert buffer text and decorations to HTML.
>   │
>   │ ;; Copyright (C) 1997-2003,2005,2006,2009,2011,2012 Hrvoje Niksic
>   │
>   │ ;; Author: Hrvoje Niksic  >
>   │ ;; Keywords: hypermedia, extensions
>   │ ;; Version: 20130207.1202
>   │ ;; X-Original-Version: 1.47
>   ╰
> 
> Best regards,
>   Seb
> 
> --
> Sebastien Vauban
> 
> 
>