* elec-pair.el (electric-pair-post-self-insert-function): Don't
open extra newlines at beginning of buffer.
+2013-12-28 João Távora <joaotavora@gmail.com>
+
+ * elec-pair.el (electric-pair-post-self-insert-function): Don't
+ open extra newlines at beginning of buffer. (Bug#16272)
+
2013-12-28 Eli Zaretskii <eliz@gnu.org>
* frame.el (window-system-for-display): Don't allow to create a
(funcall electric-pair-open-newline-between-pairs)
electric-pair-open-newline-between-pairs)
(eq last-command-event ?\n)
- (not (eobp))
+ (< (1+ (point-min)) (point) (point-max))
(eq (save-excursion
(skip-chars-backward "\t\s")
(char-before (1- (point))))