Mercurial > emacs
view lib-src/digest-doc.c @ 4157:d2316090d029
(prompt-for-change-log-name): Autoload this (for vc-comment-to-change-log).
(add-change-log-entry): Take optional fourth arg NEW-ENTRY. If non-nil,
never append to an existing entry.
(change-log-fill-paragraph): New function.
It might be nice to have a general feature to replace this. The idea I
have is a variable giving a regexp matching text which should not be
moved from bol by filling. change-log-mode would set this to "^\\s *\\s(".
But I don't feel up to implementing that today.
(change-log-mode-map): New defvar for keymap. Bind M-q to
change-log-fill-paragraph in it.
(change-log-mode): Use that as local map.
author | Roland McGrath <roland@gnu.org> |
---|---|
date | Mon, 19 Jul 1993 00:39:21 +0000 |
parents | bba832d91c66 |
children | dd3b83e4ceb0 |
line wrap: on
line source
/* Give this program DOCSTR.mm.nn as standard input and it outputs to standard output a file of nroff output containing the doc strings. See also sorted-doc.c, which produces similar output but in texinfo format and sorted by function/variable name. */ #include <stdio.h> main () { register int ch; register int notfirst = 0; printf (".TL\n"); printf ("Command Summary for GNU Emacs\n"); printf (".AU\nRichard M. Stallman\n"); while ((ch = getchar ()) != EOF) { if (ch == '\037') { if (notfirst) printf ("\n.DE"); else notfirst = 1; printf ("\n.SH\n"); ch = getchar (); printf (ch == 'F' ? "Function " : "Variable "); while ((ch = getchar ()) != '\n') /* Changed this line */ { if (ch != EOF) putchar (ch); else { ungetc (ch, stdin); break; } } printf ("\n.DS L\n"); } else putchar (ch); } return 0; }