Mercurial > emacs
comparison man/programs.texi @ 71668:a745634e8067
*** empty log message ***
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Fri, 07 Jul 2006 15:26:26 +0000 |
parents | 77266daa9ec9 |
children | c7e4f78b81a6 8a8e69664178 |
comparison
equal
deleted
inserted
replaced
71667:a1e8435263b7 | 71668:a745634e8067 |
---|---|
947 | 947 |
948 Some major modes have special rules for aligning certain kinds of | 948 Some major modes have special rules for aligning certain kinds of |
949 comments in certain contexts. For example, in Lisp code, comments which | 949 comments in certain contexts. For example, in Lisp code, comments which |
950 start with two semicolons are indented as if they were lines of code, | 950 start with two semicolons are indented as if they were lines of code, |
951 instead of at the comment column. Comments which start with three | 951 instead of at the comment column. Comments which start with three |
952 semicolons are supposed to start at the left margin. Emacs understands | 952 semicolons are supposed to start at the left margin and are often used |
953 for sectioning purposes. Emacs understands | |
953 these conventions by indenting a double-semicolon comment using @key{TAB}, | 954 these conventions by indenting a double-semicolon comment using @key{TAB}, |
954 and by not changing the indentation of a triple-semicolon comment at all. | 955 and by not changing the indentation of a triple-semicolon comment at all. |
955 | 956 |
956 @example | 957 @example |
957 ;; This function is just an example. | 958 ;; This function is just an example. |
958 ;; Here either two or three semicolons are appropriate. | 959 ;;; Here either two or three semicolons are appropriate. |
959 (defun foo (x) | 960 (defun foo (x) |
960 ;;; And now, the first part of the function: | 961 ;;; And now, the first part of the function: |
961 ;; The following line adds one. | 962 ;; The following line adds one. |
962 (1+ x)) ; This line adds one. | 963 (1+ x)) ; This line adds one. |
963 @end example | 964 @end example |