diff options
| author | Richard M. Stallman | 1990-12-10 03:02:52 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1990-12-10 03:02:52 +0000 |
| commit | a17f9e55b2b8868dcfe540b8bb51c43c17b8cd56 (patch) | |
| tree | 736d58aa2cf599801a52bdef3fd6dd79bbb0d4ae | |
| parent | 29975121ed73833df9696df91530e4718f19003e (diff) | |
| download | emacs-a17f9e55b2b8868dcfe540b8bb51c43c17b8cd56.tar.gz emacs-a17f9e55b2b8868dcfe540b8bb51c43c17b8cd56.zip | |
*** empty log message ***
| -rw-r--r-- | lisp/emacs-lisp/lisp.el | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/lisp/emacs-lisp/lisp.el b/lisp/emacs-lisp/lisp.el index 9cd267a76f4..5851e4f3ac5 100644 --- a/lisp/emacs-lisp/lisp.el +++ b/lisp/emacs-lisp/lisp.el | |||
| @@ -187,21 +187,17 @@ The defun marked is the one that contains point or follows point." | |||
| 187 | "Put parentheses around next ARG sexps. Leave point after open-paren. | 187 | "Put parentheses around next ARG sexps. Leave point after open-paren. |
| 188 | No argument is equivalent to zero: just insert () and leave point between." | 188 | No argument is equivalent to zero: just insert () and leave point between." |
| 189 | (interactive "P") | 189 | (interactive "P") |
| 190 | (if arg (skip-chars-forward " \t")) | 190 | (if arg (setq arg (prefix-numeric-value arg)) |
| 191 | (setq arg 0)) | ||
| 192 | (or (eq arg 0) (skip-chars-forward " \t")) | ||
| 191 | (and (memq (char-syntax (preceding-char)) '(?w ?_ ?\) )) | 193 | (and (memq (char-syntax (preceding-char)) '(?w ?_ ?\) )) |
| 192 | (insert " ")) | 194 | (insert " ")) |
| 193 | ; (or (memq (char-syntax (preceding-char)) '(?\ ?> ?\( )) | ||
| 194 | ; (insert " "))) | ||
| 195 | (insert ?\() | 195 | (insert ?\() |
| 196 | (save-excursion | 196 | (save-excursion |
| 197 | (if arg | 197 | (or (eq arg 0) (forward-sexp arg)) |
| 198 | (forward-sexp (prefix-numeric-value arg))) | ||
| 199 | (insert ?\)) | 198 | (insert ?\)) |
| 200 | ; (or (memq (char-syntax (following-char)) '(?\ ?> ?\( )) | 199 | (and (memq (char-syntax (following-char)) '(?w ?_ ?\( )) |
| 201 | ; (insert " ")) | 200 | (insert " ")))) |
| 202 | (and (memq (char-syntax (following-char)) '(?w ?_ ?\( )) | ||
| 203 | (insert " ")) | ||
| 204 | )) | ||
| 205 | 201 | ||
| 206 | (defun move-past-close-and-reindent () | 202 | (defun move-past-close-and-reindent () |
| 207 | "Move past next `)', delete indentation before it, then indent after it." | 203 | "Move past next `)', delete indentation before it, then indent after it." |