Mercurial > hg > xemacs-beta
diff lisp/modes/scribe.el @ 189:489f57a838ef r20-3b21
Import from CVS: tag r20-3b21
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:57:07 +0200 |
parents | 376386a54a3c |
children |
line wrap: on
line diff
--- a/lisp/modes/scribe.el Mon Aug 13 09:56:30 2007 +0200 +++ b/lisp/modes/scribe.el Mon Aug 13 09:57:07 2007 +0200 @@ -3,7 +3,7 @@ ;; Copyright (C) 1985 Free Software Foundation, Inc. -;; This file might become part of GNU Emacs. +;; This file is part of XEmacs. ;; GNU Emacs is distributed in the hope that it will be useful, ;; but without any warranty. No author or distributor @@ -19,6 +19,10 @@ ;; It should be in a file named COPYING. Among other things, the ;; copyright notice and this notice must be preserved on all copies. +(defgroup scribe nil + "Scribe mode, and its idiosyncratic commands." + :group 'wp) + (defvar scribe-mode-syntax-table nil "Syntax table used while in scribe mode.") @@ -26,15 +30,21 @@ (defvar scribe-mode-abbrev-table nil "Abbrev table used while in scribe mode.") -(defvar scribe-fancy-paragraphs nil - "*Non-NIL makes Scribe mode use a different style of paragraph separation.") +(defcustom scribe-fancy-paragraphs nil + "*Non-NIL makes Scribe mode use a different style of paragraph separation." + :type 'boolean + :group 'scribe) -(defvar scribe-electric-quote nil - "*Non-NIL makes insert of double quote use `` or '' depending on context.") +(defcustom scribe-electric-quote nil + "*Non-NIL makes insert of double quote use `` or '' depending on context." + :type 'boolean + :group 'scribe) -(defvar scribe-electric-parenthesis nil +(defcustom scribe-electric-parenthesis nil "*Non-NIL makes parenthesis char ( (]}> ) automatically insert its close -if typed after an @Command form.") +if typed after an @Command form." + :type 'boolean + :group 'scribe) (defconst scribe-open-parentheses "[({<" "Open parenthesis characters for Scribe.") @@ -150,7 +160,7 @@ "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) + (let ((spos (point)) (epos (point)) (ccoun 0)) (if (not (zerop count)) (progn (if (= (char-syntax (preceding-char)) ?w) (forward-sexp (min -1 count)))