From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew Pennebaker Newsgroups: gmane.emacs.help Subject: Re: Can't insert curly brace for string interpolation in ruby-mode Date: Fri, 5 Apr 2013 20:43:13 -0400 Message-ID: References: <20130405235212.GA12605@hysteria.proulx.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae9399de32017c204d9a67db3 X-Trace: ger.gmane.org 1365278544 28562 80.91.229.3 (6 Apr 2013 20:02:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Apr 2013 20:02:24 +0000 (UTC) To: Emacs Help Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 06 22:02:27 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UOZJ5-0001KY-3F for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Apr 2013 22:01:47 +0200 Original-Received: from localhost ([::1]:46033 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOHED-0004Rl-RC for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Apr 2013 20:43:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOHE1-0004Rg-BV for help-gnu-emacs@gnu.org; Fri, 05 Apr 2013 20:43:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UOHDu-0000VS-OO for help-gnu-emacs@gnu.org; Fri, 05 Apr 2013 20:43:21 -0400 Original-Received: from mail-ie0-x235.google.com ([2607:f8b0:4001:c03::235]:46912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOHDu-0000VK-HY for help-gnu-emacs@gnu.org; Fri, 05 Apr 2013 20:43:14 -0400 Original-Received: by mail-ie0-f181.google.com with SMTP id 17so5037262iea.12 for ; Fri, 05 Apr 2013 17:43:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=z2JjCnVKhcwNZj6d07L3lPCYGAr6ZcxdxDUnl3ehdQ4=; b=KUoQRw3n+srsfw7ethVGpbGGyNVlsPY+uwBFTVXQMlvU+l8BP+q5hrR4AnWhjDVODR UWso159Dio9JajAtZ/Sqz6EUEKBmPv3IrtQ1wT/F9tX8vPrBgZE08fgBDKREM5QPccFe qdN3D+JYJEdxLpRkgcvDx4BBJZO3PIKJJPBETGn472ZqntPml1AhJDm1i3/HRXCzLZzz qCfvXkHXCUqb52y/0oamp+b8ume4PFcp22gjTWFs5Yy+siZHllB2ghM/LNyUWWFXafkU t1Z1KSeiykO0fzLWG0/dMoOEcjcqFJev+etVxKLQwBav+7t/aO0FPlip4XNLe0ZQkgrE LMfw== X-Received: by 10.50.236.100 with SMTP id ut4mr788638igc.86.1365208993892; Fri, 05 Apr 2013 17:43:13 -0700 (PDT) Original-Received: by 10.42.147.133 with HTTP; Fri, 5 Apr 2013 17:43:13 -0700 (PDT) In-Reply-To: <20130405235212.GA12605@hysteria.proulx.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::235 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90022 Archived-At: --14dae9399de32017c204d9a67db3 Content-Type: text/plain; charset=ISO-8859-1 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 " from Terminal.app, such that Emacs doesn't steal control over the terminal while it runs. Ordinarly, one would use "emacs &", 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 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 --14dae9399de32017c204d9a67db3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Good idea!

Unfortunately I haven&= #39;t been able to emacs -Q in Mac due to my poor setup. I can't even p= ass 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 <d= ir/file>" from Terminal.app, such that Emacs doesn't steal cont= rol over the terminal while it runs. Ordinarly, one would use "emacs &= lt;dir/file> &", but I like to close the terminal, and I don= 9;t want Emacs to die with it. So I use "open -a..."

The problem with this arrangement is that t= his doesn't allow command line options to be sent to Emacs. "open&= quot; provides --args, but I haven't been able to use it properly.


O= n Fri, Apr 5, 2013 at 7:52 PM, Bob Proulx <bob@proulx.com> wrot= e:
Andrew Pennebaker wrote: > Ruby uses the syntax "... #{expression}..." for string inter= polation. 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. =A0And with 23.4.1 too. =A0Wh= at
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 trie= d it with -Q?"

=A0 emacs -Q

Works for me.

Bob




--
Cheers,

Andrew Pennebaker
--14dae9399de32017c204d9a67db3--