From: Lars Ingebrigtsen <larsi@gnus.org>
To: Paul Nienaber <phox@phox.ca>
Cc: 3226@debbugs.gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>
Subject: bug#3226: here-document syntax inference and completion is broken
Date: Wed, 16 Oct 2019 03:40:45 +0200 [thread overview]
Message-ID: <87wod5o4bm.fsf@gnus.org> (raw)
In-Reply-To: <CA+4zw95g9DaFYhSbTStieoiM3XxKk5iPvbWbCzsjSony3hdwdA@mail.gmail.com> (Paul Nienaber's message of "Tue, 15 Oct 2019 15:09:18 -0700")
Paul Nienaber <phox@phox.ca> writes:
> While I use here-strings more than here-docs by a huge margin I would
> also like to not negatively impact people using the former a lot, so
> in light of that I'd like to suggest going with Stefan's suggestion,
> importantly because it's also totally valid to trip on '<<-' and
> '<<[A-Za-z]', whereas here-strings are always only '<<<'. Also
> '<<EOF' is the overwhelmingly more common form that I see vs '<< EOF'.
The additional wrinkle here is that sh-mode will insert the
sh-here-document-word when expanding.
So if the user types <<X, what should that be expanded to? Just
appending EOF would be bad, and replacing the X with EOF would be bad,
and expanding to
foo <<X
X
would be bad, and prompting for what to expand to would be pretty
pointless, too.
I guess is "X" is "E", then expanding to
foo <<EOF
EOF
would be nice, though. I think I'll add that.
But I didn't see any way to make the <<[^<] thing work in any intuitive
way. If anybody has an idea here, I'm all ears.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2019-10-16 1:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-05 22:15 bug#3226: here-document syntax inference and completion is broken Paul Nienaber
2009-05-06 3:36 ` Stefan Monnier
2019-10-11 19:38 ` Lars Ingebrigtsen
2019-10-15 22:09 ` Paul Nienaber
2019-10-16 1:40 ` Lars Ingebrigtsen [this message]
2019-10-16 6:04 ` Paul Nienaber
2019-10-16 7:20 ` Lars Ingebrigtsen
2019-10-16 12:43 ` Stefan Monnier
-- strict thread matches above, loose matches on Subject: below --
2009-08-16 14:09 Chong Yidong
2016-01-26 5:15 ` Andrew Hyatt
2016-02-14 14:44 ` Philipp Stephani
2016-03-27 19:56 ` Mark Oteiza
2016-03-27 22:43 ` Stefan Monnier
2016-04-16 18:49 ` Mark Oteiza
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=87wod5o4bm.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=3226@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=phox@phox.ca \
/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.