X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/678fb7066698ebfe3aecba722294025ed26da01b..5109429f09110cd817d87e1c361ac66aaee28431:/lisp/skeleton.el diff --git a/lisp/skeleton.el b/lisp/skeleton.el index 0f28d32293..01288b8913 100644 --- a/lisp/skeleton.el +++ b/lisp/skeleton.el @@ -1,6 +1,6 @@ ;;; skeleton.el --- Lisp language extension for writing statement skeletons -*- coding: utf-8 -*- -;; Copyright (C) 1993-1996, 2001-2012 Free Software Foundation, Inc. +;; Copyright (C) 1993-1996, 2001-2013 Free Software Foundation, Inc. ;; Author: Daniel Pfeiffer ;; Maintainer: FSF @@ -37,7 +37,7 @@ (defvar skeleton-transformation-function 'identity - "*If non-nil, function applied to literal strings before they are inserted. + "If non-nil, function applied to literal strings before they are inserted. It should take strings and characters and return them transformed, or nil which means no transformation. Typical examples might be `upcase' or `capitalize'.") @@ -77,7 +77,7 @@ The variables `v1' and `v2' are still set when calling this.") "Function for transforming a skeleton proxy's aliases' variable value.") (defvaralias 'skeleton-filter 'skeleton-filter-function) -(defvar skeleton-untabify t +(defvar skeleton-untabify nil ; bug#12223 "When non-nil untabifies when deleting backwards with element -ARG.") (defvar skeleton-newline-indent-rigidly nil @@ -95,11 +95,11 @@ skeleton elements.") (defvar skeleton-subprompt (substitute-command-keys "RET, \\\\[abort-recursive-edit] or \\[help-command]") - "*Replacement for %s in prompts of recursive subskeletons.") + "Replacement for %s in prompts of recursive subskeletons.") (defvar skeleton-debug nil - "*If non-nil `define-skeleton' will override previous definition.") + "If non-nil `define-skeleton' will override previous definition.") (defvar skeleton-positions nil "List of positions marked with @, after skeleton insertion. @@ -121,7 +121,7 @@ are integer buffer positions in the reverse order of the insertion order.") "Define a user-configurable COMMAND that enters a statement skeleton. DOCUMENTATION is that of the command. SKELETON is as defined under `skeleton-insert'." - (declare (debug (&define name stringp skeleton-edebug-spec))) + (declare (doc-string 2) (debug (&define name stringp skeleton-edebug-spec))) (if skeleton-debug (set command skeleton)) `(progn @@ -456,7 +456,7 @@ automatically, and you are prompted to fill in the variable parts."))) ;; obarray ;; (lambda (symbol) ;; (or (eq symbol 'eval) -;; (user-variable-p symbol))) +;; (custom-variable-p symbol))) ;; t) ;; comment-start str ": " ;; (read-from-minibuffer "Expression: " nil read-expression-map nil @@ -468,13 +468,13 @@ automatically, and you are prompted to fill in the variable parts."))) ;; Variables and command for automatically inserting pairs like () or "". (defvar skeleton-pair nil - "*If this is nil pairing is turned off, no matter what else is set. + "If this is nil pairing is turned off, no matter what else is set. Otherwise modes with `skeleton-pair-insert-maybe' on some keys will attempt to insert pairs of matching characters.") (defvar skeleton-pair-on-word nil - "*If this is nil, paired insertion is inhibited before or inside a word.") + "If this is nil, paired insertion is inhibited before or inside a word.") (defvar skeleton-pair-filter-function (lambda () nil)