On Tue, 8 Feb 2000, Richard Stallman wrote:

> I agree completely; Info isearch should be compatible with Emacs isearch,
> to whatever extent is feasible (and this change should not be hard).

The following change should do the trick:

2000-02-08  Eli Zaretskii  <[EMAIL PROTECTED]>

        * info/session.c (incremental_search): Don't retain RET when
        exiting isearch.  Suggested by Hrvoje Niksic <[EMAIL PROTECTED]>.

--- info/session.c~1    Sat Sep 25 18:10:14 1999
+++ info/session.c      Tue Feb  8 23:51:50 2000
@@ -3971,8 +3971,9 @@ incremental_search (window, count, ignor
          /* FIXME: this seems like a kludge!  We need a more reliable
             mechanism to know when ESC is a separate key and when it is
             part of an escape sequence.  */
-          if (key != isearch_terminate_search_key ||
-             info_any_buffered_input_p ())
+          if (key != RET  /* Emacs addicts want RET to get lost */
+             && (key != isearch_terminate_search_key
+                 || info_any_buffered_input_p ()))
             info_set_pending_input (key);
 
           if (func == info_abort_key)

Reply via email to