From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Problems with search Date: Thu, 07 Jul 2011 17:16:40 -0400 Message-ID: <6228.1310073400@alphaville.americas.hpqcorp.net> References: <87liw9ajv9.fsf@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QevwD-0005HZ-8s for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 17:16:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QevwB-0003jq-SL for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 17:16:45 -0400 Received: from g6t0184.atlanta.hp.com ([15.193.32.61]:36248) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QevwB-0003jg-8O for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 17:16:43 -0400 In-Reply-To: Message from Henri-Paul Indiogine of "Thu, 07 Jul 2011 13:58:18 PDT." <87liw9ajv9.fsf@gmail.com> 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: hindiogine@gmail.com Cc: nicholas.dokos@hp.com, emacs-org Henri-Paul Indiogine wrote: > Greetings! > > I am having a problem with the GNU Emacs search function that makes it > practically unusable. I think that it is related to org-mode because of > the following lines in my *Messages* buffer: > > Error in post-command-hook: (void-variable org-ans1) > nonincremental-search-forward: Search failed: "Apple " > Error in post-command-hook: (void-variable org-ans1) > nonincremental-search-forward: Search failed: "Payne " > > > Basically, I start search with C-s and then when I enter a string if it > includes 'n' or 'p' it interprets them as commands instead of characters > of the string. > > E.g. "Apple" is accepts "A" then when I press "p" it starts a backward > search. > > when I enter "n" it goes to the next match of the letters before 'n'. > > I run the latest git version compiled daily. > A few things to check and try: o What does C-h v post-command-hook RET say? o emacs -q and try incremental search. I expect no problem. o comment out the loading of org from your emacs and restart emacs, then try an incremental search. Still no problem? o uncomment the previous and restart emacs: does the problem reappear? If the problem does not reappear in the last case, then it is likely that something happened in your current emacs instance that mangled the value of post-command-hook, but it will be very difficult to find out what: it depends on what you did at some (possibly distant) point in the past. Possibly something was aborted and the cleanup action was never carried out. I don't have any great suggestiong to offer in this case: just restart emacs and keep a watchful eye. In each case, check the value of post-command-hook. And post the results. Nick