From: Dima Kogan <lists@dima.secretsauce.net>
To: Ivan Andrus <darthandrus@gmail.com>
Cc: Drew Adams <drew.adams@oracle.com>,
Emacs developers <emacs-devel@gnu.org>
Subject: Re: Syntax of "-" in shell-mode
Date: Thu, 07 Jul 2016 10:49:40 -0700 [thread overview]
Message-ID: <8760sh49u3.fsf@secretsauce.net> (raw)
In-Reply-To: <CA+R1CowR0DRTJj6Q9vz2+Jw=jj4_f8hq95pXxaGkSOtop-6WTg@mail.gmail.com>
Ivan Andrus <darthandrus@gmail.com> writes:
> On Fri, Jun 24, 2016 at 3:05 PM, Dima Kogan <lists@dima.secretsauce.net> wrote:
>
>> 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.
>
> I disagree. They are symbols, not words. I don't want forward-word to skip
> past dashes, that's a job for forward-sexp.
OK. So I lived with this for a while, using xxx-sexp functions to
interact with cmdline arguments in shell-mode. This works better than
xxx-word functions because of its handling of - as you said. But -sexp
functions treat . as a separator, so this still isn't ideal.
I think it would be useful to have something (-word, -sexp, whatever) be
able to operate on cmdline arguments in shell mode. Would it be more
acceptable to adjust the internals of -sexp instead of -word in this
context?
dima
next prev parent reply other threads:[~2016-07-07 17:49 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
2016-06-24 21:11 ` Drew Adams
2016-06-24 21:55 ` Ivan Andrus
2016-07-07 17:49 ` Dima Kogan [this message]
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=8760sh49u3.fsf@secretsauce.net \
--to=lists@dima.secretsauce.net \
--cc=darthandrus@gmail.com \
--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).