emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Chris Leyon" <cleyon@gmail.com>
To: Graham Smith <myotisone@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: help with modifying a bit of code in .emacs
Date: Thu, 13 Dec 2007 21:08:37 -0500	[thread overview]
Message-ID: <5ea706d0712131808w6d7da459i33cedb117e54c668@mail.gmail.com> (raw)
In-Reply-To: <2c75873c0712131111m5b435f6cp912c2bce3b16f4d6@mail.gmail.com>

On Dec 13, 2007 2:11 PM, Graham Smith <myotisone@gmail.com> wrote:
> I have been trying to rewrite the code to avoid the custom-set-variables in
> .emacs but have finally come unstuck with this bit:
> [...]
> "Invalid read syntax: Invalid string property list" error when launching
> Emacs and narrowed it down to this bit of code. Can anyone point out where
> this is wrong. The rest of it loads OK, its just this bit which is failing.

The #(...) is attempting to set a text property on the string
"DELEGATED".  Apparently nil is not valid in this location.  See
section 2.3.8.4 in the Elisp info document.  Since nil probably means
no property, you can just eliminate the #() syntax.

Also, your parentheses don't match up; you need extra closing parens
after some entries to make a well-formed list.  You probably want to
end up with something like this (not tested but at least it evaluates
without error):

(setq org-agenda-custom-commands
      '(("d" todo ("DELEGATED"))
        ("c" todo ("DONE|DEFERRED|CANCELLED"))
        ("w" todo ("WAITING"))
        ("W" agenda "" ((org-agenda-ndays 21)))
        ("A" agenda "" ((org-agenda-skip-function
                         (lambda nil
                           (org-agenda-skip-entry-if (quote notregexp)
"\\=.*\\[#A\\]")))
                        (org-agenda-ndays 1)
                        (org-agenda-overriding-header "Today's
Priority #A tasks: ")))
        ("u" alltodo "" ((org-agenda-skip-function
                          (lambda nil
                            (org-agenda-skip-entry-if (quote
scheduled) (quote deadline)
                                                      (quote regexp)
"<[^>\n]+>")))
                         (org-agenda-overriding-header "Unscheduled
TODO entries: ")))))

> Many thanks,
> Graham

Chris

  parent reply	other threads:[~2007-12-14  2:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-13 19:11 help with modifying a bit of code in .emacs Graham Smith
2007-12-14  1:27 ` William Henney
2007-12-14  8:56   ` Graham Smith
2007-12-14  2:08 ` Chris Leyon [this message]
2007-12-14  9:00   ` Graham Smith

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=5ea706d0712131808w6d7da459i33cedb117e54c668@mail.gmail.com \
    --to=cleyon@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=myotisone@gmail.com \
    /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).