comparison lisp/emacs-lisp/lisp.el @ 5838:1f201e9b48ff

(insert-parentheses): Doc mod.
author Karl Heuer <kwzh@gnu.org>
date Mon, 07 Feb 1994 22:57:35 +0000
parents e212a0863773
children 3faecbaa2d51
comparison
equal deleted inserted replaced
5837:fd1e2c6f7bf5 5838:1f201e9b48ff
197 (re-search-backward "^\n" (- (point) 1) t)) 197 (re-search-backward "^\n" (- (point) 1) t))
198 198
199 (defun insert-parentheses (arg) 199 (defun insert-parentheses (arg)
200 "Put parentheses around next ARG sexps. Leave point after open-paren. 200 "Put parentheses around next ARG sexps. Leave point after open-paren.
201 No argument is equivalent to zero: just insert `()' and leave point between. 201 No argument is equivalent to zero: just insert `()' and leave point between.
202 This command also sometimes inserts a space before and after, 202 If `parens-require-spaces' is non-nil, this command also inserts a space
203 depending on the surrounding characters." 203 before and after, depending on the surrounding characters."
204 (interactive "P") 204 (interactive "P")
205 (if arg (setq arg (prefix-numeric-value arg)) 205 (if arg (setq arg (prefix-numeric-value arg))
206 (setq arg 0)) 206 (setq arg 0))
207 (or (eq arg 0) (skip-chars-forward " \t")) 207 (or (eq arg 0) (skip-chars-forward " \t"))
208 (and parens-require-spaces 208 (and parens-require-spaces