help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't insert curly brace for string interpolation in ruby-mode


From: Bob Proulx
Subject: Re: Can't insert curly brace for string interpolation in ruby-mode
Date: Fri, 5 Apr 2013 21:21:37 -0600
User-agent: Mutt/1.5.21 (2010-09-15)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]