Show
Ignore:
Timestamp:
05/27/06 10:35:24 (2 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lisp/skeleton.el

    r4037 r4091  
    4040 
    4141 
    42 (defvar skeleton-transformation 'identity 
     42(defvar skeleton-transformation-function 'identity 
    4343  "*If non-nil, function applied to literal strings before they are inserted. 
    4444It should take strings and characters and return them transformed, or nil 
    4545which means no transformation. 
    4646Typical examples might be `upcase' or `capitalize'.") 
     47(defvaralias 'skeleton-transformation 'skeleton-transformation-function) 
    4748 
    4849; this should be a fourth argument to defvar 
    49 (put 'skeleton-transformation 'variable-interactive 
     50(put 'skeleton-transformation-function 'variable-interactive 
    5051     "aTransformation function: ") 
    5152 
     
    7677 
    7778;;;###autoload 
    78 (defvar skeleton-filter 'identity 
     79(defvar skeleton-filter-function 'identity 
    7980  "Function for transforming a skeleton proxy's aliases' variable value.") 
     81(defvaralias 'skeleton-filter 'skeleton-filter-function) 
    8082 
    8183(defvar skeleton-untabify t 
     
    158160Optional second argument STR may also be a string which will be the value 
    159161of `str' whereas the skeleton's interactor is then ignored." 
    160   (skeleton-insert (funcall skeleton-filter skeleton) 
     162  (skeleton-insert (funcall skeleton-filter-function skeleton) 
    161163                   ;; Pretend  C-x a e  passed its prefix arg to us 
    162164                   (if (or arg current-prefix-arg) 
     
    200202 
    201203If ELEMENT is a string or a character it gets inserted (see also 
    202 `skeleton-transformation').  Other possibilities are: 
     204`skeleton-transformation-function').  Other possibilities are: 
    203205 
    204206        \\n     go to next line and indent according to mode 
     
    361363          (delete-backward-char (- element))) 
    362364      (insert (if (not literal) 
    363                   (funcall skeleton-transformation element) 
     365                  (funcall skeleton-transformation-function element) 
    364366                element)))) 
    365367   ((or (eq element '\n)                        ; actually (eq '\n 'n) 
     
    465467 
    466468 
    467 (defvar skeleton-pair-filter (lambda () nil) 
     469(defvar skeleton-pair-filter-function (lambda () nil) 
    468470  "Attempt paired insertion if this function returns nil, before inserting. 
    469471This allows for context-sensitive checking whether pairing is appropriate.") 
     
    491493is visible the pair is wrapped around it depending on `skeleton-autowrap'. 
    492494Else, if `skeleton-pair-on-word' is non-nil or we are not before or inside a 
    493 word, and if `skeleton-pair-filter' returns nil, pairing is performed. 
     495word, and if `skeleton-pair-filter-function' returns nil, pairing is performed. 
    494496Pairing is also prohibited if we are right after a quoting character 
    495497such as backslash. 
     
    513515                   (or overwrite-mode 
    514516                       (if (not skeleton-pair-on-word) (looking-at "\\w")) 
    515                        (funcall skeleton-pair-filter)))) 
     517                       (funcall skeleton-pair-filter-function)))) 
    516518          (self-insert-command (prefix-numeric-value arg)) 
    517519        (skeleton-insert (cons nil skeleton) (if mark -1)))))) 
     
    527529;;  (make-local-variable 'skeleton-pair) 
    528530;;  (make-local-variable 'skeleton-pair-on-word) 
    529 ;;  (make-local-variable 'skeleton-pair-filter
     531;;  (make-local-variable 'skeleton-pair-filter-function
    530532;;  (make-local-variable 'skeleton-pair-alist) 
    531533;;  (setq major-mode 'mirror-mode 
     
    533535;;      skeleton-pair-on-word t 
    534536;;      ;; in the middle column insert one or none if odd window-width 
    535 ;;      skeleton-pair-filter (lambda () 
     537;;      skeleton-pair-filter-function (lambda () 
    536538;;                             (if (>= (current-column) 
    537539;;                                     (/ (window-width) 2))