--
-- ion/query/mod_query.lua -- Some common queries for Ion
--
--- Copyright (c) Tuomo Valkonen 2004-2008.
+-- Copyright (c) Tuomo Valkonen 2004-2009.
--
-- See the included file LICENSE for details.
--
wedln:complete('prev', 'normal')
end
- -- Check that no other queries are open in the mplex.
- local ok=mplex:managed_i(function(r)
- return not obj_is(r, "WEdln")
+ -- Check that no other queries or message boxes are open in the mplex.
+ local ok=mplex:managed_i(function(r)
+ return not (obj_is(r, "WEdln") or
+ obj_is(r, "WMessage"))
end)
if not ok then
return
local print_res
local function collect_print(...)
local tmp=""
+ local arg={...}
local l=#arg
for i=1,l do
tmp=tmp..tostring(arg[i])..(i==l and "\n" or "\t")