>>>>> "AR" == Alessandro Rubini <[EMAIL PROTECTED]> writes:

    >> Just repeat the M-s  (or a plain `s').  

    AR> It doesn't repeat for me (emacs 20.3). I tried it.

Did you check your emacs/lisp/info.el file and look at the
definition of the Info-search command?

    >> Hmmm.... a user interface bug?  Info-search does not
    >> present you with the default search when you repeat
    >> the search, so it looks as if it is not going to make
    >> the search.  Also, if you are like me, you may forget
    >> exactly what regexp you are searching for.  It might
    >> be a good idea to put the regexp into the prompt,
    >> where it can be edited or left as is for a repeat.
    >> What do you think?

    AR> I think the user interface of I-search is a good
    AR> one. Thus I expected to find the same interface
    AR> here.

Here is a patch that shows the previous regexp on the minibuffer.
Is this what you had in mind?

$ rcsdiff -c info.el
===================================================================
RCS file: RCS/info.el,v
retrieving revision 1.1
diff -c -r1.1 info.el
*** info.el     2000/06/18 22:57:42     1.1
--- info.el     2000/06/23 18:10:51
***************
*** 954,960 ****
  (defun Info-search (regexp)
    "Search for REGEXP, starting from point, and select node it's found in.
  Just hit RETURN to use the last REGEXP."
!   (interactive "sSearch (regexp): ")
    (if transient-mark-mode (deactivate-mark))
    (if (equal regexp "")
        (setq regexp Info-last-search)
--- 954,964 ----
  (defun Info-search (regexp)
    "Search for REGEXP, starting from point, and select node it's found in.
  Just hit RETURN to use the last REGEXP."
!   (interactive
!    (let ((default (if Info-last-search
!                     (format "(default %s) " Info-last-search)
!                   "")))
!      (list (read-string (format "Search (regexp): %s" default)))))
    (if transient-mark-mode (deactivate-mark))
    (if (equal regexp "")
        (setq regexp Info-last-search)

Reply via email to