all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Steven Degutis <sbdegutis@gmail.com>
To: Andrew Pennebaker <andrew.pennebaker@gmail.com>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>,
	david+emacsformacosx@porkrind.org
Subject: Re: Can't insert curly brace for string interpolation in ruby-mode
Date: Fri, 5 Apr 2013 23:39:56 -0500	[thread overview]
Message-ID: <CACeWA3ie31zkQ_RZNnu+83Z9qXgYvnmYf3BogDTtPt=YdnXK1w@mail.gmail.com> (raw)
In-Reply-To: <CAHXt_SVPUV9jAC0=oOAdoceDW3eBL+X9+PNf0OX9cvxQBqJ+Jw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2903 bytes --]

Your first two paragraphs reminded me of something:
http://media.tumblr.com/tumblr_lo3fy1mswH1qanohb.jpg

-Steven


On Fri, Apr 5, 2013 at 11:32 PM, Andrew Pennebaker <
andrew.pennebaker@gmail.com> wrote:

> With help from #macdev, I was finally able to write a more sophisticated
> Emacs shell script. If you download
> https://github.com/mcandre/dotfiles/blob/master/emacs.sh and soft link it
> as /usr/bin/emacs, it allows you to launch emacs from a terminal as a GUI
> app, or a pure command line ncurses app, by properly responding to the
> various emacs command line options.
>
> I'm fairly demanding of my programs, so I hassled a few communities to
> help the shell script meet a lot of constraints. The dependencies are Emacs
> for Mac OS X, bash, and Mac OS X, though conceivably the script could be
> ported to Aquamacs or Homebrew Emacs.
>
> The emacs shell script will work with a file to open, without a file to
> open, with and without other command line arguments such as -Q, --version,
> and --help, and files and command line flags can be passed to emacs in
> arbitrary order (${1+"$@"}).
>
> In GUI mode, Emacs will release control from the shell; you can keep
> entering commands in the terminal that Emacs was launched from without
> having to background the process with Control+Z. Emacs does not die with
> the shell, if you happen to close the terminal (nohup).
>
> Emacs will open in the foreground, not behind the terminal (osascript).
>
> Emacs will not interrupt your terminal experience with stdout messages (>
> /dev/null).
>
> If you do use the -nw flag, emacs will open inside the terminal in curses
> mode.
>
>
>
> On Fri, Apr 5, 2013 at 11:21 PM, Bob Proulx <bob@proulx.com> wrote:
>
>> Steven Degutis wrote:
>> > Andrew Pennebaker wrote:
>> > > When I try open -a emacs --args ${1+"$@"}, I have to choose either
>> open a
>> > > file, or provide a command line argument. I can't do both.
>> >
>> > (1) Yes, that's true. That's a limitation of emacs, not the open
>> command.
>> > Do `emacs --help`
>>
>> You should be able to do 'emacs -Q filename.rb' however.
>>
>> I see you using the old idiom ${1+"$@"}.  That is fine.  That will
>> work everywhere.  But unless you are working on Solaris then that
>> idiom can be shorted to simply "$@" without checking $1 first.  All
>> modern shells treat "$@" correctly now and it is required by POSIX.
>>
>> You have been focusing on trying to get the "open" to work.  But you
>> could just for the experiment try emacs in a terminal window and get
>> the test done.
>>
>>   emacs -nw -Q
>>
>> Just ignore the who "open" problem for the moment and just test
>> whether -Q causes your curly brace problem to go away.  Because if
>> it does then you now the problem is in your emacs customization in
>> your ~/.emacs or wherever you are locating it.
>>
>> Bob
>>
>
>
>
> --
> Cheers,
>
> Andrew Pennebaker
> www.yellosoft.us
>

[-- Attachment #2: Type: text/html, Size: 4241 bytes --]

  reply	other threads:[~2013-04-06  4:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-05 21:19 Can't insert curly brace for string interpolation in ruby-mode Andrew Pennebaker
2013-04-05 23:52 ` Bob Proulx
2013-04-06  0:43   ` Andrew Pennebaker
2013-04-06  1:07     ` Steven Degutis
     [not found]       ` <CAHXt_SU-huJs5QVe39OBspA5_YVwSanKu3U_KWBrcDhfawBf3Q@mail.gmail.com>
2013-04-06  1:45         ` Steven Degutis
     [not found]           ` <CAHXt_SUwwaTuj8=QL+AMvqvpAM2jELogUtbDxNPJQug6mCU0cQ@mail.gmail.com>
     [not found]             ` <CAHXt_SXwGNQKzRu-LBBvg2xNruBhyEnMKFMspDwVqdk4zL_RFg@mail.gmail.com>
2013-04-06  3:15               ` Steven Degutis
2013-04-06  3:21                 ` Bob Proulx
2013-04-06  4:32                   ` Andrew Pennebaker
2013-04-06  4:39                     ` Steven Degutis [this message]
2013-04-07  3:33 ` Zhen Sun

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='CACeWA3ie31zkQ_RZNnu+83Z9qXgYvnmYf3BogDTtPt=YdnXK1w@mail.gmail.com' \
    --to=sbdegutis@gmail.com \
    --cc=andrew.pennebaker@gmail.com \
    --cc=david+emacsformacosx@porkrind.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.