emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: hindiogine@gmail.com
Cc: nicholas.dokos@hp.com, emacs-org <emacs-orgmode@gnu.org>
Subject: Re: Problems with search
Date: Thu, 07 Jul 2011 17:16:40 -0400	[thread overview]
Message-ID: <6228.1310073400@alphaville.americas.hpqcorp.net> (raw)
In-Reply-To: Message from Henri-Paul Indiogine <hindiogine@gmail.com> of "Thu, 07 Jul 2011 13:58:18 PDT." <87liw9ajv9.fsf@gmail.com>

Henri-Paul Indiogine <hindiogine@gmail.com> 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

  reply	other threads:[~2011-07-07 21:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-07 20:58 Problems with search Henri-Paul Indiogine
2011-07-07 21:16 ` Nick Dokos [this message]
2011-07-07 22:16   ` Henri-Paul Indiogine
2011-07-07 23:18   ` Henri-Paul Indiogine
2011-07-08  2:25     ` Nick Dokos
2011-07-08  3:14       ` Henri-Paul Indiogine
2011-07-08  3:45         ` Nick Dokos
     [not found] <CAPeR955y2+HF8wip7RB0g+pKUj6T0VqXPRGszTPv0NP4ExtDTg@mail.gmail.com>
2011-08-02 18:27 ` Bianca Lutz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6228.1310073400@alphaville.americas.hpqcorp.net \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=hindiogine@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).