;;; scribe.el --- scribe mode, and its idiosyncratic commands
-;; Copyright (C) 1985, 2001-2012 Free Software Foundation, Inc.
+;; Copyright (C) 1985, 2001-2016 Free Software Foundation, Inc.
;; Author: William Sommerfeld
;; (according to ack.texi)
-;; Maintainer: FSF
+;; Maintainer: emacs-devel@gnu.org
;; Keywords: wp
;; Obsolete-since: 22.1
:group 'scribe)
(defcustom scribe-electric-quote nil
- "Non-nil makes insert of double quote use `` or '' depending on context."
+ "Non-nil makes insert of double quote use \\=`\\=` or \\='\\=' depending on context."
:type 'boolean
:group 'scribe)
Non-nil makes Scribe mode use a different style of paragraph separation.
`scribe-electric-quote'
- Non-nil makes insert of double quote use `` or '' depending on context.
+ Non-nil makes insert of double quote use \\=`\\=` or \\='\\=' depending on context.
`scribe-electric-parenthesis'
Non-nil makes an open-parenthesis char (one of `([<{')
(set (make-local-variable 'sentence-end)
"\\([.?!]\\|@:\\)[]\"')}]*\\($\\| $\\|\t\\| \\)[ \t\n]*")
(set (make-local-variable 'compile-command)
- (concat "scribe " (buffer-file-name))))
+ (concat "scribe "
+ (if buffer-file-name
+ (shell-quote-argument (buffer-file-name))))))
(defun scribe-tab ()
(interactive)
(forward-char -1))
(defun scribe-insert-quote (count)
- "Insert ``, '' or \" according to preceding character.
-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")