Commit 6696af65 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(insert-parentheses): Don't insert spaces at beginning and end of buffer.

parent 973e8873
......@@ -218,6 +218,7 @@ before and after, depending on the surrounding characters."
(setq arg 0))
(or (eq arg 0) (skip-chars-forward " \t"))
(and parens-require-spaces
(not (bobp))
(memq (char-syntax (preceding-char)) '(?w ?_ ?\) ))
(insert " "))
(insert ?\()
......@@ -225,6 +226,7 @@ before and after, depending on the surrounding characters."
(or (eq arg 0) (forward-sexp arg))
(insert ?\))
(and parens-require-spaces
(not (eobp))
(memq (char-syntax (following-char)) '(?w ?_ ?\( ))
(insert " "))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment