diff options
| author | Richard M. Stallman | 1993-06-16 19:34:11 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-06-16 19:34:11 +0000 |
| commit | 78e367e9aebaf66cb2addfa1cb9487c647215a89 (patch) | |
| tree | 730f7add379f7154e9690e1985940d4738c5da19 | |
| parent | 5bd65b3b64557839f85ec70762c561b184618b28 (diff) | |
| download | emacs-78e367e9aebaf66cb2addfa1cb9487c647215a89.tar.gz emacs-78e367e9aebaf66cb2addfa1cb9487c647215a89.zip | |
(parens-require-spaces): Var renamed and sense changed.
(insert-parentheses): Corresponding changes.
| -rw-r--r-- | lisp/emacs-lisp/lisp.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/lisp.el b/lisp/emacs-lisp/lisp.el index 57e397df663..12da5f2adb5 100644 --- a/lisp/emacs-lisp/lisp.el +++ b/lisp/emacs-lisp/lisp.el | |||
| @@ -30,8 +30,8 @@ | |||
| 30 | (defvar defun-prompt-regexp nil | 30 | (defvar defun-prompt-regexp nil |
| 31 | "Non-nil => regexp to ignore, before the `(' that starts a defun.") | 31 | "Non-nil => regexp to ignore, before the `(' that starts a defun.") |
| 32 | 32 | ||
| 33 | (defvar parens-dont-require-spaces nil | 33 | (defvar parens-require-spaces t |
| 34 | "Non-nil => `insert-parentheses' should not insert whitespace.") | 34 | "Non-nil => `insert-parentheses' should insert whitespace as needed.") |
| 35 | 35 | ||
| 36 | (defun forward-sexp (&optional arg) | 36 | (defun forward-sexp (&optional arg) |
| 37 | "Move forward across one balanced expression (sexp). | 37 | "Move forward across one balanced expression (sexp). |
| @@ -205,14 +205,14 @@ depending on the surrounding characters." | |||
| 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 (not parens-dont-require-spaces) | 208 | (and parens-require-spaces |
| 209 | (memq (char-syntax (preceding-char)) '(?w ?_ ?\) )) | 209 | (memq (char-syntax (preceding-char)) '(?w ?_ ?\) )) |
| 210 | (insert " ")) | 210 | (insert " ")) |
| 211 | (insert ?\() | 211 | (insert ?\() |
| 212 | (save-excursion | 212 | (save-excursion |
| 213 | (or (eq arg 0) (forward-sexp arg)) | 213 | (or (eq arg 0) (forward-sexp arg)) |
| 214 | (insert ?\)) | 214 | (insert ?\)) |
| 215 | (and (not parens-dont-require-spaces) | 215 | (and parens-require-spaces |
| 216 | (memq (char-syntax (following-char)) '(?w ?_ ?\( )) | 216 | (memq (char-syntax (following-char)) '(?w ?_ ?\( )) |
| 217 | (insert " ")))) | 217 | (insert " ")))) |
| 218 | 218 | ||