Function: sh-modify

sh-modify is a byte-compiled function defined in sh-script.el.gz.

Signature

(sh-modify SKELETON &rest LIST)

Documentation

Modify a copy of SKELETON by replacing I1 with REPL1, I2 with REPL2 ...

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/sh-script.el.gz
(defun sh-modify (skeleton &rest list)
  "Modify a copy of SKELETON by replacing I1 with REPL1, I2 with REPL2 ..."
  (setq skeleton (copy-sequence skeleton))
  (while list
    (setcar (or (nthcdr (car list) skeleton)
		(error "Index %d out of bounds" (car list)))
	    (car (cdr list)))
    (setq list (nthcdr 2 list)))
  skeleton)