Re: [O] [patch, ox] Unnumbered headlines

2014-10-05 Thread Nicolas Goaziou
Hello,

Rasmus  writes:

> Then there's 12. Exporting, where I guess the closest fitting section
> is 12.3 Export settings.
>
> Any opinions? 

I think section 12.3 is fine, as an additional paragraph within the num:
entry.


Regards,

-- 
Nicolas Goaziou



Re: [O] [ox-latex] How to force ALL captions below their referents?

2014-10-05 Thread Nicolas Goaziou
Hello,

James Harkins  writes:

> Something like that would do it, I think. I hesitate about breaking
> backward compatibility, but at the same time, I'm hard-pressed to
> imagine why one would want captions to be differently placed in the
> same document.

This wouldn't break compatibility. We would just mark
`org-latex-table-caption-above' as an obsolete alias for
`org-latex-caption-above'.

> I suppose, if somebody needs to move a caption to the top or bottom
> overriding the default, it could be an attribute, hypothetically:
>
> #+name: blah
> #+caption: blah blah
> #+attr_latex: :captionpos t
> #+begin_figure
> ...
> #+end_figure
>
> "t" would put it at the top, ":captionpos b" at the bottom and
> ":captionpos nil" (or not specified) would use the default from the
> configuration variable.
>
> Reasonable?

I don't think we need to go that far at the moment. Implementing
`org-latex-caption-above' is a reasonable start.

I add it to my ToDo list.


Regards,

-- 
Nicolas Goaziou



Re: [O] Help on org-export-filter-link-functions

2014-10-05 Thread John Kitchin
Rasmus  writes:

hmmm... the sometimes makes me nervous. I found even for links, this
only works sometimes. That doesn't seem reliable to me.

I think extending existing backends
(e.g. http://orgmode.org/manual/Advanced-configuration.html) is probably
more reliable for getting element properties, and approximately the same
amount of work.

I guess it just depends on how significantly you are modifying the
export, and what information you need to modify it. Filters are great
for simple wrapping and regexp based modifications. A derived backend is
better if you need reliable element properties, and a different format
than the default export.


> John Kitchin  writes:
>
>> I too am wondering if there is a defined way to get to the element
>> properties within a filter function.
>
> qNo.  But sometimes you can recover it from the text-properties, if it
> is not a verb, (~·~, =·=).  Her's an example:
>
>   (defun rasmus/get-org-headline-string-element  (headline backend info)
> "Return the org element representation of a headline."
> (let ((prop-point (next-property-change 0 headline)))
>   (and prop-point (plist-get (text-properties-at prop-point headline) 
> :parent

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



Re: [O] Filter by tags

2014-10-05 Thread Alexander Baier
On 2014-10-05 06:42 Chris Henderson wrote:
> I have 4 * items (* Tasks, * Projects, * Someday/ maybe and * Read and
> Review) - how do I select tags (e.g. @internet, @home, @work etc.) only
> from * Tasks and * Projects?

I am not completely sure if I understand what you want to do, but maybe
tag groups will help you out:

http://orgmode.org/org.html#Tag-groups

HTH,
-- 
Alexander Baier



[O] searching across all/multiple org files

2014-10-05 Thread Xebar Saram
hi list

im looking for a way to do a simple search (though i could see times where
a org headline search would work) across multiple org file. what would be
nice is defining a folder before that has org files and search there

any ideas on this anyone?

thx alot in advance

Z


Re: [O] searching across all/multiple org files

2014-10-05 Thread Subhan Michael Tindall
Org agenda searches  (C-c a http://orgmode.org/worg/org-tutorials/advanced-searching.html for some 
great info on searching
Another option is to use the shell, for example
Find –name ‘*.org’   (see man 
pages for more details)


From: emacs-orgmode-bounces+subhant=familycareinc@gnu.org 
[mailto:emacs-orgmode-bounces+subhant=familycareinc@gnu.org] On Behalf Of 
Xebar Saram
Sent: Sunday, October 05, 2014 6:59 AM
To: org mode
Subject: [O] searching across all/multiple org files

hi list

im looking for a way to do a simple search (though i could see times where a 
org headline search would work) across multiple org file. what would be nice is 
defining a folder before that has org files and search there

any ideas on this anyone?
thx alot in advance

Z

This message is intended for the sole use of the individual and entity to which 
it is addressed and may contain information that is privileged, confidential 
and exempt from disclosure under applicable law. If you are not the intended 
addressee, nor authorized to receive for the intended addressee, you are hereby 
notified that you may not use, copy, disclose or distribute to anyone the 
message or any information contained in the message. If you have received this 
message in error, please immediately advise the sender by reply email and 
delete the message.  Thank you.


Re: [O] searching across all/multiple org files

2014-10-05 Thread Thorsten Jolitz
Xebar Saram  writes:

> hi list
>
> im looking for a way to do a simple search (though i could see times
> where a org headline search would work) across multiple org file. what
> would be nice is defining a folder before that has org files and
> search there
>
> any ideas on this anyone?

not org specific, but 

,[ C-h f helm-do-grep RET ]
| helm-do-grep is an interactive autoloaded Lisp function in
| `helm-grep.el'.
| 
| It is bound to C-x c M-g s, .
| 
| (helm-do-grep)
| 
| Preconfigured helm for grep.
| Contrarily to Emacs `grep', no default directory is given, but
| the full path of candidates in ONLY.
| That allow to grep different files not only in `default-directory' but 
anywhere
| by marking them (C-). If one or more directory is selected
| grep will search in all files of these directories.
| You can also use wildcard in the base name of candidate.
| If a prefix arg is given use the -r option of grep (recurse).
| The prefix arg can be passed before or after start file selection.
| See also `helm-do-grep-1'.
`

is very good at this.

-- 
cheers,
Thorsten




Re: [O] Getting lots of Emacs crashes

2014-10-05 Thread Noah Slater
Using Org version: release_8.3beta-38-gbaa2c5

$ emacs --version

GNU Emacs 24.4.50.1

$ emacs --debug-init

Fatal error 11: Segmentation fault/usr/local/bin/emacs: line 2: 18940
Abort trap: 6
/usr/local/Cellar/emacs/HEAD/Emacs.app/Contents/MacOS/Emacs -nw "$@"

(Here I ran org-agenda, and it segfaulted.)

I tried the above command again, and Emacs does not segfault. However,
this time, I go to mark an Org item as done, and Emacs uses up 100%
CPU.

So I try this again, but I use dtruss -p PID to get a trace.

What I do here is that I open Emacs, set the trace running, then open
the agenda, move to the item, press "t" to bring up the change state
menu, then hit "d" for DONE.

That's when Emacs hangs, and this is the trace from pressing "d":

stat64("/var/run/random-seed\0", 0x7FFF5FBFA690, 0x1015661C8) = -1 Err#2
symlink("nsla...@air.fritz.box.19297\0",
"/Users/nslater/Documents/Org/.#Tech.org\0") = 0 0
write_nocancel(0x4, "\033[39d\033[?25lTODO state changed to
\033[1m\033[38;5;28mDONE\033[0m\033[39;49m\033[K\033[24;3H\033[?12l\033[?25h\033[?12;25h\0",
0x5E) = 94 0
select(0x5, 0x7FFF5FBFE1A0, 0x7FFF5FBFE120, 0x0, 0x7FFF5FBFDDF0) = -1 Err#4
sigreturn(0x7FFF5FBFDD30, 0x1E, 0x7FFF5FBFDD30) = 0 Err#-2
__pthread_canceled(0x0, 0x7FFF5FBFE1A0, 0x7FFF5FBFE120) = -1 Err#22
ioctl(0x4, 0x4004667F, 0x7FFF5FBFCADC) = 0 0
read(0x4, "d\b\0", 0x1) = 1 0
ioctl(0x4, 0x4004667F, 0x7FFF5FBFCADC) = 0 0
ioctl(0x4, 0x4004667F, 0x7FFF5FBFCADC) = 0 0
stat64("/Users/nslater/Documents/Org/Tech.org\0", 0x7FFF5FBFC6D8,
0x100522438) = 0 0
gettimeofday(0x7FFF5FBFD188, 0x0, 0x0) = 1412534490 0
write_nocancel(0x4,
"\033[39;23H\033[?25l\033[1m\033[91mTODO\033[0m\033[39;49m\033[24;3H\033[?12l\033[?25h\033[?12;25h#\0",
0x43) = 67 0
gettimeofday(0x7FFF5FBFD388, 0x0, 0x0) = 1412534492 0
gettimeofday(0x7FFF5FBFD328, 0x0, 0x0) = 1412534494 0
gettimeofday(0x7FFF5FBFD328, 0x0, 0xE0E0) = 1412534504 0
gettimeofday(0x7FFF5FBFD388, 0x0, 0xE0E4) = 1412534505 0
gettimeofday(0x7FFF5FBFD388, 0x0, 0xE0E4) = 1412534507 0
gettimeofday(0x7FFF5FBFD328, 0x0, 0xE0E0) = 1412534515 0
gettimeofday(0x7FFF5FBFD388, 0x0, 0x0) = 1412534523 0
gettimeofday(0x7FFF5FBFD388, 0x0, 0x0) = 1412534528 0
gettimeofday(0x7FFF5FBFD328, 0x0, 0xE0E0) = 1412534531 0
gettimeofday(0x7FFF5FBFD388, 0x0, 0x0) = 1412534539 0
gettimeofday(0x7FFF5FBFD388, 0x0, 0xE0E4) = 1412534540 0
gettimeofday(0x7FFF5FBFD328, 0x0, 0xE0E0) = 1412534542 0

And then just gettimeofday messages forever.

Any clue?

On 1 September 2014 22:06, Noah Slater  wrote:
> Hello,
>
> I'm getting a lot of Emacs crashes recently using Org. Is there any
> way I can help to debug why this is happening?
>
> Thanks,
>
> --
> Noah Slater
> https://twitter.com/nslater



-- 
Noah Slater
https://twitter.com/nslater



Re: [O] Babel introduction example cannot be executed

2014-10-05 Thread Thomas S. Dye
Aloha,

jenia.iv...@gmail.com (jenia.ivlev) writes:

> Hello.
>
> I want to run one of the examples on babel page. Normally, it's the simplest
> example the world has ever seen. I have a table of numbers and I want to
> take the evage of those number.

I pushed up some changes to
http://orgmode.org/worg/org-contrib/babel/intro.html#spreadsheet.
Hopefully, this will work for you now.

Also, I couldn't find mention in the Org-mode manual of the org-sbe
function.  I use this to set buffer local variables, and the example
jenia.ivlev points to uses it in a table formula (which I don't use).
Shouldn't this function be documented in the manual?

All the best,
Tom
-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] real-time image rendering

2014-10-05 Thread Sebastien Vauban
"Doyley, Marvin M." wrote:
> This works better
>  (add-hook 'org-babel-after-execute-hook
>'org-display-inline-images)

Why better?  For which reason?

Why not this:

--8<---cut here---start->8---
  (add-hook 'org-babel-after-execute-hook
(lambda ()
  (org-display-inline-images nil t)))
  ; more efficient with refresh == t
--8<---cut here---end--->8---

?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Filter by tags

2014-10-05 Thread Sebastien Vauban
Chris Henderson wrote:
> I have 4 * items (* Tasks, * Projects, * Someday/ maybe and * Read and
> Review) - how do I select tags (e.g. @internet, @home, @work etc.) only
> from * Tasks and * Projects?

Maybe by adding one or two tags to "Tasks" and "Projects", and including
them in the filter condition?

Would you wanna filter only within one subtree at a time, you can use
the "subtree restriction" (see "C-c a < ...").

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Help on org-export-filter-link-functions

2014-10-05 Thread Rasmus
Hi John,

John Kitchin  writes:

> hmmm... the sometimes makes me nervous. I found even for links, this
> only works sometimes. That doesn't seem reliable to me.

With headlines the case where it does not work is for verb-only
headings.  I guess that could occur more frequently with links, though
I have never done anything serious with links. q  

> I think extending existing backends
> (e.g. http://orgmode.org/manual/Advanced-configuration.html) is probably
> more reliable for getting element properties, and approximately the same
> amount of work.
 
In practice derived classes could be a lot of work.

There is also two hooks that run before processing, but you'd need to
be able to solve the issue with org syntax.  In practice this is not a
limitation as you can use snippets for whatever backend.

> I guess it just depends on how significantly you are modifying the
> export, and what information you need to modify it. Filters are great
> for simple wrapping and regexp based modifications. A derived backend is
> better if you need reliable element properties, and a different format
> than the default export.

Yeah.

–Rasmus

-- 
I almost cut my hair, it happened just the other day




Re: [O] PATCH: org-mac-link.el: Don't fail on machines without Growl installed

2014-10-05 Thread Alan Schmitt
Hello,

Unless I'm mistaken, I did not receive a reply to this question: can
I apply this patch?

I understand that Bastien is quite busy at the moment, so I'm wondering
if I should bug somebody else ;)

Best,

Alan

On 2014-09-25 08:17, Alan Schmitt  writes:

> On 2014-09-24 20:59, Steve Purcell  writes:
>
>> On 24 Sep 2014, at 20:13, Alan Schmitt  
>> wrote:
>>
>>> tell application "System Events"
>>> set growlHelpers to the name of every process whose creator type 
>>> contains "GRRR"
>>> if (count of growlHelpers) > 0 then
>>> set growlHelperApp to item 1 of growlHelpers
>>> else
>>> set growlHelperApp to ""
>>> end if
>>> end tell
>>> 
>>> I get an empty string as returned value. Is is the same for you?
>>
>>
>> Yes, that part works fine on its own even on my machine. But when the
>> code passed to AppleScript includes 'tell application
>> “GrowlHelperApp”’, then the code will not execute unless the app is
>> present — there’s a precompilation step where, presumably, AppleScript
>> determines that the target application supports the listed commands.
>
> I see. I agree this should be removed.
>
> Org maintainers: can I apply this patch?
>
> Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7


signature.asc
Description: PGP signature