emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Drawers
@ 2007-10-15 21:54 Richard G Riley
  2007-10-15 23:57 ` Drawers Bastien
  0 siblings, 1 reply; 4+ messages in thread
From: Richard G Riley @ 2007-10-15 21:54 UTC (permalink / raw)
  To: org-mode


Is is possible to specify file specific drawers?

http://orgmode.org/org.html#drawers

e.g

I tried 

#+DRAWERS: mydraw

but it didn't seem to work. Is there another way other than to customise

org-drawers

?

thanks,

r.

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

* Re: Drawers
  2007-10-15 21:54 Drawers Richard G Riley
@ 2007-10-15 23:57 ` Bastien
  2007-12-22 12:16   ` Drawers Adam Spiers
  0 siblings, 1 reply; 4+ messages in thread
From: Bastien @ 2007-10-15 23:57 UTC (permalink / raw)
  To: emacs-orgmode

Richard G Riley <rileyrgdev@googlemail.com> writes:

> Is is possible to specify file specific drawers?

Put this at the end of your .org file:

# Local Variables:
# org-drawers: '("PROPERTIES" "CLOCK" "MYDRAW")
# End:

This is a general Emacs mechanism for setting local variable: check it
out here: (info "(emacs)Specifying File Variables")

-- 
Bastien

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

* Re: Drawers
  2007-10-15 23:57 ` Drawers Bastien
@ 2007-12-22 12:16   ` Adam Spiers
  2008-01-03 17:01     ` Drawers Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: Adam Spiers @ 2007-12-22 12:16 UTC (permalink / raw)
  To: emacs-orgmode

On Tue, Oct 16, 2007 at 12:57:37AM +0100, Bastien wrote:
> Richard G Riley <rileyrgdev@googlemail.com> writes:
> 
> > Is is possible to specify file specific drawers?
> 
> Put this at the end of your .org file:
> 
> # Local Variables:
> # org-drawers: '("PROPERTIES" "CLOCK" "MYDRAW")
> # End:
> 
> This is a general Emacs mechanism for setting local variable: check it
> out here: (info "(emacs)Specifying File Variables")

I only just noticed that since 5.13 #+DRAWERS is available for
per-file customization - very nice.  However, I still had the above
syntax in my files, and it appears that quoting the list breaks a
number of things including export:

Debugger entered--Lisp error: (wrong-type-argument sequencep quote)
  mapconcat(identity (quote ("HIDE" "STATE" "PROPERTIES" "CLOCK")) "\\|")
  org-cleaned-string-for-export(#("\n* [... snip ...]
  org-export-as-ascii(nil)
  call-interactively(org-export-as-ascii)
  org-export()
  call-interactively(org-export)

M-x set-variable also spots something is wrong if you include the quote:

set-variable: Value `(quote ("HIDE" "STATE" "PROPERTIES" "CLOCK"))' does not match type repeat of org-drawers

In other words, if you wanted to use Local Variables rather than
#+DRAWERS (though I can't think why you would now that #+DRAWERS is
available), then presumably it should be:

  # Local Variables:
  # org-drawers: ("PROPERTIES" "CLOCK" "MYDRAW")
  # End:

However, even that doesn't work for me.  Oh well, I'm scrapping it
anyway in favour of #+DRAWERS.

On a related note, please could HIDE or HIDDEN be included in the
default org-drawers list?  Seems like a common enough use case to
justify being a default, and I can't imagine it annoying anyone who
doesn't need it.

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

* Re: Drawers
  2007-12-22 12:16   ` Drawers Adam Spiers
@ 2008-01-03 17:01     ` Carsten Dominik
  0 siblings, 0 replies; 4+ messages in thread
From: Carsten Dominik @ 2008-01-03 17:01 UTC (permalink / raw)
  To: Adam Spiers; +Cc: emacs-orgmode


On Dec 22, 2007, at 1:16 PM, Adam Spiers wrote:
>>
>> # Local Variables:
>> # org-drawers: '("PROPERTIES" "CLOCK" "MYDRAW")
>> # End:
>>
>> This is a general Emacs mechanism for setting local variable: check  
>> it
>> out here: (info "(emacs)Specifying File Variables")
>
> I only just noticed that since 5.13 #+DRAWERS is available for
> per-file customization - very nice.  However, I still had the above
> syntax in my files, and it appears that quoting the list breaks a
> number of things including export:
>

File variable values are read directly with the Lisp primitive `read',
the value is not evaluated (like it would be using `setq' or `set')
before it is assigned to the variable. Therefore the value should
not be quoted.

- Carsten

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

end of thread, other threads:[~2008-01-03 17:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-15 21:54 Drawers Richard G Riley
2007-10-15 23:57 ` Drawers Bastien
2007-12-22 12:16   ` Drawers Adam Spiers
2008-01-03 17:01     ` Drawers Carsten Dominik

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