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 17:52:12 -0600 Message-ID: <20130405235212.GA12605@hysteria.proulx.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1365278671 30113 80.91.229.3 (6 Apr 2013 20:04:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Apr 2013 20:04:31 +0000 (UTC) To: 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:04:33 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 1UOZJ6-0007UX-Ve for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Apr 2013 22:01:49 +0200 Original-Received: from localhost ([::1]:40153 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOGQr-0003EE-Pw for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Apr 2013 19:52:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOGQb-0003B8-JO for help-gnu-emacs@gnu.org; Fri, 05 Apr 2013 19:52:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UOGQa-0002F5-4W for help-gnu-emacs@gnu.org; Fri, 05 Apr 2013 19:52:17 -0400 Original-Received: from joseki.proulx.com ([216.17.153.58]:59148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOGQZ-0002F1-Tv for help-gnu-emacs@gnu.org; Fri, 05 Apr 2013 19:52:16 -0400 Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 62779211DA for ; Fri, 5 Apr 2013 17:52:14 -0600 (MDT) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id 9C5A02DC3E; Fri, 5 Apr 2013 17:52:12 -0600 (MDT) Mail-Followup-To: 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:90025 Archived-At: 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