From: Dima Kogan <lists@dima.secretsauce.net>
To: Emacs developers <emacs-devel@gnu.org>
Subject: Syntax of "-" in shell-mode
Date: Fri, 24 Jun 2016 13:48:38 -0700 [thread overview]
Message-ID: <87y45ucnyx.fsf@secretsauce.net> (raw)
Hi. What do people think about giving "-" a syntax of "word" in
shell-mode? The rationale is that in this mode one is generally editing
shell commands where "-" precedes commandline options, and strings such
as "--help" generally represent a single semantic token.
More specifically if I have something like "xxx --yyy" with the point in
the whitespace, and I invoke (transpose-words) I want the result to be
"--yyy xxx" and not "yyy --xxx". The latter means something very
different in a shell command.
dima
next reply other threads:[~2016-06-24 20:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-24 20:48 Dima Kogan [this message]
2016-06-24 20:58 ` Syntax of "-" in shell-mode Drew Adams
2016-06-24 21:05 ` Dima Kogan
2016-06-24 21:11 ` Drew Adams
2016-06-24 21:55 ` Ivan Andrus
2016-07-07 17:49 ` Dima Kogan
2016-06-25 7:06 ` Eli Zaretskii
2016-06-25 7:12 ` Dima Kogan
2016-06-25 7:27 ` Andreas Schwab
2016-06-25 8:27 ` Eli Zaretskii
2016-06-26 3:31 ` Dima Kogan
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y45ucnyx.fsf@secretsauce.net \
--to=lists@dima.secretsauce.net \
--cc=emacs-devel@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).