aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/emacs-lisp/lisp.el8
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