From: Bruce Momjian Date: Thu, 7 Sep 2006 00:08:43 +0000 (+0000) Subject: Update emacs info for FAQ_DEV. X-Git-Tag: REL9_0_0~7103 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=c84db61c083d26dfed8feaaa582aab8c336c797e;p=pg-rex%2Fsyncrep.git Update emacs info for FAQ_DEV. Andrew Dunstan --- diff --git a/doc/FAQ_DEV b/doc/FAQ_DEV index 038db3ff75..983a086a34 100644 --- a/doc/FAQ_DEV +++ b/doc/FAQ_DEV @@ -1,7 +1,7 @@ Developer's Frequently Asked Questions (FAQ) for PostgreSQL - Last updated: Wed Sep 6 18:02:57 EDT 2006 + Last updated: Wed Sep 6 20:08:24 EDT 2006 Current maintainer: Bruce Momjian (bruce@momjian.us) @@ -277,9 +277,9 @@ General Questions applied to the distribution. This produces context diffs, which is our preferred format. - Our standard format is to indent each code level with one tab, where - each tab is four spaces. You will need to set your editor to display - tabs as four spaces: + Our standard format BSD style, with each level of code indented one + tab, where each tab is four spaces. You will need to set your editor + or file viewer to display tabs as four spaces: vi in ~/.exrc: set tabstop=4 set sw=4 @@ -287,40 +287,10 @@ General Questions more -x4 less: less -x4 - emacs: - M-x set-variable tab-width - - or - - (c-add-style "pgsql" - '("bsd" - (indent-tabs-mode . t) - (c-basic-offset . 4) - (tab-width . 4) - (c-offsets-alist . - ((case-label . +))) - ) - nil ) ; t = set this style, nil = don't - - (defun pgsql-c-mode () - (c-mode) - (c-set-style "pgsql") - ) - - and add this to your autoload list (modify file path in macro): - - (setq auto-mode-alist - (cons '("\\`/home/andrew/pgsql/.*\\.[chyl]\\'" . pgsql-c-mode) - auto-mode-alist)) - or - /* - * Local variables: - * tab-width: 4 - * c-indent-level: 4 - * c-basic-offset: 4 - * End: - */ + The tools directory of the latest sources contains sample settings + that can be used with the emacs, xemacs and vim editors, that assist + in keeping to PostgreSQL coding standards. pgindent will the format code by specifying flags to your operating system's utility indent. This article describes the value of a consistent coding style. diff --git a/doc/src/FAQ/FAQ_DEV.html b/doc/src/FAQ/FAQ_DEV.html index 4d7d9e34c2..5a99a0badc 100644 --- a/doc/src/FAQ/FAQ_DEV.html +++ b/doc/src/FAQ/FAQ_DEV.html @@ -13,7 +13,7 @@

Developer's Frequently Asked Questions (FAQ) for PostgreSQL

-

Last updated: Wed Sep 6 18:02:57 EDT 2006

+

Last updated: Wed Sep 6 20:08:24 EDT 2006

Current maintainer: Bruce Momjian (bruce@momjian.us)
@@ -357,9 +357,9 @@ can be applied to the distribution. This produces context diffs, which is our preferred format.

-

Our standard format is to indent each code level with one tab, - where each tab is four spaces. You will need to set your editor to - display tabs as four spaces:
+

Our standard format BSD style, with each level of code indented + one tab, where each tab is four spaces. You will need to set your editor + or file viewer to display tabs as four spaces:

     vi in ~/.exrc:
@@ -369,40 +369,11 @@
             more -x4
     less:
             less -x4
-    emacs:
-        M-x set-variable tab-width
-
-        or
-
-        (c-add-style "pgsql"
-                '("bsd"
-                        (indent-tabs-mode . t)
-                        (c-basic-offset   . 4)
-                        (tab-width . 4)
-                        (c-offsets-alist .
-                                ((case-label . +)))
-                )
-                nil ) ; t = set this style, nil = don't
-
-        (defun pgsql-c-mode ()
-                (c-mode)
-                (c-set-style "pgsql")
-        )
-
-        and add this to your autoload list (modify file path in macro):
-
-        (setq auto-mode-alist
-                (cons '("\\`/home/andrew/pgsql/.*\\.[chyl]\\'" . pgsql-c-mode)
-                auto-mode-alist))
-        or
-            /*
-             * Local variables:
-             *  tab-width: 4
-             *  c-indent-level: 4
-             *  c-basic-offset: 4
-             * End:
-             */
 
+

The tools directory of the latest sources contains sample + settings that can be used with the emacs, xemacs and vim + editors, that assist in keeping to PostgreSQL coding standards. +


pgindent will the format code by specifying flags to your operating system's utility indent. This