From: Dima Kogan <lists@dima.secretsauce.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Syntax of "-" in shell-mode
Date: Sat, 25 Jun 2016 00:12:54 -0700 [thread overview]
Message-ID: <87r3bld9mx.fsf@secretsauce.net> (raw)
In-Reply-To: <83h9ch21eq.fsf@gnu.org>
Eli Zaretskii <eliz@gnu.org> writes:
> If the problem is with transpose-words, then a possible solution might
> be a new shell-transpose-words command, which is smart enough to DTRT
> in these cases, at least as a user option? Would you like to propose
> such an addition to sh-script.el?
Now that I lived with this setting for a day, I don't think it's just
(transpose-words): "-" being a word character feels like the right thing
for shell commands. With that setting, the behavior of (forward-word)
and (backward-word) is much more pleasing as well. Arguments like a
standalone -- or - are treated like separate words, which is "right". If
you use shell-mode, try it:
(modify-syntax-entry ?- "w")
next prev parent reply other threads:[~2016-06-25 7:12 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
2016-06-25 7:06 ` Eli Zaretskii
2016-06-25 7:12 ` Dima Kogan [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r3bld9mx.fsf@secretsauce.net \
--to=lists@dima.secretsauce.net \
--cc=eliz@gnu.org \
--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 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.