From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: [bug] changing TODO status with org-after-todo-state-change-hook defined fails Date: Fri, 1 Mar 2013 14:44:46 +0000 Message-ID: <87r4jz2n8h.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBRCw-0004Dh-8G for emacs-orgmode@gnu.org; Fri, 01 Mar 2013 09:45:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBRCu-0004UU-Vb for emacs-orgmode@gnu.org; Fri, 01 Mar 2013 09:45:10 -0500 Received: from db3ehsobe005.messaging.microsoft.com ([213.199.154.143]:6357 helo=db3outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBRCu-0004SQ-Mh for emacs-orgmode@gnu.org; Fri, 01 Mar 2013 09:45:08 -0500 Received: from mail111-db3 (localhost [127.0.0.1]) by mail111-db3-R.bigfish.com (Postfix) with ESMTP id 03FEA40123 for ; Fri, 1 Mar 2013 14:45:06 +0000 (UTC) Received: from DB3EHSMHS014.bigfish.com (unknown [10.3.81.254]) by mail111-db3.bigfish.com (Postfix) with ESMTP id 930B8180B2D for ; Fri, 1 Mar 2013 14:45:03 +0000 (UTC) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hello, All of a sudden, changing the TODO status (=org-todo=) from anything to WAIT is failing with: : Error in post-command-hook (org-add-log-note): (error "Can't expand minibuffer to full frame") and ends up asking for a date and time and inserts new SCHEDULED information. My TODO sequence is: : org-todo-keywords '((sequence "TODO(t)" "INPR(i@/!)" "WAIT(w@/!)" "|" "DONE(d@/!)" "XXXX(x@)" "POST(p!)")) I have the following hook defined: #+begin_src emacs-lisp (add-hook 'org-after-todo-state-change-hook '(lambda () ;; remove the scheduled date/time if present as the activity is no longer mine ;; based on a suggestion by Manish on the org-mode mailing list (if (string= org-state "WAIT") (org-schedule t)))) #+end_src This used to work in that it would remove any SCHEDULED entry in the item. Now not only does it not remove the SCHEDULED information, it prompts for a date+time after the error message above. No log note is requested. It also seems to delete some text after the logbook drawer in some cases. I simply do not understand what is happening! With emacs -Q and only the two settings above (i.e. not the rest of my org customisation), the problem arises. If I don't have the hook, there is no problem. Attached is my simple test file. The log notes indicated I was successful in changing from TODO to WAIT before I defined the hook. I then switched to TODO and tried to then switch back to WAIT. The logging of the latter failed. I note that nothing appears to have changed in org-schedule recently. Any suggestions (other than remove the hook ;-)? Thanks, eric -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org release_7.9.3f-1315-g25b5ab --=-=-= Content-Type: text/x-org Content-Disposition: attachment; filename="examplebug.org" #+TITLE: examplebug.org #+AUTHOR: Eric S Fraga #+options: toc:nil num:nil #+TODO: TODO(t) INPR(i@/!) WAIT(w@/!) | DONE(d@/!) XXXX(x@) POST(p!) * WAIT first test SCHEDULED: <2013-03-01 Fri> - State "TODO" from "WAIT" [2013-03-01 Fri 14:41] - State "WAIT" from "TODO" [2013-03-01 Fri 14:41] \\ this works as I do not have the hook defined Something I need to do. --=-=-=--