emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-agenda-custom-commands  have a serious bug!?
@ 2011-06-09  5:47 zw963
  2011-06-09 12:15 ` Memnon Anon
  2011-06-09 14:18 ` Nick Dokos
  0 siblings, 2 replies; 7+ messages in thread
From: zw963 @ 2011-06-09  5:47 UTC (permalink / raw)
  To: emacs-orgmode

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

i have use org-agenda-custom-commands manage my thought and idea.
when open my agenda custom view, I often require modified some heading content. 
when I use org-agenda-switch-to (shortcut key "enter") open and make changes,
save and kill this buffer return to org-agenda-command window, move point to other heading, 
but it have a error tips."wrong type argument: stringp,nil"
if i try to open other heading use "enter",I open a unpredictable org buffer.
what a horrible.....

only I quit org-agenda-commands buffer, and reenter,i can work file.

Regard.

2011-06-09 



zw963 

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

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

* Re: org-agenda-custom-commands  have a serious bug!?
  2011-06-09  5:47 org-agenda-custom-commands have a serious bug!? zw963
@ 2011-06-09 12:15 ` Memnon Anon
  2011-06-09 13:48   ` Carsten Dominik
  2011-06-09 14:18 ` Nick Dokos
  1 sibling, 1 reply; 7+ messages in thread
From: Memnon Anon @ 2011-06-09 12:15 UTC (permalink / raw)
  To: emacs-orgmode

"zw963" <zw963@163.com> writes:

> i have use org-agenda-custom-commands manage my thought and idea. when
> open my agenda custom view, I often require modified some heading
> content. when I use org-agenda-switch-to (shortcut key "enter") open
> and make changes, save and kill this buffer return to
> org-agenda-command window, move point to other heading, but it have a
> error tips."wrong type argument: stringp,nil" if i try to open other
> heading use "enter",I open a unpredictable org buffer. what a
> horrible.....
>  
> only I quit org-agenda-commands buffer, and reenter,i can work file.

Ui, this sounds serious...
It would help tremendously if you could provide a minimal example 
so that others can easily reproduce your setup and the problem.

Memnon

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

* Re: org-agenda-custom-commands  have a serious bug!?
  2011-06-09 12:15 ` Memnon Anon
@ 2011-06-09 13:48   ` Carsten Dominik
  0 siblings, 0 replies; 7+ messages in thread
From: Carsten Dominik @ 2011-06-09 13:48 UTC (permalink / raw)
  To: Memnon Anon; +Cc: emacs-orgmode


On 9.6.2011, at 14:15, Memnon Anon wrote:

> "zw963" <zw963@163.com> writes:
> 
>> i have use org-agenda-custom-commands manage my thought and idea. when
>> open my agenda custom view, I often require modified some heading
>> content. when I use org-agenda-switch-to (shortcut key "enter") open
>> and make changes, save and kill this buffer return to
>> org-agenda-command window, move point to other heading, but it have a
>> error tips."wrong type argument: stringp,nil" if i try to open other
>> heading use "enter",I open a unpredictable org buffer. what a
>> horrible.....

This is to be expected.  The agenda links back to the buffers using markers.
Killing the buffers invalidates all the markers.  So: don't kill the buffer!

>> 
>> only I quit org-agenda-commands buffer, and reenter,i can work file.

A cheaper way to fix this is to rebuild the agenda buffer with "g".

- Carsten

> 
> Ui, this sounds serious...
> It would help tremendously if you could provide a minimal example 
> so that others can easily reproduce your setup and the problem.
> 
> Memnon
> 
> 

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

* Re: org-agenda-custom-commands have a serious bug!?
  2011-06-09  5:47 org-agenda-custom-commands have a serious bug!? zw963
  2011-06-09 12:15 ` Memnon Anon
@ 2011-06-09 14:18 ` Nick Dokos
  2011-06-11  5:54   ` zw963
  2011-06-11  8:48   ` Bug: org-agenda-custom-commands bugs [7.5] zw963
  1 sibling, 2 replies; 7+ messages in thread
From: Nick Dokos @ 2011-06-09 14:18 UTC (permalink / raw)
  To: zw963; +Cc: nicholas.dokos, emacs-orgmode

zw963 <zw963@163.com> wrote:

> i have use org-agenda-custom-commands manage my thought and idea.
> when open my agenda custom view, I often require modified some heading content. 
> when I use org-agenda-switch-to (shortcut key "enter") open and make changes,
> save and kill this buffer return to org-agenda-command window, move point to other heading, 
> but it have a error tips."wrong type argument: stringp,nil"
> if i try to open other heading use "enter",I open a unpredictable org buffer.
> what a horrible.....
> 
> only I quit org-agenda-commands buffer, and reenter,i can work file.
> 

I can't reproduce this with the standard agenda view on Org-mode version
7.5 (baseline.265.gcfb05)

If it requires the custom agenda view to reproduce, you have to provide that.
What version of orgmode are you using? See section 1.4, "Feedback", of the
manual on how to report a bug.

Nick

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

* Re: org-agenda-custom-commands have a serious bug!?
  2011-06-09 14:18 ` Nick Dokos
@ 2011-06-11  5:54   ` zw963
  2011-06-11  8:48   ` Bug: org-agenda-custom-commands bugs [7.5] zw963
  1 sibling, 0 replies; 7+ messages in thread
From: zw963 @ 2011-06-11  5:54 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode

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


thanks everyone~
additional to a 'g' shortcut key is work fine.

i know kill-buffer is not appropriate in this situation,
but I define shortcut key 'f2' -> kill-this-buffer.
and I have a habit use f2 to close current window buffer. 
 RET-->open heading buffer--> make change --> f2 kill-buffer,
and return the org-agenda view.

error occur in this case.

thanks.

2011-06-11 



zw963 



发件人: Nick Dokos 
发送时间: 2011-06-09  22:24:50 
收件人: zw963 
抄送: nicholas.dokos; emacs-orgmode 
主题: Re: [O] org-agenda-custom-commands have a serious bug!? 
 
zw963 <zw963@163.com> wrote:
> i have use org-agenda-custom-commands manage my thought and idea.
> when open my agenda custom view, I often require modified some heading content. 
> when I use org-agenda-switch-to (shortcut key "enter") open and make changes,
> save and kill this buffer return to org-agenda-command window, move point to other heading, 
> but it have a error tips."wrong type argument: stringp,nil"
> if i try to open other heading use "enter",I open a unpredictable org buffer.
> what a horrible.....
> 
> only I quit org-agenda-commands buffer, and reenter,i can work file.
> 
I can't reproduce this with the standard agenda view on Org-mode version
7.5 (baseline.265.gcfb05)
If it requires the custom agenda view to reproduce, you have to provide that.
What version of orgmode are you using? See section 1.4, "Feedback", of the
manual on how to report a bug.
Nick

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

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

* Bug: org-agenda-custom-commands bugs [7.5]
  2011-06-09 14:18 ` Nick Dokos
  2011-06-11  5:54   ` zw963
@ 2011-06-11  8:48   ` zw963
  2011-06-30 16:05     ` Bastien
  1 sibling, 1 reply; 7+ messages in thread
From: zw963 @ 2011-06-11  8:48 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: nicholas.dokos

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

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See
     http://orgmode.org/manual/Feedback.html#Feedback
Your bug report will be posted to the Org-mode mailing list.
------------------------------------------------------------------------
1. first open org-agenda use `F12' key, command (org-agenda)
2. open customize todo-list use `t' key 
3. move point on certain heading, press `RET',open remote org files. (org-agenda-switch-to) 
4. edit context,and save,use f2 kill this org buffer. (kill-this-buffer)
5. return previous org-agenda-view,move my point on other heading,minibuffer show a error tips
   "Wrong type argument: stringp,nil",if reenter remote org file, unpredictable happen.....
6. unless retype 'g' key,otherwise can not work.

Emacs  : GNU Emacs 23.3.1 (i386-mingw-nt5.2.3790)
 of 2011-03-10 on 3249CTO
Package: Org-mode version 7.5

current state:
==============
(setq
 org-log-done 'time
 org-file-apps '((auto-mode . emacs) ("\\.mm\\'" . system) ("\\.x?html?\\'" . system) ("\\.pdf\\'" . system))
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-todo-keyword-faces '(("TODO" :foreground "red" :weight bold) ("NEXT" :foreground "blue" :weight bold)
                          ("STARTED" :foreground "blue" :weight bold) ("DONE" :foreground "forest green" :weight bold)
                          ("WAITING" :foreground "orange" :weight bold) ("SOMEDAY" :foreground "magenta" :weight bold)
                          ("CANCELLED" :foreground "forest green" :weight bold))
 org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook)
 org-agenda-custom-commands '(("t" "TODO LIST!" tags "LEVEL=1+@TASKS|@HABIT/-DONE"
                               ((orgo-agenda-overriding-header "TODO TASKS")))
                              ("p" "Problem -> solve now!" tags-todo "-@TASKS-@HABIT/-CANCELLED-WAITING-SOMEDAY"
                               ((org-agenda-overriding-header "Waiting to be solved problem")
                                (org-agenda-todo-ignore-with-date nil) (org-agenda-todo-ignore-scheduled nil)
                                (org-agenda-todo-ignore-deadlines nil) (org-agenda-todo-ignore-timestamp nil)
                                (org-agenda-todo-list-sublevels t) (org-tags-match-list-sublevels (quote indented)))
                               )
                              ("S" "Problem -> Postponed" todo "SOMEDAY|WAITING"
                               ((org-agenda-overriding-header "Postponed problem")))
                              ("n" "Note" tags "LEVEL>1+@NOTE/-TODO-SOMEDAY"
                               ((orgo-agenda-overriding-header "Organized NOTE")))
                              ("r" "Refile files" tags "LEVEL=2+@REFILE"
                               ((org-agenda-todo-ignore-with-date nil) (org-agenda-todo-ignore-deadlines nil)
                                (org-agenda-todo-ignore-scheduled nil) (org-agenda-todo-ignore-timestamp nil)
                                (org-agenda-overriding-header "Refile files"))
                               )
                              ("l" "Live_log" tags "LEVEL=4+@LIVE_LOG" ((orgo-agenda-overriding-header "live_log")))
                              ("d" "Diary" tags "LEVEL=4+@DIARY" ((orgo-agenda-overriding-header "Diary")))
                              ("P" "Projects" tags-todo "LEVEL=1/!-DONE-CANCELLED-WAITING-SOMEDAY"
                               ((org-agenda-skip-function (quote bh/skip-non-projects))
                                (org-agenda-overriding-header "Projects"))
                               )
                              ("A" "Tasks to be Archived" tags "LEVEL=2-@REFILE/DONE|CANCELLED"
                               ((org-agenda-overriding-header "Tasks to Archive")
                                (org-agenda-skip-function (quote bh/skip-non-archivable-tasks)))
                               )
                              )
 org-agenda-files '("~/.emacs.d/org/Emacs-shortcut.org" "d:/emacs/zw963/.emacs.d/org/gtd/capture.org"
                    "d:/emacs/zw963/.emacs.d/org/gtd/diary.org" "d:/emacs/zw963/.emacs.d/org/gtd/habit.org"
                    "d:/emacs/zw963/.emacs.d/org/gtd/live-log.org" "d:/emacs/zw963/.emacs.d/org/gtd/organized.org"
                    "d:/emacs/zw963/.emacs.d/org/gtd/task.org")
 org-list-demote-modify-bullet '(("+" . "-") ("*" . "-") ("1." . "-") ("1)" . "-"))
 org-plantuml-jar-path "~/.emacs.d/plugins/java/plantuml.jar"
 org-agenda-show-inherited-tags nil
 org-babel-load-languages '((emacs-lisp . t) (dot . t) (ditaa . t) (R . t) (python . t) (ruby . t) (gnuplot . t)
                            (clojure . t) (sh . t) (ledger . t) (org . t) (plantuml . t) (latex . t))
 org-completion-use-ido t
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-capture-templates '(("t" "Task->to do" entry (file "~/.emacs.d/org/gtd/task.org") "* TODO %?\nAdded: %U")
                         ("p" "Problem->to solve" entry (file+headline "~/.emacs.d/org/gtd/capture.org" "Problem")
                          "* TODO %?\n")
                         ("n" "Notes->to record" entry (file+headline "~/.emacs.d/org/gtd/capture.org" "Notes") "* %?\n")
                         ("c" "Clipboard->save" entry (file+headline "~/.emacs.d/org/gtd/capture.org" "Clipboard")
                          "* %^{Desription}\n%c" :immediate-finish t)
                         ("l" "live log" entry (file+datetree "~/.emacs.d/org/gtd/live-log.org")
                          "** %U - %^{What are you doing?}")
                         ("d" "Diary" entry (file+datetree "~/.emacs.d/org/gtd/diary.org") "* %? %U\n")
                         ("h" "habit" entry (file "~/.emacs.d/org/gtd/habit.org")
                          "* TODO %?\nSCHEDULED: %t\n:PROPERTIES:\n:STYLE: habit\n:END:")
                         )
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-babel-tangle-lang-exts '(("latex" . "tex") ("clojure" . "clj") ("ruby" . "rb") ("python" . "py")
                              ("emacs-lisp" . "el"))
 org-todo-state-tags-triggers '(("CANCELLED" ("CANCELLED" . t)) ("WAITING" ("WAITING" . t)) ("SOMEDAY" ("WAITING" . t))
                                (done ("WAITING")) ("TODO" ("WAITING") ("CANCELLED")) ("NEXT" ("WAITING"))
                                ("STARTED" ("WAITING")) ("DONE" ("WAITING") ("CANCELLED")))
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-after-todo-statistics-hook '(org-summary-todo)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-todo-keywords '((sequence "TODO(t)" "WAITING(w@/!)" "SOMEDAY(s!)" "|" "DONE(d!/!)" "CANCELLED(c@/!)"))
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-directory "~/.emacs.d/org/"
 org-export-docbook-xslt-proc-command "xsltproc --output %s /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl %s"
 org-export-html-inline-images t
 org-babel-pre-tangle-hook '(save-buffer)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines
                  org-optimize-window-after-visibility-change)
 org-publish-project-alist '(("org-mode-doc-org" :base-directory "~/.emacs.d/org/" :publishing-directory
                              "~/.emacs.d/org/web" :section-numbers nil :table-of-contents nil :base-extension "org"
                              :exclude "org-study-note.org" :publishing-function (org-publish-org-to-html)
                              :style-include-default nil :style
                              "<link rel=\"stylesheet\" href=\"./org.css\" type=\"text/css\" />" :author-info t
                              :creator-info t)
                             ("org-mode-doc-extra" :base-directory "~/.emacs.d/org/" :publishing-directory
                              "~/.emacs.d/org/web" :base-extension "css\\|pdf\\|png\\|jpg\\|gif" :publishing-function
                              org-publish-attachment :author t)
                             ("org-mode-doc" :components ("org-mode-doc-org" "org-mode-doc-extra")))
 org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5]
                 #[nil "\300\301\302\303\304$\207"
                   [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5]
                 org-babel-result-hide-spec org-babel-hide-all-hashes
                 (lambda nil (define-key org-mode-map [(control return)] (quote org-meta-return))
                  (define-key org-mode-map [(control meta return)] (quote org-insert-heading-respect-content))
                  (define-key org-mode-map [(control c) (t)] (quote org-todo))
                  (define-key org-mode-map [(meta \;)] (quote org-set-tags-command))
                  (define-key org-mode-map [(control c) (g)] (quote org-goto))
                  (define-key org-mode-map [(meta \1)] (quote org-beginning-of-line))
                  (define-key org-mode-map [(meta \3)] (quote org-end-of-line))
                  (define-key org-mode-map [(tab)] (quote yas/expand))
                  (define-key org-mode-map [(control c) (j)] (quote org-ido-switchb))
                  (define-key org-mode-map [(meta c) (n)] (quote bh/org-todo))
                  (define-key org-mode-map [(meta c) (N)] (quote bh/widen)))
                 )
 org-export-htmlize-output-type 'css
 org-refile-targets '(("~/.emacs.d/org/gtd/organized.org" :maxlevel . 2) (nil :maxlevel . 2))
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-refile-use-outline-path 'file
 org-agenda-mode-hook '((lambda nil (define-key org-agenda-mode-map [(meta \;)] (quote org-agenda-set-tags))))
 org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src org-babel-exp-inline-src-blocks))
 org-export-html-style-include-default nil
 org-refile-allow-creating-parent-nodes 'confirm
 org-babel-after-execute-hook '(org-display-inline-images)
 org-occur-hook '(org-first-headline-recenter)
 org-outline-path-complete-in-steps nil
 org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code)
 org-treat-S-cursor-todo-selection-as-state-change nil
 org-confirm-babel-evaluate nil
 org-export-docbook-xsl-fo-proc-command "fop %s %s"
 org-export-html-style-extra "<link rel=\"stylesheet\" href=\"./org.css\" type=\"text/css\" />"
 org-use-sub-superscripts nil
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames
                               org-beamer-place-default-actions-for-lists)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-blocks '((src org-babel-exp-src-block nil) (comment org-export-blocks-format-comment t)
                     (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil))
 )


2011-06-11 



zw963 

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

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

* Re: Bug: org-agenda-custom-commands bugs [7.5]
  2011-06-11  8:48   ` Bug: org-agenda-custom-commands bugs [7.5] zw963
@ 2011-06-30 16:05     ` Bastien
  0 siblings, 0 replies; 7+ messages in thread
From: Bastien @ 2011-06-30 16:05 UTC (permalink / raw)
  To: zw963; +Cc: nicholas.dokos, emacs-orgmode

Hi zw963 (?)

"zw963" <zw963@163.com> writes:

> 1. first open org-agenda use `F12' key, command (org-agenda)
> 2. open customize todo-list use `t' key 
> 3. move point on certain heading, press `RET',open remote org files. 
> (org-agenda-switch-to) 
> 4. edit context,and save,use f2 kill this org buffer. 
> (kill-this-buffer)
> 5. return previous org-agenda-view,move my point on other heading,minibuffer show a error tips
>    "Wrong type argument: stringp,nil",if reenter remote org file, unpredictable happen.....
> 6. unless retype 'g' key,otherwise can not work.

I see the problem, but I don't see what solution would satisfy you.
Thanks for being a bit more specific!

-- 
 Bastien

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

end of thread, other threads:[~2011-06-30 16:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-09  5:47 org-agenda-custom-commands have a serious bug!? zw963
2011-06-09 12:15 ` Memnon Anon
2011-06-09 13:48   ` Carsten Dominik
2011-06-09 14:18 ` Nick Dokos
2011-06-11  5:54   ` zw963
2011-06-11  8:48   ` Bug: org-agenda-custom-commands bugs [7.5] zw963
2011-06-30 16:05     ` 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).