From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: Re: Can't insert curly brace for string interpolation in ruby-mode Date: Fri, 5 Apr 2013 21:21:37 -0600 Message-ID: <20130406032137.GA780@hysteria.proulx.com> References: <20130405235212.GA12605@hysteria.proulx.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1365278514 28154 80.91.229.3 (6 Apr 2013 20:01:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Apr 2013 20:01:54 +0000 (UTC) To: Andrew Pennebaker , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 06 22:01:54 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 1UOZIx-0007UX-Vn for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Apr 2013 22:01:40 +0200 Original-Received: from localhost ([::1]:48559 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOJhQ-00011a-Og for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Apr 2013 23:21:52 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOJhE-00011H-Vw for help-gnu-emacs@gnu.org; Fri, 05 Apr 2013 23:21:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UOJhD-0006gr-9G for help-gnu-emacs@gnu.org; Fri, 05 Apr 2013 23:21:40 -0400 Original-Received: from joseki.proulx.com ([216.17.153.58]:60343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOJhD-0006ga-1d for help-gnu-emacs@gnu.org; Fri, 05 Apr 2013 23:21:39 -0400 Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id F2DD3211DA; Fri, 5 Apr 2013 21:21:37 -0600 (MDT) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id A22552DC3E; Fri, 5 Apr 2013 21:21:37 -0600 (MDT) Mail-Followup-To: Andrew Pennebaker , "help-gnu-emacs@gnu.org" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 216.17.153.58 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:90017 Archived-At: 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