From mboxrd@z Thu Jan 1 00:00:00 1970 From: Diep Pham Van Subject: Re: Error in post-command-hook: (void-variable org-ans1) Date: Thu, 15 Sep 2011 17:34:36 +0700 Message-ID: <20110915173436.1e2fcf5f@favadi.com> References: <20110915014706.308bf957@favadi.com> <87k49a9l5d.fsf@rat.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R49HM-0000Ey-25 for emacs-orgmode@gnu.org; Thu, 15 Sep 2011 06:34:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R49HK-0005g2-Lz for emacs-orgmode@gnu.org; Thu, 15 Sep 2011 06:34:48 -0400 Received: from mail-pz0-f43.google.com ([209.85.210.43]:33243) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R49HK-0005fu-D1 for emacs-orgmode@gnu.org; Thu, 15 Sep 2011 06:34:46 -0400 Received: by pzd13 with SMTP id 13so1108394pzd.30 for ; Thu, 15 Sep 2011 03:34:45 -0700 (PDT) In-Reply-To: <87k49a9l5d.fsf@rat.lan> 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: Olaf Dietsche Cc: emacs-orgmode@gnu.org On Thu, 15 Sep 2011 12:04:30 +0200 Olaf Dietsche wrote: > Diep Pham Van writes: >=20 > > I get this error: "Error in post-command-hook: (void-variable > > org-ans1)" every time I want to use schedule or deadline. After > > that, the error message appear with any command. After some > > minutes, this error message disappear and I can use anny command as > > expected. > > > > This problem happens with both the version ship with emacs 23.3 or > > latest version (7.7). > > > > This is my .emacs config. > > > > http://pastebin.com/sQaTYJCR > > > > C-h v post-command-hook before the problem appear: > > > > post-command-hook is a variable defined in `C source code'. > > Its value is > > (linum-update-current ac-handle-post-command > > autopair-post-command-handler t) > > > > Local in buffer .emacs; global value is=20 > > (global-font-lock-mode-check-buffers global-linum-mode-check-buffers > > global-auto-complete-mode-check-buffers > > autopair-global-mode-check-buffers yas/global-mode-check-buffers > > global-hl-line-highlight) >=20 > Have you tried disabling or reducing these modes? One of them or a > combination is responsible for the error you get. >=20 > Regards, Olaf After disable all these mode. C-h v: post-command-hook is a variable defined in `C source code'. Its value is nil This variable is potentially risky when used as a file local variable. Documentation: Normal hook run after each command is executed. If an unhandled error happens in running this hook, the hook value is set to nil, since otherwise the error might happen repeatedly and make Emacs nonfunctional. And the problem is still appear. --=20 PH=E1=BA=A0M V=C4=83n =C4=90i=E1=BB=87p h : http://favadi.com e : imeo@favadi.com e2 : favadi.ak44@gmail.com m : +84 339 841 p : Information system and communication technology u : Hanoi University of Science and Technology (PFIEV - Programme de Formation d=E2=80=99Ing=C3=A9nieurs d=E2=80=99Excellence au Vietnam) k : h =3D home, e =3D email, e2 =3D second_email, m =3D mobile, p =3D professional, u =3D university, k =3D key