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>
Subject: Re: Can't insert curly brace for string interpolation in ruby-mode
Date: Fri, 5 Apr 2013 20:45:58 -0500	[thread overview]
Message-ID: <CACeWA3j+OHraGCtJ-vWi-Jd8Y6H3przDBe8k47_217CDw1rSoQ@mail.gmail.com> (raw)
In-Reply-To: <CAHXt_SU-huJs5QVe39OBspA5_YVwSanKu3U_KWBrcDhfawBf3Q@mail.gmail.com>

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

No, `open` works fine for this. Look again at the man page. It doesn't
expect a binary like you were passing it (Contents/MacOS/Emacs). Instead
you just pass it the name of an app bundle. The command I sent to you in
the last email works perfectly.

-Steven


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

> Thank you.
>
> I did use the man page, and I did try --args, but open complained. Could
> you suggest a better shell script?
> On Apr 5, 2013 9:07 PM, "Steven Degutis" <sbdegutis@gmail.com> wrote:
>
>> First of all I highly recommend installing Cocoa Emacs from homebrew.
>> Look here for how to install it properly:
>> https://github.com/sdegutis/using-emacs#installing-emacs-properly
>>
>> Secondly, you pass args to open via --args (look at `man open`). So it
>> would be `open -a emacs --args -Q` if you want to launch Cocoa Emacs with -Q
>>
>> -Steven
>>
>>
>> On Fri, Apr 5, 2013 at 7:43 PM, Andrew Pennebaker <
>> andrew.pennebaker@gmail.com> wrote:
>>
>>> Good idea!
>>>
>>> Unfortunately I haven't been able to emacs -Q in Mac due to my poor
>>> setup. I can't even pass the option!
>>>
>>> Could someone suggest a better way to do this?
>>>
>>> $ which emacs
>>> /usr/bin/emacs
>>>
>>> $ cat `which emacs`
>>> #!/bin/sh
>>> open -a /Applications/Emacs.app/Contents/MacOS/Emacs "$@"
>>>
>>> My goal is to be able to launch "emacs <dir/file>" from Terminal.app,
>>> such that Emacs doesn't steal control over the terminal while it runs.
>>> Ordinarly, one would use "emacs <dir/file> &", but I like to close the
>>> terminal, and I don't want Emacs to die with it. So I use "open -a..."
>>>
>>> The problem with this arrangement is that this doesn't allow command
>>> line options to be sent to Emacs. "open" provides --args, but I haven't
>>> been able to use it properly.
>>>
>>>
>>> On Fri, Apr 5, 2013 at 7:52 PM, Bob Proulx <bob@proulx.com> wrote:
>>>
>>>> Andrew Pennebaker wrote:
>>>> > Ruby uses the syntax "... #{expression}..." for string interpolation.
>>>> But
>>>> > when I press left curly brace, Emacs says "Symbol's value as variable
>>>> is
>>>> > void: last-command-char".
>>>>
>>>> This works fine for me in emacs 24.2.1.  And with 23.4.1 too.  What
>>>> version are you using?
>>>>
>>>> > I C-h k {, and saw that { and } are bound to ruby-electric-brace.
>>>>
>>>> Same here.
>>>>
>>>> > This function appears to be malfunctioning.
>>>>
>>>> You didn't say so the obligatory response is, "Have you tried it with
>>>> -Q?"
>>>>
>>>>   emacs -Q
>>>>
>>>> Works for me.
>>>>
>>>> Bob
>>>>
>>>>
>>>
>>>
>>> --
>>> Cheers,
>>>
>>> Andrew Pennebaker
>>> www.yellosoft.us
>>>
>>
>>

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

  parent reply	other threads:[~2013-04-06  1:45 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 [this message]
     [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
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=CACeWA3j+OHraGCtJ-vWi-Jd8Y6H3przDBe8k47_217CDw1rSoQ@mail.gmail.com \
    --to=sbdegutis@gmail.com \
    --cc=andrew.pennebaker@gmail.com \
    --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.