From 0c0a0c66e2b042b06e8f397d473bfd776b696106 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Tue, 29 Sep 2009 15:08:01 -0400 Subject: [PATCH] Add emacs mode-lines to ST sources To each .c and .h file, add: /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ 'gnu' is the default anyways for Emacs, but indent-tabs-mode is not, so this sets things up to correspond to the policy of no-tabs. http://bugzilla.moblin.org/show_bug.cgi?id=6467 --- src/st/st-adjustment.c | 1 + src/st/st-adjustment.h | 1 + src/st/st-bin.c | 1 + src/st/st-bin.h | 1 + src/st/st-box-layout-child.c | 1 + src/st/st-box-layout-child.h | 1 + src/st/st-box-layout.c | 1 + src/st/st-box-layout.h | 1 + src/st/st-button.c | 1 + src/st/st-button.h | 1 + src/st/st-clipboard.c | 1 + src/st/st-clipboard.h | 1 + src/st/st-entry.c | 1 + src/st/st-entry.h | 1 + src/st/st-label.c | 1 + src/st/st-label.h | 1 + src/st/st-private.c | 1 + src/st/st-private.h | 1 + src/st/st-scroll-bar.c | 1 + src/st/st-scroll-bar.h | 1 + src/st/st-scroll-view.c | 1 + src/st/st-scroll-view.h | 1 + src/st/st-scrollable.c | 1 + src/st/st-scrollable.h | 1 + src/st/st-stylable.c | 1 + src/st/st-stylable.h | 1 + src/st/st-style.c | 1 + src/st/st-style.h | 1 + src/st/st-subtexture.c | 1 + src/st/st-subtexture.h | 1 + src/st/st-texture-cache.c | 1 + src/st/st-texture-cache.h | 1 + src/st/st-texture-frame.c | 1 + src/st/st-texture-frame.h | 1 + src/st/st-tooltip.c | 1 + src/st/st-tooltip.h | 1 + src/st/st-types.h | 1 + src/st/st-widget.c | 1 + src/st/st-widget.h | 1 + 39 files changed, 39 insertions(+) diff --git a/src/st/st-adjustment.c b/src/st/st-adjustment.c index a2c2af14a..0a6817824 100644 --- a/src/st/st-adjustment.c +++ b/src/st/st-adjustment.c @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-adjustment.c: Adjustment object * diff --git a/src/st/st-adjustment.h b/src/st/st-adjustment.h index 179ea915a..b816191e5 100644 --- a/src/st/st-adjustment.h +++ b/src/st/st-adjustment.h @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-adjustment.h: Adjustment object * diff --git a/src/st/st-bin.c b/src/st/st-bin.c index 6ae322cf8..bc3eecbaf 100644 --- a/src/st/st-bin.c +++ b/src/st/st-bin.c @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-bin.c: Basic container actor * diff --git a/src/st/st-bin.h b/src/st/st-bin.h index 68fed603c..8e671a0ba 100644 --- a/src/st/st-bin.h +++ b/src/st/st-bin.h @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-bin.h: Basic container actor * diff --git a/src/st/st-box-layout-child.c b/src/st/st-box-layout-child.c index f1d995321..cee0b785d 100644 --- a/src/st/st-box-layout-child.c +++ b/src/st/st-box-layout-child.c @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-box-layout-child.c: box layout child actor * diff --git a/src/st/st-box-layout-child.h b/src/st/st-box-layout-child.h index ec1d19967..aa8051a68 100644 --- a/src/st/st-box-layout-child.h +++ b/src/st/st-box-layout-child.h @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-box-layout-child.h: box layout child actor * diff --git a/src/st/st-box-layout.c b/src/st/st-box-layout.c index f6fb76fe7..c9ee6e79c 100644 --- a/src/st/st-box-layout.c +++ b/src/st/st-box-layout.c @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-box-layout.h: box layout actor * diff --git a/src/st/st-box-layout.h b/src/st/st-box-layout.h index 7a1217476..f7ad946b3 100644 --- a/src/st/st-box-layout.h +++ b/src/st/st-box-layout.h @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-box-layout.h: box layout actor * diff --git a/src/st/st-button.c b/src/st/st-button.c index 0f8c5131c..c17a48583 100644 --- a/src/st/st-button.c +++ b/src/st/st-button.c @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-button.c: Plain button actor * diff --git a/src/st/st-button.h b/src/st/st-button.h index c09a04aa1..615a216de 100644 --- a/src/st/st-button.h +++ b/src/st/st-button.h @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-button.h: Plain button actor * diff --git a/src/st/st-clipboard.c b/src/st/st-clipboard.c index d166a86fe..4fd75dbdb 100644 --- a/src/st/st-clipboard.c +++ b/src/st/st-clipboard.c @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-clipboard.c: clipboard object * diff --git a/src/st/st-clipboard.h b/src/st/st-clipboard.h index b1751a3a8..7b687d589 100644 --- a/src/st/st-clipboard.h +++ b/src/st/st-clipboard.h @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-clipboard.h: clipboard object * diff --git a/src/st/st-entry.c b/src/st/st-entry.c index 77816911f..f22562576 100644 --- a/src/st/st-entry.c +++ b/src/st/st-entry.c @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-entry.c: Plain entry actor * diff --git a/src/st/st-entry.h b/src/st/st-entry.h index 5f9ff18ad..bf14dcd6b 100644 --- a/src/st/st-entry.h +++ b/src/st/st-entry.h @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-entry.h: Plain entry actor * diff --git a/src/st/st-label.c b/src/st/st-label.c index 6d1151f96..0701a0b35 100644 --- a/src/st/st-label.c +++ b/src/st/st-label.c @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-label.c: Plain label actor * diff --git a/src/st/st-label.h b/src/st/st-label.h index fe9985ab1..934a49420 100644 --- a/src/st/st-label.h +++ b/src/st/st-label.h @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-label.h: Plain label actor * diff --git a/src/st/st-private.c b/src/st/st-private.c index 0a35e4efa..7332e122a 100644 --- a/src/st/st-private.c +++ b/src/st/st-private.c @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ #include "st-private.h" /* Utility function to modify a child allocation box with respect to the diff --git a/src/st/st-private.h b/src/st/st-private.h index 1e99cf695..34ef85e74 100644 --- a/src/st/st-private.h +++ b/src/st/st-private.h @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-private.h: Private declarations * diff --git a/src/st/st-scroll-bar.c b/src/st/st-scroll-bar.c index 414c6e685..5e33d4308 100644 --- a/src/st/st-scroll-bar.c +++ b/src/st/st-scroll-bar.c @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-scroll-bar.c: Scroll bar actor * diff --git a/src/st/st-scroll-bar.h b/src/st/st-scroll-bar.h index 33adc037d..07bf94d16 100644 --- a/src/st/st-scroll-bar.h +++ b/src/st/st-scroll-bar.h @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-scroll-bar.h: Scroll bar actor * diff --git a/src/st/st-scroll-view.c b/src/st/st-scroll-view.c index c6c64b3ce..17c31e24a 100644 --- a/src/st/st-scroll-view.c +++ b/src/st/st-scroll-view.c @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-scroll-view.h: Container with scroll-bars * diff --git a/src/st/st-scroll-view.h b/src/st/st-scroll-view.h index 774fc05fd..dccc7999b 100644 --- a/src/st/st-scroll-view.h +++ b/src/st/st-scroll-view.h @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-scroll-view.h: Container with scroll-bars * diff --git a/src/st/st-scrollable.c b/src/st/st-scrollable.c index 384ac4b6b..acf5ec584 100644 --- a/src/st/st-scrollable.c +++ b/src/st/st-scrollable.c @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-scrollable.c: Scrollable interface * diff --git a/src/st/st-scrollable.h b/src/st/st-scrollable.h index f62d02fe6..22884eb15 100644 --- a/src/st/st-scrollable.h +++ b/src/st/st-scrollable.h @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-scrollable.h: Scrollable interface * diff --git a/src/st/st-stylable.c b/src/st/st-stylable.c index 6d23deeda..35e5e647c 100644 --- a/src/st/st-stylable.c +++ b/src/st/st-stylable.c @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-stylable.c: Interface for stylable objects * diff --git a/src/st/st-stylable.h b/src/st/st-stylable.h index b00a2ba97..fe88b2088 100644 --- a/src/st/st-stylable.h +++ b/src/st/st-stylable.h @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-stylable.h: Interface for stylable objects * diff --git a/src/st/st-style.c b/src/st/st-style.c index 3e9619a66..d599bb6e8 100644 --- a/src/st/st-style.c +++ b/src/st/st-style.c @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * Copyright 2009 Intel Corporation. * diff --git a/src/st/st-style.h b/src/st/st-style.h index ce63a2a92..7773905e1 100644 --- a/src/st/st-style.h +++ b/src/st/st-style.h @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * Copyright 2009 Intel Corporation. * diff --git a/src/st/st-subtexture.c b/src/st/st-subtexture.c index 1bcd896c9..0f3481408 100644 --- a/src/st/st-subtexture.c +++ b/src/st/st-subtexture.c @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-subtexture.h: Class to wrap a texture and "subframe" it. * based on diff --git a/src/st/st-subtexture.h b/src/st/st-subtexture.h index ce9c10eab..d038ca98e 100644 --- a/src/st/st-subtexture.h +++ b/src/st/st-subtexture.h @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-subtexture.h: Class to wrap a texture and "subframe" it. * diff --git a/src/st/st-texture-cache.c b/src/st/st-texture-cache.c index dea1beeaa..6fca08dd7 100644 --- a/src/st/st-texture-cache.c +++ b/src/st/st-texture-cache.c @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-widget.h: Base class for St actors * diff --git a/src/st/st-texture-cache.h b/src/st/st-texture-cache.h index b3da32e68..ea299a035 100644 --- a/src/st/st-texture-cache.h +++ b/src/st/st-texture-cache.h @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-texture-cache.h: Cached textures object * diff --git a/src/st/st-texture-frame.c b/src/st/st-texture-frame.c index 916216934..45b4bf9d2 100644 --- a/src/st/st-texture-frame.c +++ b/src/st/st-texture-frame.c @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-texture-frame.h: Expandible texture actor * diff --git a/src/st/st-texture-frame.h b/src/st/st-texture-frame.h index 240a1c0fb..a4e4463a6 100644 --- a/src/st/st-texture-frame.h +++ b/src/st/st-texture-frame.h @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-texture-frame.h: Expandible texture actor * diff --git a/src/st/st-tooltip.c b/src/st/st-tooltip.c index 5070945c6..2ba9b414c 100644 --- a/src/st/st-tooltip.c +++ b/src/st/st-tooltip.c @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-tooltip.c: Plain tooltip actor * diff --git a/src/st/st-tooltip.h b/src/st/st-tooltip.h index b2cef3e8c..ab7b943b8 100644 --- a/src/st/st-tooltip.h +++ b/src/st/st-tooltip.h @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-tooltip.h: Plain tooltip actor * diff --git a/src/st/st-types.h b/src/st/st-types.h index 204994585..ab775ed09 100644 --- a/src/st/st-types.h +++ b/src/st/st-types.h @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * Copyright 2009 Intel Corporation. * diff --git a/src/st/st-widget.c b/src/st/st-widget.c index a27d9d0d6..eb7a08059 100644 --- a/src/st/st-widget.c +++ b/src/st/st-widget.c @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-widget.c: Base class for St actors * diff --git a/src/st/st-widget.h b/src/st/st-widget.h index 1c5ee3697..c06cc4f8c 100644 --- a/src/st/st-widget.h +++ b/src/st/st-widget.h @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-widget.h: Base class for St actors *