]> git.eshelyaron.com Git - emacs.git/commitdiff
(insert-parentheses): Don't insert spaces at beginning and end of buffer.
authorRichard M. Stallman <rms@gnu.org>
Thu, 22 Sep 1994 06:42:30 +0000 (06:42 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 22 Sep 1994 06:42:30 +0000 (06:42 +0000)
lisp/emacs-lisp/lisp.el

index 07a22698c6e7cce9b3333d0617b6f43f8156f794..fd9ae0c078a71935ae4fd078318cbc7b31e54723 100644 (file)
@@ -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 " "))))