[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[5803] M-x clear-search
From: |
Gavin D. Smith |
Subject: |
[5803] M-x clear-search |
Date: |
Sun, 07 Sep 2014 16:41:36 +0000 |
Revision: 5803
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5803
Author: gavin
Date: 2014-09-07 16:41:34 +0000 (Sun, 07 Sep 2014)
Log Message:
-----------
M-x clear-search
Modified Paths:
--------------
trunk/ChangeLog
trunk/doc/info-stnd.texi
trunk/info/session.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2014-09-07 16:02:50 UTC (rev 5802)
+++ trunk/ChangeLog 2014-09-07 16:41:34 UTC (rev 5803)
@@ -1,5 +1,10 @@
2014-09-07 Gavin Smith <address@hidden>
+ * info/session.c (info_clear_search): New user command.
+ * doc/info-stnd.texi (Searching Commands): Document it.
+
+2014-09-07 Gavin Smith <address@hidden>
+
* info/session.c (move_to_goal_column): Merged into callers.
(point_next_line, point_prev_line): Call window_compute_line_map for
new line.
Modified: trunk/doc/info-stnd.texi
===================================================================
--- trunk/doc/info-stnd.texi 2014-09-07 16:02:50 UTC (rev 5802)
+++ trunk/doc/info-stnd.texi 2014-09-07 16:41:34 UTC (rev 5803)
@@ -1268,8 +1268,11 @@
commands under @samp{--vi-keys}; @pxref{--vi-keys}), is a faster way of
searching for the same string.
address@hidden highlight-searches
address@hidden clear-search
If the @code{highlight-searches} variable is set, matches from search
commands will be highlighted. @xref{Variables,, @code{highlight-searches}}.
+Use the @kbd{M-x clear-search} command to clear any search highlights.
@dfn{Incremental searching} is similar to basic searching, but the
string is looked up while you are typing it, instead of waiting until
Modified: trunk/info/session.c
===================================================================
--- trunk/info/session.c 2014-09-07 16:02:50 UTC (rev 5802)
+++ trunk/info/session.c 2014-09-07 16:41:34 UTC (rev 5803)
@@ -4029,6 +4029,16 @@
window_adjust_pagetop (window);
}
+/* If highlight-searches=On, this will clear any highlighted regions on the
+ screen. */
+DECLARE_INFO_COMMAND (info_clear_search,
+ _("Clear displayed search matches"))
+{
+ free (window->matches);
+ window->matches = 0;
+ window->flags |= W_UpdateWindow;
+}
+
/* **************************************************************** */
/* */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [5803] M-x clear-search,
Gavin D. Smith <=