Re: [O] How to do proper folding and semantic markup

2016-04-04 Thread Adam Porter
Eduardo Mercovich  mercovich.net> writes:

> Also less known that it deserves, for focusing I do use narrowing a lot:

Yeah, that's basically what tree-to-indirect does, it makes an indirect
buffer and then narrows it.  So you can widen the indirect buffer and get
another view of the whole buffer.  

I also use this advice to rename the indirect buffer to the name of the
heading, that way you don't end up with "file.org<1>"-style buffers:

(defun ap/org-rename-tree-to-indirect-buffer ( args)
"Rename the new buffer to the current org heading after using
org-tree-to-indirect-buffer."
(with-current-buffer (car (buffer-list (car (frame-list
  (save-excursion
(let* ((heading (nth 4 (org-heading-components)))
   (name (if (string-match org-bracket-link-regexp heading)
 ;; Heading is an org link; use link name
 ;; TODO: but what if only part of the heading is?
 (match-string 3 heading)
   ;; Not a link; use whole heading
   heading)))
  (rename-buffer name) t
  (advice-add 'org-tree-to-indirect-buffer :after
'ap/org-rename-tree-to-indirect-buffer)




[O] bug: cannot refile x to x, or go to x, where headers have the same name

2016-04-04 Thread Samuel Wales
i often refile a header to a target that has the same name as the
source.  they are different headers, but they have the same name.

my goal is to send x(1) to x(2) so that the olpath looks like
x(2)/x(1).  this to me is totally legitimate.  i often have headers
with the same name, for various reasons.

but org-refile removes the /source/ header name from the list of
/target/ candidates.  perhaps the intention was to prevent refiling
something to itself.  did that cause problems?

but i am not refiling something to itself.  they just have the same
name.  they are different headers.

furthermore, the same bug occurs with refile goto.

i can work around this by adding random text to the source header, or
moving point for goto, but i'd rather not have to.

can this interlock ve disabled or modified to allow different headers
with the same name?

thanks.

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  And
ANYBODY can get it.

Denmark: free Karina Hansen NOW.



Re: [O] orgmode and a database

2016-04-04 Thread Charles Millar

Hi,

On 04/04/2016 03:46 PM, Uwe Brauer wrote:

Hello

I am looking for a sort of database I could use with orgmode. Anybody
has a suggestion? What's about recutils?



I have been using recutils with orgmode for more than year - still 
learning of course. So far, my experience has been fine. I am still 
developing some sort of standard databases, e.g. one for contacts, 
another for finance type of records, etc.


Have you checked out the two recutils mailing lists? Not very active at 
the moment. I mentioned in those lists that perhaps some sort of capture 
much like org-capture might be useful, but have made no further effort 
in that regards.


I picked up a excellent pointers as to using recutils to create org-mode 
tables from Jose Marchesi's and Eric Shulte's ob-rec.el discussion on 
this list back in 2011. I ultimately export the tables and related text 
to LaTeXpdf docs.


A few months ago I added recutils or "rec" to the Babel:languages, Emacs 
Package section - still haven't provided an example though. (It may have 
been Eric who encouraged me to post my entry to Worg, but at the moment 
I cannot recall for sure.)


Charlie Millar



Re: [O] orgmode and a database

2016-04-04 Thread Ken Mankoff

On 2016-04-04 at 15:46, Uwe Brauer  wrote:
> I am looking for a sort of database I could use with orgmode. Anybody
> has a suggestion? What's about recutils?

Can you be more specific?

Org tables? They can be joined...

Org supports SQLite 
http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-sqlite.html
http://howardism.org/Technical/Emacs/literate-database.html

And many use Org PROPERTY drawers as a database (for example, the address book 
support/examples).

  -k.



[O] orgmode and a database

2016-04-04 Thread Uwe Brauer
Hello

I am looking for a sort of database I could use with orgmode. Anybody
has a suggestion? What's about recutils?

thanks

Uwe Brauer 




Re: [O] How to rename the agenda in org-mode?

2016-04-04 Thread Sharon Kimble
Adam Porter  writes:

> Oops, that'll teach me to edit elisp without aggressive-indent-mode.  :) 
> This should work:
>
> (advice-add 'tabbar-buffer-tab-label :before-until
>   (lambda (tab)
> (with-current-buffer (buffer-name (tabbar-tab-value tab))
>   (when (equal major-mode 'org-agenda-mode)
> "Agenda"

Brilliant, thanks very much Adam, that works a treat.

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


signature.asc
Description: PGP signature


Re: [O] isbn-to-bibtex (from org-ref) fails

2016-04-04 Thread John Kitchin
thanks for the report. I think I have fixed it in a recent push.

Julien Cubizolles writes:

> I've just tried isbn-to-bibtex with the isbn entry "0201500647" (Feynman
> lectures on physics). It fails with:
>
> --8<---cut here---start->8---
> funcall-interactively: Wrong type argument: stringp, [((url . 
> ["http://www.worldcat.org/oclc/67451431?referer=xid;]) (publisher . 
> "Addison-Wesley") (form . ["BA"]) (lccn . ["89000433"]) (lang . "eng") (city 
> . "Reading, Mass.") (author . "Feynman, Leighton, Sands.") (ed . "8th 
> print.") (year . "1996") (isbn . ["0201500647"]) ...)]
> --8<---cut here---end--->8---
>
> However, isbn-to-bibtex-lead gets me to the right page with a bibtex
> entry ready to be copied.
>
>
> Julien.


--
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] isbn-to-bibtex (from org-ref) fails

2016-04-04 Thread Julien Cubizolles
I've just tried isbn-to-bibtex with the isbn entry "0201500647" (Feynman
lectures on physics). It fails with:

--8<---cut here---start->8---
funcall-interactively: Wrong type argument: stringp, [((url . 
["http://www.worldcat.org/oclc/67451431?referer=xid;]) (publisher . 
"Addison-Wesley") (form . ["BA"]) (lccn . ["89000433"]) (lang . "eng") (city . 
"Reading, Mass.") (author . "Feynman, Leighton, Sands.") (ed . "8th print.") 
(year . "1996") (isbn . ["0201500647"]) ...)]
--8<---cut here---end--->8---

However, isbn-to-bibtex-lead gets me to the right page with a bibtex
entry ready to be copied.


Julien.




Re: [O] org-ref, abstracts

2016-04-04 Thread John Kitchin
I think thats what I mean.

org-ref-arxiv hasn't been changed for at least two months I think.

and the abstract is listed in the template here:
https://github.com/jkitchin/org-ref/blob/2a8635d4662fbe77f43731edeac1b4ec1112d233/org-ref-arxiv.el#L103


Julien Cubizolles writes:

> John Kitchin  writes:
>
>> no problem. I am not sure when that happened though ;)
>
> Do you mean you didn't add this functionnality recently and it's been
> here all along?
>
> Julien.


--
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] org-ref, abstracts

2016-04-04 Thread Julien Cubizolles
John Kitchin  writes:

> no problem. I am not sure when that happened though ;)

Do you mean you didn't add this functionnality recently and it's been
here all along ?

Julien.



Re: [O] How to do proper folding and semantic markup

2016-04-04 Thread Eduardo Mercovich
Hi Adam. 

> Just a note, you mentioned that you find the folding very useful, so you
> might want to try out the org-tree-to-indirect-buffer command.  It's very
> helpful when you're working on a large Org file and only want to work on
> certain parts of it. [...]

I didn't knew it, thank you. :)
Also less known that it deserves, for focusing I do use narrowing a lot:

C-x n s (org-narrow-to-subtree)
Narrow buffer to current subtree. 

C-x n w (widen)
Widen buffer to remove narrowing.

(more in http://orgmode.org/manual/Structure-editing.html)

Thanks again. :)
Best...


-- 
eduardo mercovich 

 Donde se cruzan tus talentos 
 con las necesidades del mundo, 
 ahí está tu vocación.



Re: [O] org-ref, abstracts

2016-04-04 Thread John Kitchin
no problem. I am not sure when that happened though ;)

Julien Cubizolles writes:

> John Kitchin  writes:
>
>
>> If the data exists, then arxiv-add-bibtex-entry could probably add the
>> abstract if it existed. I am not too familiar with arxiv so I am not
>> sure.
>
> Just noticed that arxiv-get-pdf-add-bibtex-entry now includes the
> abstract. Thanks a lot for implementing it.
>
> Julien.


--
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