poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Fix the location of nodelist to match recent changes.


From: John Darrington
Subject: [PATCH] Fix the location of nodelist to match recent changes.
Date: Sun, 12 Apr 2020 14:53:38 +0200

Commit 98bedb67bf5dfe443d608312b272dc006f3a2c4e changed the value of 
POKE_DATADIR
Unfortunately it did not update the users to match.  Consequently tab completion
for the .doc command stopped working.  This change fixes that.
---
 doc/Makefile.am              | 5 +++--
 testsuite/poke.repl/repl.exp | 5 +++++
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/doc/Makefile.am b/doc/Makefile.am
index 33cfc714..4d0f1f64 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -30,13 +30,14 @@ pvm-insns.texi: $(top_srcdir)/lib/pvm.jitter 
$(srcdir)/gen-pvm-insns.sh
 # work around some limitations of readline.
 # Look for the macro SPACE_SUBSTITUTE in pk-repl.c to see how this
 # is used.
-$(top_srcdir)/src/nodelist: $(srcdir)/poke.info
+$(top_srcdir)/lib/nodelist: $(srcdir)/poke.texi
        chmod u+w ${dir $@}
        $(SED) -n -e 's/^\* \([^:]*\)::.*/\1/p' $< | $(SED) -e 's| |/|g' > $@
+       test -s $@ || $(RM) $@
 
 INFO_DEPS = $(srcdir)/poke.info
 
-pkgdata_DATA = $(top_srcdir)/src/nodelist
+pkgdata_DATA = $(top_srcdir)/lib/nodelist
 
 clean-local:
        rm -f pvm-insns.texi
diff --git a/testsuite/poke.repl/repl.exp b/testsuite/poke.repl/repl.exp
index 22a29080..1e28f265 100644
--- a/testsuite/poke.repl/repl.exp
+++ b/testsuite/poke.repl/repl.exp
@@ -45,3 +45,8 @@ set test "tab-completion-subcommand-1"
 poke_start
 poke_send ".set oba\t" ".set obase"
 poke_exit
+
+set test "tab-completion-subcommand-2"
+poke_start
+poke_send ".doc Struct Co\t\t" "\r\nStruct Comparison    Struct Constructors"
+poke_exit
-- 
2.20.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]