emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* FILE special property?
@ 2014-05-16 20:12 Boyan Penkov
  2014-05-16 21:10 ` Alexander Baier
  0 siblings, 1 reply; 4+ messages in thread
From: Boyan Penkov @ 2014-05-16 20:12 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

I’m looking to set up a search string using the FILE special property, but cannot get the syntax right.  This is as part of setting up org-stuck-projects.

If the file is in ~/todos/myTodos.org, and I want all the entries with heading 1, will 

(setq org-stuck-projects
      ‘(“+FILE="~/todos/myTodos.org"+LEVEL=1" ("NEXT" "TODO") nil "”))

work, or am I missing quotes there?

Thanks!

--
Boyan Penkov
www.boyanpenkov.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: FILE special property?
  2014-05-16 20:12 FILE special property? Boyan Penkov
@ 2014-05-16 21:10 ` Alexander Baier
  2014-05-17  2:17   ` Boyan Penkov
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Baier @ 2014-05-16 21:10 UTC (permalink / raw)
  To: Boyan Penkov; +Cc: emacs-orgmode

On 2014-05-16 22:12 Boyan Penkov wrote:
> (setq org-stuck-projects
>       ‘(“+FILE="~/todos/myTodos.org"+LEVEL=1" ("NEXT" "TODO") nil "”))

I have never used this feature, but this first element look odd to
me. I would try this: “+FILE=\"~/todos/myTodos.org\"+LEVEL=1".

HTH,
-- 
Alexander Baier

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: FILE special property?
  2014-05-16 21:10 ` Alexander Baier
@ 2014-05-17  2:17   ` Boyan Penkov
  2014-05-17  4:03     ` Nick Dokos
  0 siblings, 1 reply; 4+ messages in thread
From: Boyan Penkov @ 2014-05-17  2:17 UTC (permalink / raw)
  To: Alexander Baier; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 985 bytes --]

Thanks for your help, Alex.

The backslashes do get the string to evaluate correctly (now the value of org-stuck-projects is indeed set to what you’d think it would be set to, where the first element is a string), but this does not yield the right output — C-c # still yields no output, and I do know there are projects I define as unfinished in the relevant file.

When I crop out the +FILE=… part of the string, I get the output I’m expecting, so I’m pretty sure my problem is with the syntax of the FILE selector.

Thanks!
--
Boyan Penkov
www.boyanpenkov.com

On May 16, 2014, at 5:10 PM, Alexander Baier <alexander.baier@mailbox.org> wrote:

> On 2014-05-16 22:12 Boyan Penkov wrote:
>> (setq org-stuck-projects
>>      ‘(“+FILE="~/todos/myTodos.org"+LEVEL=1" ("NEXT" "TODO") nil "”))
> 
> I have never used this feature, but this first element look odd to
> me. I would try this: “+FILE=\"~/todos/myTodos.org\"+LEVEL=1".
> 
> HTH,
> -- 
> Alexander Baier


[-- Attachment #2: Type: text/html, Size: 2059 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: FILE special property?
  2014-05-17  2:17   ` Boyan Penkov
@ 2014-05-17  4:03     ` Nick Dokos
  0 siblings, 0 replies; 4+ messages in thread
From: Nick Dokos @ 2014-05-17  4:03 UTC (permalink / raw)
  To: emacs-orgmode

Boyan Penkov <boyan.penkov@gmail.com> writes:

> Thanks for your help, Alex.
>
> The backslashes do get the string to evaluate correctly (now the value of org-stuck-projects is indeed set to what you’d think it would be set to, where the first element is a
> string), but this does not yield the right output — C-c # still yields no output, and I do know there are projects I define as unfinished in the relevant file.
>
> When I crop out the +FILE=… part of the string, I get the output I’m expecting, so I’m pretty sure my problem is with the syntax of the FILE selector.
>

~ is bash syntax. Try replacing it with the full path of your home
directory.

> Thanks!
> --
> Boyan Penkov
> www.boyanpenkov.com
>
> On May 16, 2014, at 5:10 PM, Alexander Baier <alexander.baier@mailbox.org> wrote:
>
>     On 2014-05-16 22:12 Boyan Penkov wrote:
>    
>         (setq org-stuck-projects
>              ‘(“+FILE="~/todos/myTodos.org"+LEVEL=1" ("NEXT" "TODO") nil "”))
>
>     I have never used this feature, but this first element look odd to
>     me. I would try this: “+FILE=\"~/todos/myTodos.org\"+LEVEL=1".
>    
>     HTH,
>     --
>     Alexander Baier
>

-- 
Nick

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-05-17  4:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-16 20:12 FILE special property? Boyan Penkov
2014-05-16 21:10 ` Alexander Baier
2014-05-17  2:17   ` Boyan Penkov
2014-05-17  4:03     ` Nick Dokos

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).