From af59d52ddfb2347428e225403bcd3a55790bc63a Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 31 Dec 2016 13:58:35 +0100 Subject: [PATCH 1/6] Slightly change DOC_HIDE magic The following commits will add DOC_HIDE uses that are not at the end of the line, but the beginning. Hence, drop the requirement that it appears at the end of the line and change the ".+" at the beginning into ".*". Signed-off-by: Uli Schlachter --- tests/examples/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/examples/CMakeLists.txt b/tests/examples/CMakeLists.txt index 294e678dd..163546a97 100644 --- a/tests/examples/CMakeLists.txt +++ b/tests/examples/CMakeLists.txt @@ -57,7 +57,7 @@ function(escape_string variable content escaped_content line_prefix) set(tmp_output ${content}) foreach (LINE ${var_lines}) - if(NOT LINE MATCHES "^.+--DOC_[A-Z]+$") + if(NOT LINE MATCHES "^.*--DOC_[A-Z]+") set(tmp_output ${tmp_output}\n--${line_prefix}${LINE}) endif() endforeach() From 46c32d9df14e87add5b69660e18be4caf8b1e159 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 31 Dec 2016 13:59:38 +0100 Subject: [PATCH 2/6] tests/example: Add vim modelines This uses DOC_HIDE magic in the actual test code, except for the template.lua files which do not have it. Signed-off-by: Uli Schlachter --- tests/examples/awful/mouse/coords.lua | 2 ++ tests/examples/awful/placement/align.lua | 2 ++ tests/examples/awful/placement/bottom.lua | 2 ++ tests/examples/awful/placement/bottom_left.lua | 2 ++ tests/examples/awful/placement/bottom_right.lua | 2 ++ tests/examples/awful/placement/center_horizontal.lua | 2 ++ tests/examples/awful/placement/center_vertical.lua | 2 ++ tests/examples/awful/placement/centered.lua | 2 ++ tests/examples/awful/placement/closest_mouse.lua | 2 ++ tests/examples/awful/placement/compose.lua | 2 ++ tests/examples/awful/placement/compose2.lua | 2 ++ tests/examples/awful/placement/left.lua | 2 ++ tests/examples/awful/placement/maximize.lua | 2 ++ tests/examples/awful/placement/maximize_horizontally.lua | 2 ++ tests/examples/awful/placement/maximize_vertically.lua | 2 ++ tests/examples/awful/placement/next_to_mouse.lua | 2 ++ tests/examples/awful/placement/no_offscreen.lua | 2 ++ tests/examples/awful/placement/no_overlap.lua | 2 ++ tests/examples/awful/placement/resize_to_mouse.lua | 2 ++ tests/examples/awful/placement/right.lua | 2 ++ tests/examples/awful/placement/stretch.lua | 2 ++ tests/examples/awful/placement/stretch_down.lua | 2 ++ tests/examples/awful/placement/stretch_left.lua | 2 ++ tests/examples/awful/placement/stretch_right.lua | 2 ++ tests/examples/awful/placement/stretch_up.lua | 2 ++ tests/examples/awful/placement/top.lua | 2 ++ tests/examples/awful/placement/top_left.lua | 2 ++ tests/examples/awful/placement/top_right.lua | 2 ++ tests/examples/awful/placement/under_mouse.lua | 2 ++ tests/examples/awful/template.lua | 2 ++ tests/examples/gears/shape/arc.lua | 2 ++ tests/examples/gears/shape/arrow.lua | 2 ++ tests/examples/gears/shape/circle.lua | 2 ++ tests/examples/gears/shape/cross.lua | 2 ++ tests/examples/gears/shape/hexagon.lua | 2 ++ tests/examples/gears/shape/infobubble.lua | 2 ++ tests/examples/gears/shape/isosceles_triangle.lua | 2 ++ tests/examples/gears/shape/losange.lua | 2 ++ tests/examples/gears/shape/octogon.lua | 2 ++ tests/examples/gears/shape/parallelogram.lua | 2 ++ tests/examples/gears/shape/partially_rounded_rect.lua | 2 ++ tests/examples/gears/shape/pie.lua | 2 ++ tests/examples/gears/shape/powerline.lua | 2 ++ tests/examples/gears/shape/radial_progress.lua | 2 ++ tests/examples/gears/shape/rectangle.lua | 2 ++ tests/examples/gears/shape/rectangular_tag.lua | 2 ++ tests/examples/gears/shape/rounded_bar.lua | 2 ++ tests/examples/gears/shape/rounded_rect.lua | 2 ++ tests/examples/shims/button.lua | 2 ++ tests/examples/shims/drawin.lua | 1 - tests/examples/shims/screen.lua | 1 - tests/examples/shims/tag.lua | 1 - tests/examples/text/gears/object/properties.lua | 2 ++ tests/examples/text/gears/object/signal.lua | 2 ++ tests/examples/text/template.lua | 2 ++ tests/examples/wibox/container/arcchart/bg.lua | 2 ++ tests/examples/wibox/container/arcchart/border_width.lua | 2 ++ tests/examples/wibox/container/arcchart/paddings.lua | 2 ++ tests/examples/wibox/container/arcchart/rounded_edge.lua | 2 ++ tests/examples/wibox/container/arcchart/start_angle.lua | 2 ++ tests/examples/wibox/container/arcchart/thickness.lua | 2 ++ tests/examples/wibox/container/arcchart/value.lua | 2 ++ tests/examples/wibox/container/background/bg.lua | 2 ++ tests/examples/wibox/container/background/clip.lua | 2 ++ tests/examples/wibox/container/background/fg.lua | 2 ++ tests/examples/wibox/container/background/shape.lua | 2 ++ tests/examples/wibox/container/defaults/arcchart.lua | 2 ++ tests/examples/wibox/container/defaults/background.lua | 2 ++ tests/examples/wibox/container/defaults/constraint.lua | 2 ++ tests/examples/wibox/container/defaults/margin.lua | 2 ++ tests/examples/wibox/container/defaults/mirror.lua | 2 ++ tests/examples/wibox/container/defaults/radialprogressbar.lua | 2 ++ tests/examples/wibox/container/defaults/rotate.lua | 2 ++ tests/examples/wibox/container/defaults/template.lua | 1 + .../examples/wibox/container/radialprogressbar/border_color.lua | 2 ++ .../examples/wibox/container/radialprogressbar/border_width.lua | 2 ++ tests/examples/wibox/container/radialprogressbar/color.lua | 2 ++ tests/examples/wibox/container/radialprogressbar/padding.lua | 2 ++ tests/examples/wibox/container/radialprogressbar/value.lua | 2 ++ tests/examples/wibox/container/rotate/angle.lua | 2 ++ tests/examples/wibox/layout/defaults/align.lua | 2 ++ tests/examples/wibox/layout/defaults/fixed.lua | 2 ++ tests/examples/wibox/layout/defaults/flex.lua | 2 ++ tests/examples/wibox/layout/defaults/ratio.lua | 2 ++ tests/examples/wibox/layout/defaults/stack.lua | 2 ++ tests/examples/wibox/layout/template.lua | 2 ++ tests/examples/wibox/logo/logo.lua | 2 ++ tests/examples/wibox/logo/logo_and_name.lua | 2 ++ tests/examples/wibox/template.lua | 1 + tests/examples/wibox/widget/checkbox/bg.lua | 2 ++ tests/examples/wibox/widget/checkbox/check_shape.lua | 2 ++ tests/examples/wibox/widget/checkbox/custom.lua | 2 ++ tests/examples/wibox/widget/checkbox/shape.lua | 2 ++ tests/examples/wibox/widget/defaults/checkbox.lua | 2 ++ tests/examples/wibox/widget/defaults/graph.lua | 2 ++ tests/examples/wibox/widget/defaults/imagebox.lua | 2 ++ tests/examples/wibox/widget/defaults/piechart.lua | 2 ++ tests/examples/wibox/widget/defaults/progressbar.lua | 2 ++ tests/examples/wibox/widget/defaults/slider.lua | 2 ++ tests/examples/wibox/widget/defaults/textbox.lua | 2 ++ tests/examples/wibox/widget/graph/step.lua | 2 ++ tests/examples/wibox/widget/piechart/border_color.lua | 2 ++ tests/examples/wibox/widget/piechart/border_width.lua | 2 ++ tests/examples/wibox/widget/piechart/label.lua | 2 ++ tests/examples/wibox/widget/progressbar/bar_shape.lua | 2 ++ tests/examples/wibox/widget/progressbar/clip.lua | 2 ++ tests/examples/wibox/widget/progressbar/shape.lua | 2 ++ tests/examples/wibox/widget/progressbar/text.lua | 2 ++ tests/examples/wibox/widget/progressbar/vertical.lua | 2 ++ tests/examples/wibox/widget/slider/bar_border.lua | 2 ++ tests/examples/wibox/widget/slider/bar_color.lua | 2 ++ tests/examples/wibox/widget/slider/bar_height.lua | 2 ++ tests/examples/wibox/widget/slider/bar_margins.lua | 2 ++ tests/examples/wibox/widget/slider/bar_shape.lua | 2 ++ tests/examples/wibox/widget/slider/handle_border.lua | 2 ++ tests/examples/wibox/widget/slider/handle_color.lua | 2 ++ tests/examples/wibox/widget/slider/handle_margins.lua | 2 ++ tests/examples/wibox/widget/slider/handle_shape.lua | 2 ++ tests/examples/wibox/widget/slider/handle_width.lua | 2 ++ tests/examples/wibox/widget/slider/value.lua | 2 ++ 120 files changed, 232 insertions(+), 3 deletions(-) diff --git a/tests/examples/awful/mouse/coords.lua b/tests/examples/awful/mouse/coords.lua index c6cf46fe2..3a42faa32 100644 --- a/tests/examples/awful/mouse/coords.lua +++ b/tests/examples/awful/mouse/coords.lua @@ -11,3 +11,5 @@ mouse.coords { } mouse.push_history() --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/align.lua b/tests/examples/awful/placement/align.lua index 24570cee8..6aa158a07 100644 --- a/tests/examples/awful/placement/align.lua +++ b/tests/examples/awful/placement/align.lua @@ -23,3 +23,5 @@ c = client.gen_fake {x = screen[3].geometry.x+10, y = screen[3].geometry.y+10, w placement.align(c, {position = "center_horizontal", honor_workarea=true}) return {hide_lines=true} + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/bottom.lua b/tests/examples/awful/placement/bottom.lua index cc56c10a8..b997028cd 100644 --- a/tests/examples/awful/placement/bottom.lua +++ b/tests/examples/awful/placement/bottom.lua @@ -14,3 +14,5 @@ awful.placement.bottom(client.focus) assert(c.x == screen[1].geometry.width/2-40/2-c.border_width--DOC_HIDE and c.y==screen[1].geometry.height-30-2*c.border_width--DOC_HIDE and c.width==40 and c.height==30)--DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/bottom_left.lua b/tests/examples/awful/placement/bottom_left.lua index a06abe28b..7ca40b3b1 100644 --- a/tests/examples/awful/placement/bottom_left.lua +++ b/tests/examples/awful/placement/bottom_left.lua @@ -17,3 +17,5 @@ assert( --DOC_HIDE and c.width == 40--DOC_HIDE and c.height == 30--DOC_HIDE ) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/bottom_right.lua b/tests/examples/awful/placement/bottom_right.lua index 2abb44900..1503a9292 100644 --- a/tests/examples/awful/placement/bottom_right.lua +++ b/tests/examples/awful/placement/bottom_right.lua @@ -14,3 +14,5 @@ awful.placement.bottom_right(client.focus) assert(c.x == screen[1].geometry.width-40-2*c.border_width) --DOC_HIDE assert(c.y==screen[1].geometry.height-30-2*c.border_width) --DOC_HIDE assert(c.width==40 and c.height==30)--DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/center_horizontal.lua b/tests/examples/awful/placement/center_horizontal.lua index 931b947c1..5ee87c67e 100644 --- a/tests/examples/awful/placement/center_horizontal.lua +++ b/tests/examples/awful/placement/center_horizontal.lua @@ -13,3 +13,5 @@ awful.placement.center_horizontal(client.focus) assert(c.x == screen[1].geometry.width/2-40/2-c.border_width)--DOC_HIDE assert(c.y==35)--DOC_HIDE assert(c.width==40 and c.height==30)--DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/center_vertical.lua b/tests/examples/awful/placement/center_vertical.lua index cf3fd646d..dea446ad0 100644 --- a/tests/examples/awful/placement/center_vertical.lua +++ b/tests/examples/awful/placement/center_vertical.lua @@ -9,3 +9,5 @@ local awful = {placement = require("awful.placement")} --DOC_HIDE --[[local c = ]]client.gen_fake {x = 45, y = 35, width=40, height=30} --DOC_HIDE awful.placement.center_vertical(client.focus) + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/centered.lua b/tests/examples/awful/placement/centered.lua index d6b1e3aec..796494db8 100644 --- a/tests/examples/awful/placement/centered.lua +++ b/tests/examples/awful/placement/centered.lua @@ -14,3 +14,5 @@ awful.placement.centered(client.focus) assert(c.x == screen[1].geometry.width/2-40/2-c.border_width) --DOC_HIDE assert(c.y==screen[1].geometry.height/2-30/2-c.border_width) --DOC_HIDE assert(c.width==40 and c.height==30)--DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/closest_mouse.lua b/tests/examples/awful/placement/closest_mouse.lua index 9c37ac296..f62324505 100644 --- a/tests/examples/awful/placement/closest_mouse.lua +++ b/tests/examples/awful/placement/closest_mouse.lua @@ -60,3 +60,5 @@ local _, corner = awful.placement.closest_corner( {include_sides = true, bounding_rect = {x=0, y=0, width=200, height=200}} ) print("Closest corner:", corner) + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/compose.lua b/tests/examples/awful/placement/compose.lua index 1e547e8c0..2ac834272 100644 --- a/tests/examples/awful/placement/compose.lua +++ b/tests/examples/awful/placement/compose.lua @@ -9,3 +9,5 @@ f(client.focus) local sg = screen[1].geometry--DOC_HIDE assert(c.x == sg.x and c.y==sg.height/2-30/2-c.border_width--DOC_HIDE and c.width==40 and c.height==30)--DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/compose2.lua b/tests/examples/awful/placement/compose2.lua index 4a49f6634..7fb40fa17 100644 --- a/tests/examples/awful/placement/compose2.lua +++ b/tests/examples/awful/placement/compose2.lua @@ -16,3 +16,5 @@ assert(c.x == wa.x and geo.x == wa.x)--DOC_HIDE assert(c.y == wa.y) --DOC_HIDE assert(c.width == wa.width/2 - 2*c.border_width)--DOC_HIDE assert(c.height == wa.height - 2*c.border_width)--DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/left.lua b/tests/examples/awful/placement/left.lua index f16ba7b53..9d680e103 100644 --- a/tests/examples/awful/placement/left.lua +++ b/tests/examples/awful/placement/left.lua @@ -13,3 +13,5 @@ awful.placement.left(client.focus) assert(c.x == 0 and c.y==screen[1].geometry.height/2-30/2-c.border_width--DOC_HIDE and c.width==40 and c.height==30)--DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/maximize.lua b/tests/examples/awful/placement/maximize.lua index aecb52274..f7063e524 100644 --- a/tests/examples/awful/placement/maximize.lua +++ b/tests/examples/awful/placement/maximize.lua @@ -16,3 +16,5 @@ local c1 = client.gen_fake {--DOC_HIDE c1.height+2*c1.border_width == screen[1].geometry.height) --DOC_HIDE end --DOC_HIDE end --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/maximize_horizontally.lua b/tests/examples/awful/placement/maximize_horizontally.lua index dd06ab3a6..d77bb8bf1 100644 --- a/tests/examples/awful/placement/maximize_horizontally.lua +++ b/tests/examples/awful/placement/maximize_horizontally.lua @@ -13,3 +13,5 @@ placement.maximize_horizontally(c) assert(c.width + 2*c.border_width == screen[1].geometry.width) --DOC_HIDE assert(c.y == 35) --DOC_HIDE assert(c.height == 30) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/maximize_vertically.lua b/tests/examples/awful/placement/maximize_vertically.lua index 8ecdfec21..18fa914e3 100644 --- a/tests/examples/awful/placement/maximize_vertically.lua +++ b/tests/examples/awful/placement/maximize_vertically.lua @@ -13,3 +13,5 @@ placement.maximize_vertically(c) assert(c.height+2*c.border_width == screen[1].geometry.height)--DOC_HIDE assert(c.x == 45) --DOC_HIDE assert(c.width == 40) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/next_to_mouse.lua b/tests/examples/awful/placement/next_to_mouse.lua index 45c76ddce..c5e940542 100644 --- a/tests/examples/awful/placement/next_to_mouse.lua +++ b/tests/examples/awful/placement/next_to_mouse.lua @@ -6,3 +6,5 @@ mouse.coords {x= 50, y=50} --DOC_HIDE mouse.push_history() --DOC_HIDE awful.placement.next_to_mouse(client.focus) + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/no_offscreen.lua b/tests/examples/awful/placement/no_offscreen.lua index 1f65cdb42..b596ab26e 100644 --- a/tests/examples/awful/placement/no_offscreen.lua +++ b/tests/examples/awful/placement/no_offscreen.lua @@ -7,3 +7,5 @@ print("Before:", "x="..c.x..", y="..c.y..", width="..c.width..", height="..c.hei awful.placement.no_offscreen(c)--, {honor_workarea=true, margins=40}) print("After:", "x="..c.x..", y="..c.y..", width="..c.width..", height="..c.height) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/no_overlap.lua b/tests/examples/awful/placement/no_overlap.lua index 14d09a376..9faf08b69 100644 --- a/tests/examples/awful/placement/no_overlap.lua +++ b/tests/examples/awful/placement/no_overlap.lua @@ -24,3 +24,5 @@ awful.placement.no_overlap(client.focus) --FIXME --DOC_HIDE --TODO maximized + no_overlap --DOC_HIDE --TODO add 9 clients with no_overlap on all of them --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/resize_to_mouse.lua b/tests/examples/awful/placement/resize_to_mouse.lua index a7f1a1a29..db561fd02 100644 --- a/tests/examples/awful/placement/resize_to_mouse.lua +++ b/tests/examples/awful/placement/resize_to_mouse.lua @@ -72,3 +72,5 @@ for _, v in ipairs(all_coords_in) do assert(test_touch_mouse(client.get()[s]), v[1]) s = s + 1 end + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/right.lua b/tests/examples/awful/placement/right.lua index 4e16cea6c..0aa7ad480 100644 --- a/tests/examples/awful/placement/right.lua +++ b/tests/examples/awful/placement/right.lua @@ -14,3 +14,5 @@ awful.placement.right(client.focus) assert(c.x == screen[1].geometry.width-40-2*c.border_width) --DOC_HIDE assert( c.y==screen[1].geometry.height/2-30/2-c.border_width)--DOC_HIDE assert( c.width==40 and c.height==30)--DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/stretch.lua b/tests/examples/awful/placement/stretch.lua index fca27952d..c80e0bd14 100644 --- a/tests/examples/awful/placement/stretch.lua +++ b/tests/examples/awful/placement/stretch.lua @@ -14,3 +14,5 @@ local c1 = client.gen_fake {--DOC_HIDE placement.stretch(c1, {direction=pos}) end + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/stretch_down.lua b/tests/examples/awful/placement/stretch_down.lua index 76a56f7db..5f2b510e4 100644 --- a/tests/examples/awful/placement/stretch_down.lua +++ b/tests/examples/awful/placement/stretch_down.lua @@ -16,3 +16,5 @@ assert(c.y==35) --DOC_HIDE assert(c.width == 40) --DOC_HIDE assert(c.y+c.height+2*c.border_width == --DOC_HIDE screen[1].geometry.y + screen[1].geometry.height) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/stretch_left.lua b/tests/examples/awful/placement/stretch_left.lua index 06a8731d7..5de1bee69 100644 --- a/tests/examples/awful/placement/stretch_left.lua +++ b/tests/examples/awful/placement/stretch_left.lua @@ -12,3 +12,5 @@ local c = client.gen_fake {x = 45, y = 35, width=40, height=30} --DOC_HIDE placement.stretch_left(client.focus) assert(c.x == 0 and c.y == 35 and c.height == 30) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/stretch_right.lua b/tests/examples/awful/placement/stretch_right.lua index 47dcce807..e8046d47f 100644 --- a/tests/examples/awful/placement/stretch_right.lua +++ b/tests/examples/awful/placement/stretch_right.lua @@ -13,3 +13,5 @@ placement.stretch_right(client.focus) local right = screen[1].geometry.x + screen[1].geometry.width --DOC_HIDE assert(c.height == 30 and c.x == 45 and c.x+c.width+2*c.border_width == right) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/stretch_up.lua b/tests/examples/awful/placement/stretch_up.lua index 6f8101c22..455909ae9 100644 --- a/tests/examples/awful/placement/stretch_up.lua +++ b/tests/examples/awful/placement/stretch_up.lua @@ -15,3 +15,5 @@ assert(c.y==0) --DOC_HIDE assert(c.x==45) --DOC_HIDE assert(c.width == 40) --DOC_HIDE assert(c.height-2*c.border_width == 35+30) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/top.lua b/tests/examples/awful/placement/top.lua index b3375fbcb..30e8535d8 100644 --- a/tests/examples/awful/placement/top.lua +++ b/tests/examples/awful/placement/top.lua @@ -15,3 +15,5 @@ assert(c.x == screen[1].geometry.width/2-40/2-c.border_width) assert(c.y==0) --DOC_HIDE assert( c.width==40) --DOC_HIDE assert(c.height==30)--DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/top_left.lua b/tests/examples/awful/placement/top_left.lua index f70b85f60..aa56268ab 100644 --- a/tests/examples/awful/placement/top_left.lua +++ b/tests/examples/awful/placement/top_left.lua @@ -12,3 +12,5 @@ local c = client.gen_fake {x = 45, y = 35, width=40, height=30} --DOC_HIDE awful.placement.top_left(client.focus) assert(c.x == 0 and c.y==0 and c.width==40 and c.height==30)--DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/top_right.lua b/tests/examples/awful/placement/top_right.lua index 2ef1634c7..a8599a307 100644 --- a/tests/examples/awful/placement/top_right.lua +++ b/tests/examples/awful/placement/top_right.lua @@ -13,3 +13,5 @@ awful.placement.top_right(client.focus) assert(c.x == screen[1].geometry.width-40-2*c.border_width and c.y==0 --DOC_HIDE and c.width==40 and c.height==30)--DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/placement/under_mouse.lua b/tests/examples/awful/placement/under_mouse.lua index adcb2b805..9b910f119 100644 --- a/tests/examples/awful/placement/under_mouse.lua +++ b/tests/examples/awful/placement/under_mouse.lua @@ -9,3 +9,5 @@ awful.placement.under_mouse(client.focus) assert(client.focus.x + client.focus.width /2 - mouse.coords().x <= 1) --DOC_HIDE assert(client.focus.y + client.focus.height/2 - mouse.coords().y <= 1) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/template.lua b/tests/examples/awful/template.lua index 5f810e2c9..9e45fa484 100644 --- a/tests/examples/awful/template.lua +++ b/tests/examples/awful/template.lua @@ -136,3 +136,5 @@ for _, h in ipairs(mouse.old_histories) do end img:finish() + +-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/gears/shape/arc.lua b/tests/examples/gears/shape/arc.lua index 088fb8d15..3aaddd648 100644 --- a/tests/examples/gears/shape/arc.lua +++ b/tests/examples/gears/shape/arc.lua @@ -8,3 +8,5 @@ show(cr) --DOC_HIDE shape.arc(cr,70,70, nil, 0, 2*math.pi) show(cr) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/gears/shape/arrow.lua b/tests/examples/gears/shape/arrow.lua index 981608da5..3e1a2d248 100644 --- a/tests/examples/gears/shape/arrow.lua +++ b/tests/examples/gears/shape/arrow.lua @@ -8,3 +8,5 @@ show(cr) --DOC_HIDE shape.transform(shape.arrow) : rotate_at(35,35,math.pi/2)(cr,70,70) show(cr) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/gears/shape/circle.lua b/tests/examples/gears/shape/circle.lua index 0cb1b9fcd..d01ae82ac 100644 --- a/tests/examples/gears/shape/circle.lua +++ b/tests/examples/gears/shape/circle.lua @@ -8,3 +8,5 @@ show(cr) --DOC_HIDE shape.transform(shape.circle) : scale(0.5, 1)(cr,70,70) show(cr) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/gears/shape/cross.lua b/tests/examples/gears/shape/cross.lua index 08c692e66..1dc9024b4 100644 --- a/tests/examples/gears/shape/cross.lua +++ b/tests/examples/gears/shape/cross.lua @@ -8,3 +8,5 @@ show(cr) --DOC_HIDE shape.transform(shape.cross) : scale(0.5, 1)(cr,70,70) show(cr) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/gears/shape/hexagon.lua b/tests/examples/gears/shape/hexagon.lua index d08beacb4..8d5155eb3 100644 --- a/tests/examples/gears/shape/hexagon.lua +++ b/tests/examples/gears/shape/hexagon.lua @@ -8,3 +8,5 @@ show(cr) --DOC_HIDE shape.transform(shape.hexagon) : rotate_at(35,35,math.pi/2)(cr,70,40) show(cr) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/gears/shape/infobubble.lua b/tests/examples/gears/shape/infobubble.lua index 5612eb64a..ad3d30dda 100644 --- a/tests/examples/gears/shape/infobubble.lua +++ b/tests/examples/gears/shape/infobubble.lua @@ -10,3 +10,5 @@ show(cr) --DOC_HIDE shape.transform(shape.infobubble) : rotate_at(35,35,3*math.pi/2) (cr,70,70, nil, nil, 40) show(cr) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/gears/shape/isosceles_triangle.lua b/tests/examples/gears/shape/isosceles_triangle.lua index e20c5b8cf..59fe72127 100644 --- a/tests/examples/gears/shape/isosceles_triangle.lua +++ b/tests/examples/gears/shape/isosceles_triangle.lua @@ -8,3 +8,5 @@ show(cr) --DOC_HIDE shape.transform(shape.isosceles_triangle) : rotate_at(35, 35, math.pi/2)(cr,70,70) show(cr) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/gears/shape/losange.lua b/tests/examples/gears/shape/losange.lua index 61b115c6a..babf8a36e 100644 --- a/tests/examples/gears/shape/losange.lua +++ b/tests/examples/gears/shape/losange.lua @@ -8,3 +8,5 @@ show(cr) --DOC_HIDE shape.transform(shape.losange) : scale(0.5, 1)(cr,70,70) show(cr) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/gears/shape/octogon.lua b/tests/examples/gears/shape/octogon.lua index 083cc7d89..fbf75b233 100644 --- a/tests/examples/gears/shape/octogon.lua +++ b/tests/examples/gears/shape/octogon.lua @@ -8,3 +8,5 @@ show(cr) --DOC_HIDE shape.transform(shape.octogon) : translate(0, 25) (cr,70,20) show(cr) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/gears/shape/parallelogram.lua b/tests/examples/gears/shape/parallelogram.lua index 1ba1c22fe..81ce53728 100644 --- a/tests/examples/gears/shape/parallelogram.lua +++ b/tests/examples/gears/shape/parallelogram.lua @@ -8,3 +8,5 @@ show(cr) --DOC_HIDE shape.transform(shape.parallelogram) : scale(0.5, 1)(cr,70,70) show(cr) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/gears/shape/partially_rounded_rect.lua b/tests/examples/gears/shape/partially_rounded_rect.lua index 18734a2aa..0cf7a61aa 100644 --- a/tests/examples/gears/shape/partially_rounded_rect.lua +++ b/tests/examples/gears/shape/partially_rounded_rect.lua @@ -8,3 +8,5 @@ show(cr) --DOC_HIDE shape.partially_rounded_rect(cr, 70, 70, true, true, false, true, 30) show(cr) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/gears/shape/pie.lua b/tests/examples/gears/shape/pie.lua index 60bead347..638ed056a 100644 --- a/tests/examples/gears/shape/pie.lua +++ b/tests/examples/gears/shape/pie.lua @@ -8,3 +8,5 @@ show(cr) --DOC_HIDE shape.pie(cr,70,70, 0, 2*math.pi, 10) show(cr) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/gears/shape/powerline.lua b/tests/examples/gears/shape/powerline.lua index dcaa9508d..e43e5887c 100644 --- a/tests/examples/gears/shape/powerline.lua +++ b/tests/examples/gears/shape/powerline.lua @@ -8,3 +8,5 @@ show(cr) --DOC_HIDE shape.transform(shape.powerline) : translate(0, 25) (cr,70,20, -20) show(cr) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/gears/shape/radial_progress.lua b/tests/examples/gears/shape/radial_progress.lua index 56ff74c26..ba6d8666f 100644 --- a/tests/examples/gears/shape/radial_progress.lua +++ b/tests/examples/gears/shape/radial_progress.lua @@ -8,3 +8,5 @@ show(cr, true) --DOC_HIDE shape.radial_progress(cr, 70, 20, .9) show(cr, true) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/gears/shape/rectangle.lua b/tests/examples/gears/shape/rectangle.lua index 92be78d24..a03255f8e 100644 --- a/tests/examples/gears/shape/rectangle.lua +++ b/tests/examples/gears/shape/rectangle.lua @@ -8,3 +8,5 @@ show(cr) --DOC_HIDE shape.transform(shape.rectangle) : scale(0.5, 1)(cr,70,70) show(cr) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/gears/shape/rectangular_tag.lua b/tests/examples/gears/shape/rectangular_tag.lua index b1444ffdd..cf7e45a41 100644 --- a/tests/examples/gears/shape/rectangular_tag.lua +++ b/tests/examples/gears/shape/rectangular_tag.lua @@ -11,3 +11,5 @@ show(cr) --DOC_HIDE shape.transform(shape.rectangular_tag) : translate(0, 30) (cr, 70, 10, -10) show(cr) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/gears/shape/rounded_bar.lua b/tests/examples/gears/shape/rounded_bar.lua index 6c874865d..5f9299635 100644 --- a/tests/examples/gears/shape/rounded_bar.lua +++ b/tests/examples/gears/shape/rounded_bar.lua @@ -8,3 +8,5 @@ show(cr) --DOC_HIDE shape.rounded_bar(cr, 70, 20) show(cr) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/gears/shape/rounded_rect.lua b/tests/examples/gears/shape/rounded_rect.lua index d8cfada8e..642ce08f0 100644 --- a/tests/examples/gears/shape/rounded_rect.lua +++ b/tests/examples/gears/shape/rounded_rect.lua @@ -8,3 +8,5 @@ show(cr) --DOC_HIDE shape.transform(shape.rounded_rect) : translate(0,25) (cr,70,20, 5) show(cr) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/shims/button.lua b/tests/examples/shims/button.lua index be0e3ecdd..fb5e995af 100644 --- a/tests/examples/shims/button.lua +++ b/tests/examples/shims/button.lua @@ -2,3 +2,5 @@ return function() return { data = {}, connect_signal = function() end } end + +-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/shims/drawin.lua b/tests/examples/shims/drawin.lua index e96ebd6de..ed06e2e67 100644 --- a/tests/examples/shims/drawin.lua +++ b/tests/examples/shims/drawin.lua @@ -21,4 +21,3 @@ return setmetatable(drawin, { }) -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 - diff --git a/tests/examples/shims/screen.lua b/tests/examples/shims/screen.lua index 1e487e373..fef1af192 100644 --- a/tests/examples/shims/screen.lua +++ b/tests/examples/shims/screen.lua @@ -99,4 +99,3 @@ screen._add_screen {width=320, height=240} return screen -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 - diff --git a/tests/examples/shims/tag.lua b/tests/examples/shims/tag.lua index cb1b1f4ca..f445f485b 100644 --- a/tests/examples/shims/tag.lua +++ b/tests/examples/shims/tag.lua @@ -34,4 +34,3 @@ return setmetatable(tag, { }) -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 - diff --git a/tests/examples/text/gears/object/properties.lua b/tests/examples/text/gears/object/properties.lua index 97690967c..3e8994a51 100644 --- a/tests/examples/text/gears/object/properties.lua +++ b/tests/examples/text/gears/object/properties.lua @@ -51,3 +51,5 @@ print(o.something) o.something = "a cow" print(o.something) + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/text/gears/object/signal.lua b/tests/examples/text/gears/object/signal.lua index 2a67b3783..e21bdb315 100644 --- a/tests/examples/text/gears/object/signal.lua +++ b/tests/examples/text/gears/object/signal.lua @@ -22,3 +22,5 @@ o:disconnect_signal("my_signal", slot) -- This time, the `slot` wont be called as it is no longer connected. o:emit_signal "my_signal" + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/text/template.lua b/tests/examples/text/template.lua index 948f3a14d..4368a41ce 100644 --- a/tests/examples/text/template.lua +++ b/tests/examples/text/template.lua @@ -3,3 +3,5 @@ require("_common_template")(...) -- Execute the test loadfile(file_path)() + +-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/arcchart/bg.lua b/tests/examples/wibox/container/arcchart/bg.lua index 686c394ba..36d4c6241 100644 --- a/tests/examples/wibox/container/arcchart/bg.lua +++ b/tests/examples/wibox/container/arcchart/bg.lua @@ -36,3 +36,5 @@ for _, v in ipairs {"", "#00ff00", "#0000ff"} do end return nil, 60 + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/arcchart/border_width.lua b/tests/examples/wibox/container/arcchart/border_width.lua index c74a51195..10f2fd5be 100644 --- a/tests/examples/wibox/container/arcchart/border_width.lua +++ b/tests/examples/wibox/container/arcchart/border_width.lua @@ -46,3 +46,5 @@ for _, v in ipairs {0,1,3,6.5} do end return nil, 60 + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/arcchart/paddings.lua b/tests/examples/wibox/container/arcchart/paddings.lua index f427797ba..3c8bf4190 100644 --- a/tests/examples/wibox/container/arcchart/paddings.lua +++ b/tests/examples/wibox/container/arcchart/paddings.lua @@ -77,3 +77,5 @@ l:add(wibox.widget { }) return nil, 60 + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/arcchart/rounded_edge.lua b/tests/examples/wibox/container/arcchart/rounded_edge.lua index fabeb0bc9..86f01ab04 100644 --- a/tests/examples/wibox/container/arcchart/rounded_edge.lua +++ b/tests/examples/wibox/container/arcchart/rounded_edge.lua @@ -79,3 +79,5 @@ parent:add(wibox.widget { }) return 500, 60 + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/arcchart/start_angle.lua b/tests/examples/wibox/container/arcchart/start_angle.lua index baa8612ea..71fbfc3f5 100644 --- a/tests/examples/wibox/container/arcchart/start_angle.lua +++ b/tests/examples/wibox/container/arcchart/start_angle.lua @@ -33,3 +33,5 @@ for _, v in ipairs {0, math.pi/2, math.pi} do end return nil, 60 + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/arcchart/thickness.lua b/tests/examples/wibox/container/arcchart/thickness.lua index ab431de35..428096e57 100644 --- a/tests/examples/wibox/container/arcchart/thickness.lua +++ b/tests/examples/wibox/container/arcchart/thickness.lua @@ -37,3 +37,5 @@ for _, v in ipairs {1,3,7,10} do end return nil, 60 + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/arcchart/value.lua b/tests/examples/wibox/container/arcchart/value.lua index 048007976..ba5dfd427 100644 --- a/tests/examples/wibox/container/arcchart/value.lua +++ b/tests/examples/wibox/container/arcchart/value.lua @@ -26,3 +26,5 @@ for _, v in ipairs {0,1,7,99} do end return nil, 60 + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/background/bg.lua b/tests/examples/wibox/container/background/bg.lua index 4bfef12ac..83cc20d2e 100644 --- a/tests/examples/wibox/container/background/bg.lua +++ b/tests/examples/wibox/container/background/bg.lua @@ -25,3 +25,5 @@ parent : setup { spacing = 10, layout = wibox.layout.fixed.vertical } + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/background/clip.lua b/tests/examples/wibox/container/background/clip.lua index 8184f8668..93fab52b6 100644 --- a/tests/examples/wibox/container/background/clip.lua +++ b/tests/examples/wibox/container/background/clip.lua @@ -30,3 +30,5 @@ parent : setup { spacing = 10, layout = wibox.layout.fixed.vertical } + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/background/fg.lua b/tests/examples/wibox/container/background/fg.lua index 30e958a41..15d58a49b 100644 --- a/tests/examples/wibox/container/background/fg.lua +++ b/tests/examples/wibox/container/background/fg.lua @@ -25,3 +25,5 @@ parent : setup { spacing = 10, layout = wibox.layout.fixed.vertical } + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/background/shape.lua b/tests/examples/wibox/container/background/shape.lua index 139bb1ca1..e912f965d 100644 --- a/tests/examples/wibox/container/background/shape.lua +++ b/tests/examples/wibox/container/background/shape.lua @@ -38,3 +38,5 @@ parent : setup { spacing = 10, layout = wibox.layout.fixed.vertical } + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/defaults/arcchart.lua b/tests/examples/wibox/container/defaults/arcchart.lua index 284900a64..be3f63762 100644 --- a/tests/examples/wibox/container/defaults/arcchart.lua +++ b/tests/examples/wibox/container/defaults/arcchart.lua @@ -43,3 +43,5 @@ return { }, layout = wibox.container.margin } + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/defaults/background.lua b/tests/examples/wibox/container/defaults/background.lua index 0ce041416..7296560b5 100644 --- a/tests/examples/wibox/container/defaults/background.lua +++ b/tests/examples/wibox/container/defaults/background.lua @@ -22,3 +22,5 @@ return { bg = beautiful.bg_highlight, widget = wibox.container.background } + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/defaults/constraint.lua b/tests/examples/wibox/container/defaults/constraint.lua index 1d4fcb88c..91383e57d 100644 --- a/tests/examples/wibox/container/defaults/constraint.lua +++ b/tests/examples/wibox/container/defaults/constraint.lua @@ -25,3 +25,5 @@ return { }, layout = wibox.layout.fixed.vertical, } + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/defaults/margin.lua b/tests/examples/wibox/container/defaults/margin.lua index 49505b07a..89cf5207f 100644 --- a/tests/examples/wibox/container/defaults/margin.lua +++ b/tests/examples/wibox/container/defaults/margin.lua @@ -52,3 +52,5 @@ return { expand = "none", layout = wibox.layout.align.vertical, } + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/defaults/mirror.lua b/tests/examples/wibox/container/defaults/mirror.lua index e216c9b46..99cb78aca 100644 --- a/tests/examples/wibox/container/defaults/mirror.lua +++ b/tests/examples/wibox/container/defaults/mirror.lua @@ -17,3 +17,5 @@ return { reflection = {horizontal = true}, widget = wibox.container.mirror } + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/defaults/radialprogressbar.lua b/tests/examples/wibox/container/defaults/radialprogressbar.lua index 5ae4190e7..602f0fac2 100644 --- a/tests/examples/wibox/container/defaults/radialprogressbar.lua +++ b/tests/examples/wibox/container/defaults/radialprogressbar.lua @@ -23,3 +23,5 @@ return { margins = 5, layout = wibox.container.margin } + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/defaults/rotate.lua b/tests/examples/wibox/container/defaults/rotate.lua index 13cf1002d..61fc370cb 100644 --- a/tests/examples/wibox/container/defaults/rotate.lua +++ b/tests/examples/wibox/container/defaults/rotate.lua @@ -17,3 +17,5 @@ return { direction = "east", widget = wibox.container.rotate } + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/defaults/template.lua b/tests/examples/wibox/container/defaults/template.lua index e1fe7842c..6e7a45516 100644 --- a/tests/examples/wibox/container/defaults/template.lua +++ b/tests/examples/wibox/container/defaults/template.lua @@ -75,3 +75,4 @@ local f_w, f_h = container:fit({dpi=96}, 9999, 9999) local img = surface.widget_to_svg(container, image_path..".svg", f_w, f_h) img:finish() +-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/radialprogressbar/border_color.lua b/tests/examples/wibox/container/radialprogressbar/border_color.lua index 6885a7060..93b6ca902 100644 --- a/tests/examples/wibox/container/radialprogressbar/border_color.lua +++ b/tests/examples/wibox/container/radialprogressbar/border_color.lua @@ -24,3 +24,5 @@ local l = wibox.layout { } parent:add(l) + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/radialprogressbar/border_width.lua b/tests/examples/wibox/container/radialprogressbar/border_width.lua index b13bddf7f..71222c772 100644 --- a/tests/examples/wibox/container/radialprogressbar/border_width.lua +++ b/tests/examples/wibox/container/radialprogressbar/border_width.lua @@ -27,3 +27,5 @@ local l = wibox.layout { } parent:add(l) + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/radialprogressbar/color.lua b/tests/examples/wibox/container/radialprogressbar/color.lua index 7c097af5f..f7738f5ab 100644 --- a/tests/examples/wibox/container/radialprogressbar/color.lua +++ b/tests/examples/wibox/container/radialprogressbar/color.lua @@ -24,3 +24,5 @@ local l = wibox.layout { } parent:add(l) + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/radialprogressbar/padding.lua b/tests/examples/wibox/container/radialprogressbar/padding.lua index 9e46370fa..6af415e01 100644 --- a/tests/examples/wibox/container/radialprogressbar/padding.lua +++ b/tests/examples/wibox/container/radialprogressbar/padding.lua @@ -31,3 +31,5 @@ local l = wibox.layout { } parent:add(l) + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/radialprogressbar/value.lua b/tests/examples/wibox/container/radialprogressbar/value.lua index a3e7c9447..24c20aeff 100644 --- a/tests/examples/wibox/container/radialprogressbar/value.lua +++ b/tests/examples/wibox/container/radialprogressbar/value.lua @@ -26,3 +26,5 @@ local l = wibox.layout { } parent:add(l) + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/container/rotate/angle.lua b/tests/examples/wibox/container/rotate/angle.lua index 0e5db3789..92807497e 100644 --- a/tests/examples/wibox/container/rotate/angle.lua +++ b/tests/examples/wibox/container/rotate/angle.lua @@ -60,3 +60,5 @@ parent : setup { --DOC_HIDE spacing = 10, --DOC_HIDE layout = wibox.layout.fixed.horizontal --DOC_HIDE } --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/layout/defaults/align.lua b/tests/examples/wibox/layout/defaults/align.lua index 236b5cac5..ee0e73efa 100644 --- a/tests/examples/wibox/layout/defaults/align.lua +++ b/tests/examples/wibox/layout/defaults/align.lua @@ -8,3 +8,5 @@ wibox.widget { generic_widget( "third" ), layout = wibox.layout.align.horizontal } + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/layout/defaults/fixed.lua b/tests/examples/wibox/layout/defaults/fixed.lua index 0b6f1f825..28c1fc8fe 100644 --- a/tests/examples/wibox/layout/defaults/fixed.lua +++ b/tests/examples/wibox/layout/defaults/fixed.lua @@ -8,3 +8,5 @@ wibox.widget { generic_widget( "third" ), layout = wibox.layout.fixed.horizontal } + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/layout/defaults/flex.lua b/tests/examples/wibox/layout/defaults/flex.lua index 81d59cd53..14bbd4b4a 100644 --- a/tests/examples/wibox/layout/defaults/flex.lua +++ b/tests/examples/wibox/layout/defaults/flex.lua @@ -8,3 +8,5 @@ wibox.widget { generic_widget( "third" ), layout = wibox.layout.flex.horizontal } + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/layout/defaults/ratio.lua b/tests/examples/wibox/layout/defaults/ratio.lua index 397d74905..466747000 100644 --- a/tests/examples/wibox/layout/defaults/ratio.lua +++ b/tests/examples/wibox/layout/defaults/ratio.lua @@ -11,3 +11,5 @@ local w = wibox.widget { w:ajust_ratio(2, 0.44, 0.33, 0.22) return w --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/layout/defaults/stack.lua b/tests/examples/wibox/layout/defaults/stack.lua index 828874825..5ccca04f4 100644 --- a/tests/examples/wibox/layout/defaults/stack.lua +++ b/tests/examples/wibox/layout/defaults/stack.lua @@ -8,3 +8,5 @@ wibox.widget { generic_widget( "third" ), layout = wibox.layout.stack } + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/layout/template.lua b/tests/examples/wibox/layout/template.lua index bc162e77d..f399049cb 100644 --- a/tests/examples/wibox/layout/template.lua +++ b/tests/examples/wibox/layout/template.lua @@ -101,3 +101,5 @@ end -- Save to the output file local img = surface["widget_to_svg"](widget, image_path..".svg", w or 200, h or 30) img:finish() + +-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/logo/logo.lua b/tests/examples/wibox/logo/logo.lua index 2a0688cc6..e9bf991a4 100644 --- a/tests/examples/wibox/logo/logo.lua +++ b/tests/examples/wibox/logo/logo.lua @@ -13,3 +13,5 @@ parent:add( --DOC_HIDE } ) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/logo/logo_and_name.lua b/tests/examples/wibox/logo/logo_and_name.lua index fe1eb674a..2c2b13459 100644 --- a/tests/examples/wibox/logo/logo_and_name.lua +++ b/tests/examples/wibox/logo/logo_and_name.lua @@ -15,3 +15,5 @@ parent:add( --DOC_HIDE } ) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/template.lua b/tests/examples/wibox/template.lua index 92402c1e9..656d22e51 100644 --- a/tests/examples/wibox/template.lua +++ b/tests/examples/wibox/template.lua @@ -27,3 +27,4 @@ f_w, f_h = f_w+10, f_h+10 local img = surface["widget_to_"..image_type](container, image_path.."."..image_type, w or f_w, h or f_h) img:finish() +-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/checkbox/bg.lua b/tests/examples/wibox/widget/checkbox/bg.lua index 8410223db..151b525d8 100644 --- a/tests/examples/wibox/widget/checkbox/bg.lua +++ b/tests/examples/wibox/widget/checkbox/bg.lua @@ -18,3 +18,5 @@ parent:add( --DOC_HIDE widget = wibox.widget.checkbox } ) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/checkbox/check_shape.lua b/tests/examples/wibox/widget/checkbox/check_shape.lua index a0be1267a..11fe7df4c 100644 --- a/tests/examples/wibox/widget/checkbox/check_shape.lua +++ b/tests/examples/wibox/widget/checkbox/check_shape.lua @@ -25,3 +25,5 @@ for _, s in ipairs {"rectangle", "circle", "losange", "octogon"} do end parent:add(l) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/checkbox/custom.lua b/tests/examples/wibox/widget/checkbox/custom.lua index 4f0531af9..e8ce550e4 100644 --- a/tests/examples/wibox/widget/checkbox/custom.lua +++ b/tests/examples/wibox/widget/checkbox/custom.lua @@ -31,3 +31,5 @@ parent:add( --DOC_HIDE widget = wibox.widget.checkbox } ) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/checkbox/shape.lua b/tests/examples/wibox/widget/checkbox/shape.lua index 096549882..c13ebf13e 100644 --- a/tests/examples/wibox/widget/checkbox/shape.lua +++ b/tests/examples/wibox/widget/checkbox/shape.lua @@ -25,3 +25,5 @@ for _, s in ipairs {"rectangle", "circle", "losange", "octogon"} do end parent:add(l) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/defaults/checkbox.lua b/tests/examples/wibox/widget/defaults/checkbox.lua index c18e641b8..440f6fbf2 100644 --- a/tests/examples/wibox/widget/defaults/checkbox.lua +++ b/tests/examples/wibox/widget/defaults/checkbox.lua @@ -29,3 +29,5 @@ parent:add( --DOC_HIDE } --DOC_HIDE ) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/defaults/graph.lua b/tests/examples/wibox/widget/defaults/graph.lua index 6ccd93b5a..0a2057058 100644 --- a/tests/examples/wibox/widget/defaults/graph.lua +++ b/tests/examples/wibox/widget/defaults/graph.lua @@ -20,3 +20,5 @@ parent:add( w ) --DOC_HIDE for _, v in ipairs(data) do --DOC_HIDE w:add_value(v) --DOC_HIDE end --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/defaults/imagebox.lua b/tests/examples/wibox/widget/defaults/imagebox.lua index 13d5ef041..8e433fdc3 100644 --- a/tests/examples/wibox/widget/defaults/imagebox.lua +++ b/tests/examples/wibox/widget/defaults/imagebox.lua @@ -11,3 +11,5 @@ parent:add( --DOC_HIDE } ) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/defaults/piechart.lua b/tests/examples/wibox/widget/defaults/piechart.lua index 293b1ded6..0101e828c 100644 --- a/tests/examples/wibox/widget/defaults/piechart.lua +++ b/tests/examples/wibox/widget/defaults/piechart.lua @@ -22,3 +22,5 @@ parent:add( --DOC_HIDE } ) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/defaults/progressbar.lua b/tests/examples/wibox/widget/defaults/progressbar.lua index 0f90b62cb..6f3915e2e 100644 --- a/tests/examples/wibox/widget/defaults/progressbar.lua +++ b/tests/examples/wibox/widget/defaults/progressbar.lua @@ -17,3 +17,5 @@ parent:add( --DOC_HIDE } ) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/defaults/slider.lua b/tests/examples/wibox/widget/defaults/slider.lua index 2dfc1e08f..519f288f0 100644 --- a/tests/examples/wibox/widget/defaults/slider.lua +++ b/tests/examples/wibox/widget/defaults/slider.lua @@ -20,3 +20,5 @@ parent:add( --DOC_HIDE } ) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/defaults/textbox.lua b/tests/examples/wibox/widget/defaults/textbox.lua index 3997a99ff..ddf7c679b 100644 --- a/tests/examples/wibox/widget/defaults/textbox.lua +++ b/tests/examples/wibox/widget/defaults/textbox.lua @@ -11,3 +11,5 @@ parent:add( --DOC_HIDE } ) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/graph/step.lua b/tests/examples/wibox/widget/graph/step.lua index 9b5d02106..bc3603e95 100644 --- a/tests/examples/wibox/widget/graph/step.lua +++ b/tests/examples/wibox/widget/graph/step.lua @@ -26,3 +26,5 @@ parent:add( w ) --DOC_HIDE for _, v in ipairs(data) do --DOC_HIDE w:add_value(v) --DOC_HIDE end --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/piechart/border_color.lua b/tests/examples/wibox/widget/piechart/border_color.lua index 43b1b10b6..4bbbf9e9d 100644 --- a/tests/examples/wibox/widget/piechart/border_color.lua +++ b/tests/examples/wibox/widget/piechart/border_color.lua @@ -25,3 +25,5 @@ for _, v in ipairs {"#ff0000", "#00ff00", "#0000ff"} do widget = wibox.widget.piechart }) end + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/piechart/border_width.lua b/tests/examples/wibox/widget/piechart/border_width.lua index a8c4430b9..40cb8deea 100644 --- a/tests/examples/wibox/widget/piechart/border_width.lua +++ b/tests/examples/wibox/widget/piechart/border_width.lua @@ -24,3 +24,5 @@ for _, v in ipairs {0,1,3,5} do widget = wibox.widget.piechart }) end + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/piechart/label.lua b/tests/examples/wibox/widget/piechart/label.lua index b9852807e..a994281bc 100644 --- a/tests/examples/wibox/widget/piechart/label.lua +++ b/tests/examples/wibox/widget/piechart/label.lua @@ -66,3 +66,5 @@ parent:add(wibox.widget { }) return 500, 60 + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/progressbar/bar_shape.lua b/tests/examples/wibox/widget/progressbar/bar_shape.lua index 47d5717cd..4d5d9e933 100644 --- a/tests/examples/wibox/widget/progressbar/bar_shape.lua +++ b/tests/examples/wibox/widget/progressbar/bar_shape.lua @@ -25,3 +25,5 @@ for _, shape in ipairs {"rounded_bar", "octogon", "hexagon", "powerline" } do end parent:add(l) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/progressbar/clip.lua b/tests/examples/wibox/widget/progressbar/clip.lua index 695d87f9c..44dea3cc0 100644 --- a/tests/examples/wibox/widget/progressbar/clip.lua +++ b/tests/examples/wibox/widget/progressbar/clip.lua @@ -25,3 +25,5 @@ parent:add( --DOC_HIDE } ) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/progressbar/shape.lua b/tests/examples/wibox/widget/progressbar/shape.lua index d53c950a6..bcaec4d07 100644 --- a/tests/examples/wibox/widget/progressbar/shape.lua +++ b/tests/examples/wibox/widget/progressbar/shape.lua @@ -22,3 +22,5 @@ for _, shape in ipairs {"rounded_bar", "octogon", "hexagon", "powerline" } do end parent:add(l) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/progressbar/text.lua b/tests/examples/wibox/widget/progressbar/text.lua index d854a4b1d..f4ac6a587 100644 --- a/tests/examples/wibox/widget/progressbar/text.lua +++ b/tests/examples/wibox/widget/progressbar/text.lua @@ -23,3 +23,5 @@ parent:add( --DOC_HIDE } ) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/progressbar/vertical.lua b/tests/examples/wibox/widget/progressbar/vertical.lua index ae1844194..d0bc37510 100644 --- a/tests/examples/wibox/widget/progressbar/vertical.lua +++ b/tests/examples/wibox/widget/progressbar/vertical.lua @@ -16,3 +16,5 @@ parent:add( --DOC_HIDE } ) --DOC_HIDE + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/slider/bar_border.lua b/tests/examples/wibox/widget/slider/bar_border.lua index f7f0d7b87..4d201aacd 100644 --- a/tests/examples/wibox/widget/slider/bar_border.lua +++ b/tests/examples/wibox/widget/slider/bar_border.lua @@ -24,3 +24,5 @@ local l = wibox.layout { } parent:add(l) + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/slider/bar_color.lua b/tests/examples/wibox/widget/slider/bar_color.lua index 5401e94a0..de3859809 100644 --- a/tests/examples/wibox/widget/slider/bar_color.lua +++ b/tests/examples/wibox/widget/slider/bar_color.lua @@ -24,3 +24,5 @@ local l = wibox.layout { } parent:add(l) + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/slider/bar_height.lua b/tests/examples/wibox/widget/slider/bar_height.lua index 2d94f0643..58fad90ad 100644 --- a/tests/examples/wibox/widget/slider/bar_height.lua +++ b/tests/examples/wibox/widget/slider/bar_height.lua @@ -24,3 +24,5 @@ local l = wibox.layout { } parent:add(l) + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/slider/bar_margins.lua b/tests/examples/wibox/widget/slider/bar_margins.lua index d03f69101..9b4f4cebb 100644 --- a/tests/examples/wibox/widget/slider/bar_margins.lua +++ b/tests/examples/wibox/widget/slider/bar_margins.lua @@ -29,3 +29,5 @@ local l = wibox.layout { } parent:add(l) + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/slider/bar_shape.lua b/tests/examples/wibox/widget/slider/bar_shape.lua index d33dac7fd..f285e4255 100644 --- a/tests/examples/wibox/widget/slider/bar_shape.lua +++ b/tests/examples/wibox/widget/slider/bar_shape.lua @@ -26,3 +26,5 @@ local l = wibox.layout { } parent:add(l) + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/slider/handle_border.lua b/tests/examples/wibox/widget/slider/handle_border.lua index 2e4bf039b..4f20c3263 100644 --- a/tests/examples/wibox/widget/slider/handle_border.lua +++ b/tests/examples/wibox/widget/slider/handle_border.lua @@ -24,3 +24,5 @@ local l = wibox.layout { } parent:add(l) + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/slider/handle_color.lua b/tests/examples/wibox/widget/slider/handle_color.lua index 4af7fe2ba..ab9a88fbe 100644 --- a/tests/examples/wibox/widget/slider/handle_color.lua +++ b/tests/examples/wibox/widget/slider/handle_color.lua @@ -24,3 +24,5 @@ local l = wibox.layout { } parent:add(l) + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/slider/handle_margins.lua b/tests/examples/wibox/widget/slider/handle_margins.lua index 69be2289d..7e4e27629 100644 --- a/tests/examples/wibox/widget/slider/handle_margins.lua +++ b/tests/examples/wibox/widget/slider/handle_margins.lua @@ -29,3 +29,5 @@ local l = wibox.layout { } parent:add(l) + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/slider/handle_shape.lua b/tests/examples/wibox/widget/slider/handle_shape.lua index 18ba7acdd..7a21342b2 100644 --- a/tests/examples/wibox/widget/slider/handle_shape.lua +++ b/tests/examples/wibox/widget/slider/handle_shape.lua @@ -26,3 +26,5 @@ local l = wibox.layout { } parent:add(l) + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/slider/handle_width.lua b/tests/examples/wibox/widget/slider/handle_width.lua index ae61daa11..a74e8db53 100644 --- a/tests/examples/wibox/widget/slider/handle_width.lua +++ b/tests/examples/wibox/widget/slider/handle_width.lua @@ -25,3 +25,5 @@ local l = wibox.layout { } parent:add(l) + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/wibox/widget/slider/value.lua b/tests/examples/wibox/widget/slider/value.lua index cce0b7295..801218d5d 100644 --- a/tests/examples/wibox/widget/slider/value.lua +++ b/tests/examples/wibox/widget/slider/value.lua @@ -25,3 +25,5 @@ local l = wibox.layout { } parent:add(l) + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 From 7d3b7fc48a491da6b522c03bc38fd5be30c38199 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 31 Dec 2016 14:02:14 +0100 Subject: [PATCH 3/6] Add vim modelines to all CMake files Signed-off-by: Uli Schlachter --- Packaging.cmake | 2 ++ docs/load_ldoc.cmake | 2 ++ docs/widget_lists.cmake | 2 ++ tests/examples/CMakeLists.txt | 2 ++ 4 files changed, 8 insertions(+) diff --git a/Packaging.cmake b/Packaging.cmake index 102c033e1..4cd5a9d0b 100644 --- a/Packaging.cmake +++ b/Packaging.cmake @@ -64,3 +64,5 @@ set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A tiling window manager") if(CPACK_GENERATOR) include(CPack) endif() + +# vim: filetype=cmake:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80:foldmethod=marker diff --git a/docs/load_ldoc.cmake b/docs/load_ldoc.cmake index 3123f082f..d8f6fe217 100644 --- a/docs/load_ldoc.cmake +++ b/docs/load_ldoc.cmake @@ -16,3 +16,5 @@ foreach(doc_file_name ${doc_files}) # Create a new variable usable from lua files set(DOC_${DOC_FILE_NAME}_COMMON "Imported documentation\n\n${doc_file_content}") endforeach() + +# vim: filetype=cmake:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80:foldmethod=marker diff --git a/docs/widget_lists.cmake b/docs/widget_lists.cmake index d0fe506fd..10c4cf6d7 100644 --- a/docs/widget_lists.cmake +++ b/docs/widget_lists.cmake @@ -47,3 +47,5 @@ endfunction() generate_widget_list( "container" ) generate_widget_list( "layout" ) generate_widget_list( "widget" ) + +# vim: filetype=cmake:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80:foldmethod=marker diff --git a/tests/examples/CMakeLists.txt b/tests/examples/CMakeLists.txt index 163546a97..d591a2afb 100644 --- a/tests/examples/CMakeLists.txt +++ b/tests/examples/CMakeLists.txt @@ -259,3 +259,5 @@ foreach(file ${test_files}) endforeach() message(STATUS "Example tests passed.") + +# vim: filetype=cmake:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80:foldmethod=marker From cc0e8662a8846d8621bd92bc7d35cd0001d66fb8 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 31 Dec 2016 14:03:18 +0100 Subject: [PATCH 4/6] Reindent Packaging.cmake It was using tabs instead of spaces. Signed-off-by: Uli Schlachter --- Packaging.cmake | 50 ++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/Packaging.cmake b/Packaging.cmake index 4cd5a9d0b..fb14c5f1c 100644 --- a/Packaging.cmake +++ b/Packaging.cmake @@ -1,31 +1,31 @@ if(NOT VERSION) - set(VERSION "unknown") + set(VERSION "unknown") endif() string(REGEX REPLACE "^v?([0-9.]+)-?(.*)$" - "\\1;\\2" version_result ${VERSION}) + "\\1;\\2" version_result ${VERSION}) list(LENGTH version_result version_result_list_length) if(version_result_list_length EQUAL 2) - list(GET version_result 0 version_num) - list(GET version_result 1 version_gitstamp) + list(GET version_result 0 version_num) + list(GET version_result 1 version_gitstamp) else(version_result_list_length EQUAL 2) - message("Unable to deduce a meaningful version number. \ + message("Unable to deduce a meaningful version number. \ Set OVERRIDE_VERSION when you run CMake (cmake .. -DOVERRIDE_VERSION=3.14.159), or \ just build from a git repository.") - set(version_num "0.0.0") - set(version_gitstamp "") + set(version_num "0.0.0") + set(version_gitstamp "") endif(version_result_list_length EQUAL 2) if(version_gitstamp) - set(version_gitsuffix "~git${version_gitstamp}") + set(version_gitsuffix "~git${version_gitstamp}") else(version_gitstamp) - set(version_gitsuffix "") + set(version_gitsuffix "") endif(version_gitstamp) string(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" - "\\1;\\2;\\3" version_num_split ${version_num}) + "\\1;\\2;\\3" version_num_split ${version_num}) list(APPEND version_num_split 0 0 0) #ensure the list(GET )) commands below never fail @@ -40,21 +40,21 @@ message(STATUS "Package version will be set to ${version_num}${version_gitsuffix set(CPACK_PACKAGE_VERSION "${version_num}${version_gitsuffix}") if(NOT CPACK_GENERATOR) - a_find_program(rpmbuild_path "rpmbuild" FALSE) - if(rpmbuild_path) - message(STATUS "rpmbuild found, enabling RPM for the 'package' target") - list(APPEND CPACK_GENERATOR RPM) - else(rpmbuild_path) - message(STATUS "The 'package' target will not build a RPM") - endif(rpmbuild_path) + a_find_program(rpmbuild_path "rpmbuild" FALSE) + if(rpmbuild_path) + message(STATUS "rpmbuild found, enabling RPM for the 'package' target") + list(APPEND CPACK_GENERATOR RPM) + else(rpmbuild_path) + message(STATUS "The 'package' target will not build a RPM") + endif(rpmbuild_path) - a_find_program(dpkg_path "dpkg" FALSE) - if (dpkg_path) - message(STATUS "dpkg found, enabling DEB for the 'package' target") - list(APPEND CPACK_GENERATOR DEB) - else(dpkg_path) - message(STATUS "The 'package' target will not build a DEB") - endif(dpkg_path) + a_find_program(dpkg_path "dpkg" FALSE) + if (dpkg_path) + message(STATUS "dpkg found, enabling DEB for the 'package' target") + list(APPEND CPACK_GENERATOR DEB) + else(dpkg_path) + message(STATUS "The 'package' target will not build a DEB") + endif(dpkg_path) endif(NOT CPACK_GENERATOR) set(CPACK_PACKAGE_NAME "awesome") @@ -62,7 +62,7 @@ set(CPACK_DEBIAN_PACKAGE_MAINTAINER "devnull@example.com") set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A tiling window manager") if(CPACK_GENERATOR) - include(CPack) + include(CPack) endif() # vim: filetype=cmake:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80:foldmethod=marker From d893e42440a0acb8b3dca5d3b2eb9e31deaba8f2 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 31 Dec 2016 14:05:51 +0100 Subject: [PATCH 5/6] Add missing modelines to tests/*.lua Signed-off-by: Uli Schlachter --- tests/_multi_screen.lua | 2 ++ tests/test-awesomerc.lua | 2 ++ tests/test-awful-client.lua | 2 ++ tests/test-awful-layout.lua | 2 ++ tests/test-awful-rules.lua | 2 ++ tests/test-awful-tag.lua | 2 ++ tests/test-miss-handlers.lua | 2 ++ tests/test-resize.lua | 2 ++ tests/test-struts.lua | 3 ++- 9 files changed, 18 insertions(+), 1 deletion(-) diff --git a/tests/_multi_screen.lua b/tests/_multi_screen.lua index 82aa7fe86..bc42b1757 100644 --- a/tests/_multi_screen.lua +++ b/tests/_multi_screen.lua @@ -520,3 +520,5 @@ end return setmetatable(module, { __call = function(_,...) return add_steps(...) end }) + +-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/test-awesomerc.lua b/tests/test-awesomerc.lua index 9e88f9556..fe2b294e4 100644 --- a/tests/test-awesomerc.lua +++ b/tests/test-awesomerc.lua @@ -226,3 +226,5 @@ local steps = { } require("_runner").run_steps(steps) + +-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/test-awful-client.lua b/tests/test-awful-client.lua index 86ba04330..5bacf7652 100644 --- a/tests/test-awful-client.lua +++ b/tests/test-awful-client.lua @@ -309,3 +309,5 @@ end) require("_multi_screen")(steps, multi_screen_steps) require("_runner").run_steps(steps) + +-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/test-awful-layout.lua b/tests/test-awful-layout.lua index 56713f119..1d2509d42 100644 --- a/tests/test-awful-layout.lua +++ b/tests/test-awful-layout.lua @@ -120,3 +120,5 @@ for _ in ipairs(awful.layout.layouts) do end require("_runner").run_steps(steps) + +-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/test-awful-rules.lua b/tests/test-awful-rules.lua index dd136d16b..6391dc6ed 100644 --- a/tests/test-awful-rules.lua +++ b/tests/test-awful-rules.lua @@ -296,3 +296,5 @@ local function spawn_clients() end require("_runner").run_steps{spawn_clients, unpack(tests)} + +-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/test-awful-tag.lua b/tests/test-awful-tag.lua index e6601ab43..727359d04 100644 --- a/tests/test-awful-tag.lua +++ b/tests/test-awful-tag.lua @@ -242,3 +242,5 @@ end) require("_multi_screen")(steps, multi_screen_steps) require("_runner").run_steps(steps) + +-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/test-miss-handlers.lua b/tests/test-miss-handlers.lua index 8a8948183..c6b2baffa 100644 --- a/tests/test-miss-handlers.lua +++ b/tests/test-miss-handlers.lua @@ -69,3 +69,5 @@ assert(w2.main_background.main_textbox) assert(w2.main_background == w2:get_children_by_id("main_background")[1]) require("_runner").run_steps({ function() return true end }) + +-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/test-resize.lua b/tests/test-resize.lua index 7753570a0..298323efb 100644 --- a/tests/test-resize.lua +++ b/tests/test-resize.lua @@ -440,3 +440,5 @@ table.insert(steps, function() end) require("_runner").run_steps(steps) + +-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/test-struts.lua b/tests/test-struts.lua index af0f5d4eb..889a1f811 100644 --- a/tests/test-struts.lua +++ b/tests/test-struts.lua @@ -317,5 +317,6 @@ check_maximize() return true end) - require("_runner").run_steps(steps) + +-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 From 2b7916562286b558167ee95c1ccb109415bb1259 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 31 Dec 2016 14:07:13 +0100 Subject: [PATCH 6/6] Add missing vim modelines in lib/ Signed-off-by: Uli Schlachter --- lib/awful/client/urgent.lua | 2 ++ lib/awful/mouse/drag_to_tag.lua | 2 ++ lib/awful/mouse/resize.lua | 2 ++ lib/awful/mouse/snap.lua | 2 ++ lib/gears/geometry.lua | 2 ++ 5 files changed, 10 insertions(+) diff --git a/lib/awful/client/urgent.lua b/lib/awful/client/urgent.lua index 22f6a6d70..8cdcc2cba 100644 --- a/lib/awful/client/urgent.lua +++ b/lib/awful/client/urgent.lua @@ -86,3 +86,5 @@ capi.client.connect_signal("focus", urgent.delete) capi.client.connect_signal("unmanage", urgent.delete) return urgent + +-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/lib/awful/mouse/drag_to_tag.lua b/lib/awful/mouse/drag_to_tag.lua index 141456bc7..e8e836d95 100644 --- a/lib/awful/mouse/drag_to_tag.lua +++ b/lib/awful/mouse/drag_to_tag.lua @@ -56,3 +56,5 @@ resize.add_move_callback(function(c, _, _) end, "mouse.move") return setmetatable(module, {__call = function(_, ...) return module.drag_to_tag(...) end}) + +-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/lib/awful/mouse/resize.lua b/lib/awful/mouse/resize.lua index edd278dc0..de79c0043 100644 --- a/lib/awful/mouse/resize.lua +++ b/lib/awful/mouse/resize.lua @@ -227,3 +227,5 @@ local function handler(_, client, context, args) --luacheck: no unused_args end return setmetatable(module, {__call=handler}) + +-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/lib/awful/mouse/snap.lua b/lib/awful/mouse/snap.lua index 048a6796c..5109a1b8e 100644 --- a/lib/awful/mouse/snap.lua +++ b/lib/awful/mouse/snap.lua @@ -264,3 +264,5 @@ resize.add_leave_callback(function(c, _, args) end, "mouse.move") return setmetatable(module, {__call = function(_, ...) return module.snap(...) end}) + +-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/lib/gears/geometry.lua b/lib/gears/geometry.lua index a429abd82..2b1f20487 100644 --- a/lib/gears/geometry.lua +++ b/lib/gears/geometry.lua @@ -238,3 +238,5 @@ function gears.geometry.rectangle.area_remove(areas, elem) end return gears.geometry + +-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80