From: Dima Kogan <lists@dima.secretsauce.net>
To: Drew Adams <drew.adams@oracle.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Syntax of "-" in shell-mode
Date: Fri, 24 Jun 2016 14:05:31 -0700 [thread overview]
Message-ID: <87wplecn6s.fsf@secretsauce.net> (raw)
In-Reply-To: <e09fd3aa-37fc-4d58-8e99-d30eb80551b8@default>
Drew Adams <drew.adams@oracle.com> writes:
>> 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.
>
> Maybe not so simple. A shell command can involve lots of stuff,
> including arguments to commands that use their own syntax (think
> `find').
Of course the true syntax depends on context, but in my experience, in
shell commands "-" is a word far more often than it isn't.
next prev parent reply other threads:[~2016-06-24 21:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-24 20:48 Syntax of "-" in shell-mode Dima Kogan
2016-06-24 20:58 ` Drew Adams
2016-06-24 21:05 ` Dima Kogan [this message]
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=87wplecn6s.fsf@secretsauce.net \
--to=lists@dima.secretsauce.net \
--cc=drew.adams@oracle.com \
--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).