From: Sam Steingold <sds@gnu.org>
To: Glenn Morris <rgm@gnu.org>
Cc: 16634@debbugs.gnu.org
Subject: bug#16634: 24.3.50; extra newline in skeleton {} in sh-mode
Date: Tue, 04 Feb 2014 17:40:16 -0500 [thread overview]
Message-ID: <m2bnym33jj.fsf@gnu.org> (raw)
In-Reply-To: <x2ob2nzh1o.fsf@fencepost.gnu.org> (Glenn Morris's message of "Mon, 03 Feb 2014 22:35:15 -0500")
> * 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.
next prev parent reply other threads:[~2014-02-04 22:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-03 17:53 bug#16634: 24.3.50; extra newline in skeleton {} in sh-mode Sam Steingold
2014-02-04 3:35 ` Glenn Morris
2014-02-04 22:40 ` Sam Steingold [this message]
2016-12-20 1:39 ` npostavs
2017-01-01 21:37 ` npostavs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2bnym33jj.fsf@gnu.org \
--to=sds@gnu.org \
--cc=16634@debbugs.gnu.org \
--cc=rgm@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.