emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: "Ross A. Laird" <ross@rosslaird.info>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Wrong type argument: sequencep, quote
Date: Thu, 26 Feb 2009 15:56:38 +0100	[thread overview]
Message-ID: <CBE98E6C-067D-41F3-BE19-2526EAE56A50@uva.nl> (raw)
In-Reply-To: <87bpsqkw2w.fsf@rosslaird.info>

Hi Ross,

On Feb 25, 2009, at 11:09 PM, Ross A. Laird wrote:

> Carsten Dominik <dominik@science.uva.nl> writes:
>
>>>> What is the value or org-drawers?
>>>>
>>>> What is your #+OPTIONS line?
>
> I do not have an options line.
>
> [snip: original question (11 lines)]>>
>
>>> #+DRAWERS: HIDDEN PROPERTIES STATE PRIVATE
>>
>> This line is correct, and when activated by loading such a buffer,
>> or by pressing C-c C-c in the line, it will actually change org- 
>> drawers.
>
> Yes, this works now.
> I discovered that I had a *second* drawers setting at the end of the
> file, under Local Variables. This second entry, which I copied from  
> the
> list archive, said this:
>
> -# Local Variables:
> -# org-drawers: '("PROPERTIES" "CLOCK" "MYDRAW")
> -# End:


Now we are getting there.  This *would* be equivalent to

#+DRAWERS: PROPERTIES CLOCK MYDRAW

if you'd left off the quote:

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

This is how the syntax of file variables works, values are read with  
`read', not
evaluated, so quoting is not needed.  Invalid, actually.
Confusing, yes, but safer.

>
>
> I did not change the final MYDRAW, but I suspect that it should have
> said PRIVATE, the name of my drawer. I suspect, though I am not  
> certain,
> that the duplication of this line contributed to or caused my  
> problem. After I
> removed the above three lines, html export worked.
>
>> Let me repeat:  Do you have an #+OPTIONS line?  what does it say?
>
> No options line.

OK, this could also have been a problem, possibly.

>> Please verify the value of org-drawers in the buffer where
>> you use this.

>>
>
> I'm not sure what you are asking for.

What I meant was to do

C-h v org-drawers RET

in the buffer to find out what the value truly is, to see
what - if anything -  the in-buffer settings achieved.

> The only drawer-related items I
> have in the file (other than those native to org) are the drawer  
> itself
> and the line at the top of the file beneath the startup line:
>
> #+STARTUP:overview logdone
> #+DRAWERS: HIDDEN PROPERTIES STATE PRIVATE
>
> That's it. No org-drawers value other than this. And this is part of  
> my
> problem. I can find no documentation (either in the manual or on this
> list) as to what I'm supposed to do with org-drawers.


You did the right thing, #+DRAWERS is in the manual as an example.

If you want to configure an Emacs variables directly, for example to
set consistend defaults for all Org files, it is often easier to
got through customize

M-x customize-variable RET org-drawers RET

because that does enforce the correct format of the value.

> The documentation
> says this must be configured, but does not show how. For a non- 
> programmer,
> this presents a challenge. (Or, it may be in the documentation  
> somewhere,
> but I could not find it.)
>
>> Don't try to minimize the information you give us, maximize it.
>
> I hope this gives you enough. It's working now, though I still have  
> not
> configured anything special and do not know how to use org-drawers.
> Inferring from the line that I removed, the following is perhaps the
> value of org-drawers that I should use:
>
> # org-drawers: '("HIDDEN" "PROPERTIES" "STATE" "PRIVATE")
>
> Is the above the same as:
>
> #+DRAWERS: HIDDEN PROPERTIES STATE PRIVATE


Without the quote, no difference.
Except that the syntax is easier with #+DRAWERS
and also not subject to (in this case unnecessary) security checks.

HTH

- Carsten

>
>
> I assume there is a difference that is useful in some way, but I do  
> not
> know enough about programming to figure this out.
>
> Cheers.
>
> Ross
>
>>>> On Feb 24, 2009, at 7:40 AM, Ross A. Laird wrote:
>>>>
>>>>>
>>>>> This is the error I get when I try any form of html export:
>>>>>
>>>>> org-export-remove-or-extract-drawers: Wrong type argument:
>>>>> sequencep,
>>>>> quote
>>>>>
>>>>> It even happens when I select a region without a drawer and then  
>>>>> try
>>>>> exporting.
>>>>>
>>>>> Suggestions?
>>>>>
>>>>> --
>>>>> Ross A. Laird, PhD
>>>>> www.rosslaird.info
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Emacs-orgmode mailing list
>>>>> Remember: use `Reply All' to send replies to the list.
>>>>> Emacs-orgmode@gnu.org
>>>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Emacs-orgmode mailing list
>>>> Remember: use `Reply All' to send replies to the list.
>>>> Emacs-orgmode@gnu.org
>>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>>>
>>>
>>> --
>>> Ross A. Laird, PhD
>>> www.rosslaird.info
>>>
>>>
>>>
>>> _______________________________________________
>>> Emacs-orgmode mailing list
>>> Remember: use `Reply All' to send replies to the list.
>>> Emacs-orgmode@gnu.org
>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
> -- 
> Ross A. Laird, PhD
> www.rosslaird.info
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

      reply	other threads:[~2009-02-26 14:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-24  6:40 Wrong type argument: sequencep, quote Ross A. Laird
2009-02-24 10:06 ` Carsten Dominik
2009-02-24 15:05   ` Ross A. Laird
2009-02-25 11:49     ` Carsten Dominik
2009-02-25 22:09       ` Ross A. Laird
2009-02-26 14:56         ` Carsten Dominik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CBE98E6C-067D-41F3-BE19-2526EAE56A50@uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=ross@rosslaird.info \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).