X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/8c74a125c85da08e34dceedb271b71b5f09ce690..32364bbbaa8bda68228a3b0191c0b340c252d2a2:/lisp/obsolete/scribe.el diff --git a/lisp/obsolete/scribe.el b/lisp/obsolete/scribe.el index 7ff944c14d..c354e65b9d 100644 --- a/lisp/obsolete/scribe.el +++ b/lisp/obsolete/scribe.el @@ -1,10 +1,10 @@ ;;; 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 @@ -50,7 +50,7 @@ :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) @@ -124,7 +124,7 @@ Interesting variables: 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 `([<{') @@ -144,7 +144,9 @@ Interesting variables: (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) @@ -263,8 +265,8 @@ to skip backward." (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")