* org-agenda-file-to-front (unbalanced parentheses))))
@ 2009-09-01 23:11 Jai Jeffryes
2009-09-04 8:16 ` Bastien
0 siblings, 1 reply; 4+ messages in thread
From: Jai Jeffryes @ 2009-09-01 23:11 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 1021 bytes --]
I get a scan error when I try to add my current ORG file to the list of agenda files.
I'm using Emacs 23.1.1 on Windows, so it has the Org mode built in.
I create a new .ORG file, add some text, and save it.
Then I type C-c [
and I get this error.
Scan error: "Unbalanced parentheses", 17495, 29440
Any ideas?
The same thing happens if I use the menu:
Org --> File list for agenda --> Add/Move current file to front of list
Or the full command: org-agenda-file-to-front
I tried running the debugger, but that part of Emacs I've never learned. I haven't done my own Lisp programming. I'd provide some more info if someone wanted to prompt me on the next thing to try!
Jai Jeffryes
NYC
_________________________________________________________________
Windows Live: Keep your friends up to date with what you do online.
http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_online:082009
[-- Attachment #1.2: Type: text/html, Size: 1306 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: org-agenda-file-to-front (unbalanced parentheses))))
2009-09-01 23:11 org-agenda-file-to-front (unbalanced parentheses)))) Jai Jeffryes
@ 2009-09-04 8:16 ` Bastien
2009-09-04 23:59 ` Jai Jeffryes
0 siblings, 1 reply; 4+ messages in thread
From: Bastien @ 2009-09-04 8:16 UTC (permalink / raw)
To: Jai Jeffryes; +Cc: emacs-orgmode
Hi Jai,
I cannot reproduce this error. Please send a more detailed backtrace by
following the instructions here:
http://orgmode.org/manual/Feedback.html
Thanks,
Jai Jeffryes <jaijeffcom@hotmail.com> writes:
> I get a scan error when I try to add my current ORG file to the list of agenda
> files.
>
> I'm using Emacs 23.1.1 on Windows, so it has the Org mode built in.
>
> I create a new .ORG file, add some text, and save it.
>
> Then I type C-c [
>
> and I get this error.
>
> Scan error: "Unbalanced parentheses", 17495, 29440
>
> Any ideas?
>
> The same thing happens if I use the menu:
>
> Org --> File list for agenda --> Add/Move current file to front of list
>
> Or the full command: org-agenda-file-to-front
>
> I tried running the debugger, but that part of Emacs I've never learned. I
> haven't done my own Lisp programming. I'd provide some more info if someone
> wanted to prompt me on the next thing to try!
>
> Jai Jeffryes
> NYC
>
> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
> Windows Live: Keep your friends up to date with what you do online. Find out
> more.
>
> _______________________________________________
> 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
--
Bastien
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: org-agenda-file-to-front (unbalanced parentheses))))
2009-09-04 8:16 ` Bastien
@ 2009-09-04 23:59 ` Jai Jeffryes
2009-09-05 7:38 ` Bastien
0 siblings, 1 reply; 4+ messages in thread
From: Jai Jeffryes @ 2009-09-04 23:59 UTC (permalink / raw)
To: bastienguerry; +Cc: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 4919 bytes --]
Bastien,
Thanks for looking at my message. So, here's what I came up with by following the instructions on the Feedback page you suggested.
1. Emacs version: GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-29 on SOFT-MJASON2. Org version (it came with my Emacs install, I didn't do a separate installation of the mode):Org-mode version 6.21b
3. (Even though I'm writing to this email list, I was curious to try the command M-x org-submit-bug-report. That command is not defined in my Emacs.)4. Here are the org-related commands in my init file. I found out how to set up my agenda files there instead of relying on the command that I'm demonstrating now.
;; Org mode(require 'org)(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))(define-key global-map "\C-cl" 'org-store-link)(define-key global-map "\C-ca" 'org-agenda)(setq org-log-done t)(setq org-todo-keywords '("TODO" "WAITING" "DONE")) (setq org-agenda-include-diary t) (setq org-agenda-include-all-todo t) (setq org-agenda-files (file-expand-wildcards "J:/MyDocuments/GTD/org/*.org"))
4. Creating a backtrace. The command C-u M-x org-reload RET does not exist on my Emacs.
5. I turned on the option to enter the debugger.6. I visited a new file called sample.org. I didn't put it in the directory specified for agenda files in my init file (listed above). I wanted to add it interactively for this demo.
7. I saved that file.8. I selected from the menu: Org --> File List for Agenda --> Add/Move Current File to Front of List9. Here is the output from the *Backtrace* buffer.
Debugger entered--Lisp error: (scan-error "Unbalanced parentheses" 17301 29246) scan-sexps(83 29245) forward-sexp(29245) custom-save-delete(custom-set-variables) custom-save-variables() custom-save-all() customize-save-variable(org-agenda-files ("j:/MyDocuments/GTD/sample.org" "j:/MyDocuments/GTD/org/GTDSteelWig.org" "j:/MyDocuments/GTD/org/SteelWigSomeday.org")) org-store-new-agenda-file-list(("j:/MyDocuments/GTD/sample.org" "j:/MyDocuments/GTD/org/GTDSteelWig.org" "j:/MyDocuments/GTD/org/SteelWigSomeday.org")) org-agenda-file-to-front(nil) call-interactively(org-agenda-file-to-front nil nil)
I don't know Lisp, but I can count parentheses (or use Emacs to tell me what they match up with by backspacing over a right one and filling it back in again.) I don't see unbalanced parentheses in that output. I did try stepping through the code in the debugger once as an experiment. It went on and on and I finally held down the step key and let it do what seemed like hundreds of steps. It never errored out. I finally used whatever command it is that steps out. Guess what? That time, it added the file to the agenda file list.
I'm trying to be complete about what I did, although I'm just experimenting. Did any of that clarify anything?
Thanks for your help.
Jai
> From: bastienguerry@googlemail.com
> To: jaijeffcom@hotmail.com
> CC: emacs-orgmode@gnu.org
> Subject: Re: [Orgmode] org-agenda-file-to-front (unbalanced parentheses))))
> Date: Fri, 4 Sep 2009 16:16:28 +0800
>
> Hi Jai,
>
> I cannot reproduce this error. Please send a more detailed backtrace by
> following the instructions here:
>
> http://orgmode.org/manual/Feedback.html
>
> Thanks,
>
> Jai Jeffryes <jaijeffcom@hotmail.com> writes:
>
> > I get a scan error when I try to add my current ORG file to the list of agenda
> > files.
> >
> > I'm using Emacs 23.1.1 on Windows, so it has the Org mode built in.
> >
> > I create a new .ORG file, add some text, and save it.
> >
> > Then I type C-c [
> >
> > and I get this error.
> >
> > Scan error: "Unbalanced parentheses", 17495, 29440
> >
> > Any ideas?
> >
> > The same thing happens if I use the menu:
> >
> > Org --> File list for agenda --> Add/Move current file to front of list
> >
> > Or the full command: org-agenda-file-to-front
> >
> > I tried running the debugger, but that part of Emacs I've never learned. I
> > haven't done my own Lisp programming. I'd provide some more info if someone
> > wanted to prompt me on the next thing to try!
> >
> > Jai Jeffryes
> > NYC
> >
> > ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
> > Windows Live: Keep your friends up to date with what you do online. Find out
> > more.
> >
> > _______________________________________________
> > 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
>
> --
> Bastien
_________________________________________________________________
Windows Live: Make it easier for your friends to see what you’re up to on Facebook.
http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_facebook:082009
[-- Attachment #1.2: Type: text/html, Size: 6538 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: org-agenda-file-to-front (unbalanced parentheses))))
2009-09-04 23:59 ` Jai Jeffryes
@ 2009-09-05 7:38 ` Bastien
0 siblings, 0 replies; 4+ messages in thread
From: Bastien @ 2009-09-05 7:38 UTC (permalink / raw)
To: Jai Jeffryes; +Cc: emacs-orgmode
Hi Jai,
Jai Jeffryes <jaijeffcom@hotmail.com> writes:
> Thanks for looking at my message. So, here's what I came up with by following
> the instructions on the Feedback page you suggested.
Thanks!
> 1. Emacs version: GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-29 on
> SOFT-MJASON
> 2. Org version (it came with my Emacs install, I didn't do a separate
> installation of the mode):
> Org-mode version 6.21b
> 3. (Even though I'm writing to this email list, I was curious to try the
> command M-x org-submit-bug-report. That command is not defined in my Emacs.)
> 4. Here are the org-related commands in my init file. I found out how to set up
> my agenda files there instead of relying on the command that I'm demonstrating
> now.
>
> ;; Org mode
> (require 'org)
> (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
> (define-key global-map "\C-cl" 'org-store-link)
> (define-key global-map "\C-ca" 'org-agenda)
> (setq org-log-done t)
> (setq org-todo-keywords '("TODO" "WAITING" "DONE"))
> (setq org-agenda-include-diary t)
> (setq org-agenda-include-all-todo t)
> (setq org-agenda-files (file-expand-wildcards "J:/MyDocuments/GTD/org/*.org"))
Try to comment out the line above and use the custom interface to set
your agenda files. See if the error persists.
> 4. Creating a backtrace. The command C-u M-x org-reload RET does not exist on
> my Emacs.
> 5. I turned on the option to enter the debugger.
> 6. I visited a new file called sample.org. I didn't put it in the directory
> specified for agenda files in my init file (listed above). I wanted to add it
> interactively for this demo.
> 7. I saved that file.
> 8. I selected from the menu: Org --> File List for Agenda --> Add/Move Current
> File to Front of List
> 9. Here is the output from the *Backtrace* buffer.
>
> Debugger entered--Lisp error: (scan-error "Unbalanced parentheses" 17301 29246)
> scan-sexps(83 29245)
> forward-sexp(29245)
> custom-save-delete(custom-set-variables)
> custom-save-variables()
> custom-save-all()
> customize-save-variable(org-agenda-files ("j:/MyDocuments/GTD/sample.org" "j:
> /MyDocuments/GTD/org/GTDSteelWig.org" "j:/MyDocuments/GTD/org/
> SteelWigSomeday.org"))
> org-store-new-agenda-file-list(("j:/MyDocuments/GTD/sample.org" "j:/
> MyDocuments/GTD/org/GTDSteelWig.org" "j:/MyDocuments/GTD/org/
> SteelWigSomeday.org"))
> org-agenda-file-to-front(nil)
> call-interactively(org-agenda-file-to-front nil nil)
>
> I don't know Lisp, but I can count parentheses (or use Emacs to tell me what
> they match up with by backspacing over a right one and filling it back in
> again.) I don't see unbalanced parentheses in that output.
Maybe the unbalanced parentheses are in the custom-file, not in the
output. Is your custom-file eval'ing correctly?
Dynamically adding or removing files from the org-agenda-files variable
stores this variable in the custom file, even if you are setting this
variable outside the custom file. So, if you use C-c [ frequently, you
shouldn't set org-agenda-files outside of the custom-file.
Maybe the documentation should warn the user about this problem. I
don't see any simple solution...
--
Bastien
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-09-05 13:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-01 23:11 org-agenda-file-to-front (unbalanced parentheses)))) Jai Jeffryes
2009-09-04 8:16 ` Bastien
2009-09-04 23:59 ` Jai Jeffryes
2009-09-05 7:38 ` Bastien
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).