;;; scribe.el --- scribe mode, and its idiosyncratic commands.
-;; Maintainer: FSF
-;; Last-Modified: 9 May 1991
-
;; Copyright (C) 1985 Free Software Foundation, Inc.
+;; Maintainer: FSF
+;; Keywords: wp
+
;; This file might become part of GNU Emacs.
;; GNU Emacs is distributed in the hope that it will be useful,
;; It should be in a file named COPYING. Among other things, the
;; copyright notice and this notice must be preserved on all copies.
+;;; Commentary:
+
+;; A major mode for editing source in written for the Scribe text formatter.
+;; Knows about Scribe syntax and standard layout rules. The command to
+;; run Scribe on a buffer is bogus; someone interested should fix it.
+
;;; Code:
(defvar scribe-mode-syntax-table nil
"Open parenthesis characters for Scribe.")
(defconst scribe-close-parentheses "])}>"
- "Close parenthesis characters for Scribe. These should match up with
-scribe-open-parenthesis.")
+ "Close parenthesis characters for Scribe.
+These should match up with `scribe-open-parenthesis'.")
(if (null scribe-mode-syntax-table)
(let ((st (syntax-table)))
(call-interactively 'compile))
(defun scribe-envelop-word (string count)
- "Surround current word with Scribe construct @STRING[...]. COUNT
-specifies how many words to surround. A negative count means to skip
-backward."
+ "Surround current word with Scribe construct @STRING[...].
+COUNT specifies how many words to surround. A negative count means
+to skip backward."
(let ((spos (point)) (epos (point)) (ccoun 0) noparens)
(if (not (zerop count))
(progn (if (= (char-syntax (preceding-char)) ?w)
(forward-char -1))
(defun scribe-insert-quote (count)
- "If scribe-electric-quote is non-NIL, insert ``, '' or \" according
+ "Insert ``, '' or \" according to preceding character.
+If `scribe-electric-quote' is non-NIL, insert ``, '' or \" according
to preceding character. With numeric arg N, always insert N \" characters.
Else just insert \"."
(interactive "P")