all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Autogen in Emacs Shell
Date: Sat, 02 May 2015 09:31:06 +0300	[thread overview]
Message-ID: <83bni3qymt.fsf@gnu.org> (raw)
In-Reply-To: <CAKu-7Wx40CGXhK=LYPt1EaS7t5uDhpy4FVstOCnm445pVme0_g@mail.gmail.com>

> Date: Fri, 1 May 2015 21:46:53 +0200
> From: Alexander Shukaev <haroogan@gmail.com>
> Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
> 
>     > Those 3 newlines were really typed into the shell. How come?
>     
>     Now that we know that the contents of this file are sent as an input
>     string to the shell when it starts, what did you expect? The shell
>     gets 3 lines, each one of which is a comment, so it does nothing, but
>     displays the newline. What is surprising here?
>     
> 
> ​The point then is that this file actually does not serve its purpose. It does
> not behave as, for example, ".bashrc" does. In other words, one cannot simply
> write multiline shell code in there without experiencing this ugly side effect.

I think you can, just with little more creativity (see below), but why
would you want to?  You already have .bashrc, and can easily test that
you are running under Emacs, if that's the issue.  AFAIU, the
emacs_bash.sh file is supported for some very specialized situations,
and probably for Posix platforms, so I have hard time imagining why it
would be needed on Windows.

> I understand the problem here, but why not, for instance, concatenate lines
> with " ; " ​in order to make one line out of them​ before sending them to 'bash'?

For that, the code needs to be much smarter and understand the
semantics of the string it sends.  E.g., what if a line ends with a
backslash, or some other special character?

But you can do that yourself -- make only one line out of several.




      reply	other threads:[~2015-05-02  6:31 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-29  2:36 Autogen in Emacs Shell Alexander Shukaev
2015-04-29  8:31 ` tomas
2015-04-29 15:51 ` Eli Zaretskii
2015-04-30 18:14   ` Alexander Shukaev
2015-04-30 19:26     ` Eli Zaretskii
2015-04-30 19:44       ` Alexander Shukaev
2015-04-30 19:54         ` Eli Zaretskii
2015-05-01  9:26     ` tomas
2015-05-01 14:33       ` Alexander Shukaev
2015-05-01 14:46         ` Alexander Shukaev
2015-05-01 15:03         ` tomas
2015-05-01 16:08           ` Alexander Shukaev
2015-05-01 17:06             ` Alexander Shukaev
2015-05-01 17:49               ` Eli Zaretskii
2015-05-01 18:35                 ` Alexander Shukaev
2015-05-01 18:51                   ` Eli Zaretskii
2015-05-01 19:05                     ` Alexander Shukaev
2015-05-01 19:07                       ` Alexander Shukaev
2015-05-01 19:26                       ` Eli Zaretskii
2015-05-01 19:38                   ` Eli Zaretskii
2015-05-01 19:46                     ` Alexander Shukaev
2015-05-02  6:31                       ` Eli Zaretskii [this message]

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=83bni3qymt.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@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.