summaryrefslogtreecommitdiff
path: root/Master/texmf/scripts
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2010-04-05 08:09:13 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2010-04-05 08:09:13 +0000
commitce0f190b4b9b6ae9eeb6ca4c1da71ac1d0215df1 (patch)
treeeecaf1d691b47200b5acbaad04377ba7c1818bec /Master/texmf/scripts
parent9fca5b4cf316df27359c58f6f46ddcc8e4a47f96 (diff)
Better "no result" message.
git-svn-id: svn://tug.org/texlive/trunk@17705 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/scripts')
-rwxr-xr-xMaster/texmf/scripts/tetex/texdoctk.pl9
1 files changed, 7 insertions, 2 deletions
diff --git a/Master/texmf/scripts/tetex/texdoctk.pl b/Master/texmf/scripts/tetex/texdoctk.pl
index 6f4673d3781..595ec4315d6 100755
--- a/Master/texmf/scripts/tetex/texdoctk.pl
+++ b/Master/texmf/scripts/tetex/texdoctk.pl
@@ -802,8 +802,13 @@ sub srchstr {
destroy $srchentry;
$srchflag=0;
if (scalar @reslist == 0) {
- &popmsg(0,"Search for $string: no matches found.\n".
- "Try `texdoc $string' in a command line.",$cmdframe);
+ &popmsg(0, ($srchtype == 0 ? 'Database' : 'File').
+ " search for $string: no matches found.\n".
+ "You may want to try a ".
+ ($srchtype == 0 ? 'File' : 'Databse') . " search.\n\n".
+ "If nothing else works, CTAN offers an online search form:\n".
+ "http://ctan.org/search.html\n",
+ $cmdframe);
} else {
&tpslct(-1, $string, @reslist);
}