[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#16634: 24.3.50; extra newline in skeleton {} in sh-mode
From: |
Sam Steingold |
Subject: |
bug#16634: 24.3.50; extra newline in skeleton {} in sh-mode |
Date: |
Tue, 04 Feb 2014 17:40:16 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (darwin) |
> * Glenn Morris <etz@tah.bet> [2014-02-03 22:35:15 -0500]:
>
> Recipe from emacs -Q?
emacs -Q
Eval these:
(define-key global-map "{" 'skeleton-pair-insert-maybe)
(setq skeleton-pair t)
M-x sh-mode RET
insert:
foo bar
put the point between "foo" and " bar" (i.e., before SPC)
hit "{"
result: "{}\n" is inserted, the point is placed between the braces.
expected: "{}" is inserted, the point is placed between the braces.
--
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1265
http://www.childpsy.net/ http://pmw.org.il http://americancensorship.org
http://camera.org http://openvotingconsortium.org http://dhimmi.com
My inferiority complex is not as good as yours.