From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#12078: 24.1; Improve the I-search prompt Date: Sun, 29 Jul 2012 03:35:31 +0300 Organization: JURTA Message-ID: <87txwr2ylo.fsf@mail.jurta.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1343522344 30010 80.91.229.3 (29 Jul 2012 00:39:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 29 Jul 2012 00:39:04 +0000 (UTC) Cc: 12078@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 29 02:39:04 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SvHXC-0000qT-0A for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Jul 2012 02:39:02 +0200 Original-Received: from localhost ([::1]:45853 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvHXB-0000Qq-5G for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Jul 2012 20:39:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvHX9-0000PH-8h for bug-gnu-emacs@gnu.org; Sat, 28 Jul 2012 20:39:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SvHX8-0001qk-5Z for bug-gnu-emacs@gnu.org; Sat, 28 Jul 2012 20:38:59 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37820) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvHX8-0001qg-2E for bug-gnu-emacs@gnu.org; Sat, 28 Jul 2012 20:38:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SvHdy-0001Qz-K2 for bug-gnu-emacs@gnu.org; Sat, 28 Jul 2012 20:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Jul 2012 00:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12078 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12078-submit@debbugs.gnu.org id=B12078.13435227535494 (code B ref 12078); Sun, 29 Jul 2012 00:46:02 +0000 Original-Received: (at 12078) by debbugs.gnu.org; 29 Jul 2012 00:45:53 +0000 Original-Received: from localhost ([127.0.0.1]:47366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SvHdp-0001QY-Bp for submit@debbugs.gnu.org; Sat, 28 Jul 2012 20:45:53 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:48527 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SvHdl-0001QQ-MK for 12078@debbugs.gnu.org; Sat, 28 Jul 2012 20:45:50 -0400 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id D8D08451CB2B; Sat, 28 Jul 2012 17:38:42 -0700 (PDT) In-Reply-To: (Dani Moncayo's message of "Sat, 28 Jul 2012 19:56:48 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:62544 Archived-At: > Failing I-search: foobar > Overwrapped I-search: foobar > Failing overwrapped I-search: foobar > Failing I-search: foobar [initial node] > > would be > > I-search: foobar [failing] > I-search: foobar [overwrapped] > I-search: foobar [failing, overwrapped] > I-search: foobar [failing, initial node] I think we should distinguish between momentary messages and search states. For instance, "failing" is a momentary message, but "overwrapped" is a search state. It would be very annoying to display persistent search states like "overwrapped" at the end of the search prompt. Meanwhile, for consistency with the isearch message "end of manual", I propose to rename its counterpart "initial node" to "end of node": === modified file 'lisp/info.el' --- lisp/info.el 2012-07-10 11:51:54 +0000 +++ lisp/info.el 2012-07-29 00:23:39 +0000 @@ -342,12 +340,12 @@ (defcustom Info-search-whitespace-regexp (defcustom Info-isearch-search t "If non-nil, isearch in Info searches through multiple nodes. Before leaving the initial Info node, where isearch was started, -it fails once with the error message [initial node], and with +it fails once with the error message [end of node], and with subsequent C-s/C-r continues through other nodes without failing with this error message in other nodes. When isearch fails for -the rest of the manual, it wraps around the whole manual and -restarts the search from the top/final node depending on -search direction. +the rest of the manual, it displays the error message [end of manual], +wraps around the whole manual and restarts the search from the top/final +node depending on search direction. Setting this option to nil restores the default isearch behavior with wrapping around the current Info node." @@ -1863,7 +1867,7 @@ (defun Info-search (regexp &optional bou (not bound) (or give-up (and found (not (and (> found opoint-min) (< found opoint-max)))))) - (signal 'search-failed (list regexp "initial node"))) + (signal 'search-failed (list regexp "end of node"))) ;; If no subfiles, give error now. (if give-up