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: Can't insert curly brace for string interpolation in ruby-mode Date: Fri, 5 Apr 2013 17:19:02 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae9399de3e5cd2f04d9a3a223 X-Trace: ger.gmane.org 1365278583 29011 80.91.229.3 (6 Apr 2013 20:03:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Apr 2013 20:03:03 +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:03:05 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 1UOZJB-0001Uu-FU for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Apr 2013 22:01:53 +0200 Original-Received: from localhost ([::1]:42931 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOE2h-0002jY-R4 for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Apr 2013 17:19:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOE2Q-0002Y3-EH for help-gnu-emacs@gnu.org; Fri, 05 Apr 2013 17:19:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UOE2J-0004g6-LG for help-gnu-emacs@gnu.org; Fri, 05 Apr 2013 17:19:10 -0400 Original-Received: from mail-ie0-x232.google.com ([2607:f8b0:4001:c03::232]:41317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOE2J-0004g0-Fm for help-gnu-emacs@gnu.org; Fri, 05 Apr 2013 17:19:03 -0400 Original-Received: by mail-ie0-f178.google.com with SMTP id bn7so4976717ieb.9 for ; Fri, 05 Apr 2013 14:19:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=d8jkVUQC9jMLG3DZU26EKgzkWHx/ySq+USy+bkny0TQ=; b=HSoKpLVcyFrbqF5YRrua1FssqSEYLU05P+9bUQJ3+pTPQVH5s2wiboKq7slio55ehd MjVIPGV56oTgGBKeBgIJ+AmHgQuZFLGJ+POtX4mjN4T5MqBtykXNmUGXVmsHJEpQd0Bc jRQbTaSABDO1vTmu6HtIhEool5L0ANkKJjY0sGZoKivvKXwgWAjAP/gWZUJwGp3O9znO 3ro1n5e6K1+wSw8Hnr4PlABWm73e2NK1RuxOaQkKXXb5irXJRCs97sx+/QiJuRL4C6sE +mRxxMBOc72dyL9ynjVmixLDCuAkJE22FyK41/ddBWbJQoIPRksAirdyI42CB9KwgEud CJzQ== X-Received: by 10.50.236.100 with SMTP id ut4mr463454igc.86.1365196742685; Fri, 05 Apr 2013 14:19:02 -0700 (PDT) Original-Received: by 10.42.147.133 with HTTP; Fri, 5 Apr 2013 14:19:02 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::232 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:90023 Archived-At: --14dae9399de3e5cd2f04d9a3a223 Content-Type: text/plain; charset=ISO-8859-1 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". I C-h k {, and saw that { and } are bound to ruby-electric-brace. This function appears to be malfunctioning. As a workaround, I M-x fundamental-mode, typed a literal { and }, then M-x ruby-mode. Doing this repeatedly became a hassle, so I added a temporary hook to my .emacs: (add-hook 'ruby-mode-hook (lambda () (define-key ruby-mode-map "{" nil) (define-key ruby-mode-map "}" nil))) Could someone take a look at ruby-electric-brace to determine the exact issue? -- Cheers, Andrew Pennebaker www.yellosoft.us --14dae9399de3e5cd2f04d9a3a223 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Ruby uses the syntax "... #{expression}..." for = string interpolation. But when I press left curly brace, Emacs says "S= ymbol's value as variable is void: last-command-char".

I C-h k {, and saw that { and } are bound to ruby-electric-brace. This= function appears to be malfunctioning.

As a workaro= und, I M-x fundamental-mode, typed a literal { and }, then M-x ruby-mode. D= oing this repeatedly became a hassle, so I added a temporary hook to my .em= acs:

(add-hook 'ruby-mode-hook
=A0 =A0 = =A0 =A0 =A0 (lambda ()
=A0 =A0 =A0 =A0 =A0 =A0 (define-key ruby-m= ode-map "{" nil)
=A0 =A0 =A0 =A0 =A0 =A0 (define-key ru= by-mode-map "}" nil)))

Could someone take a look at ruby-electric-brace = to determine the exact issue?

--
Cheers,=

Andrew Pennebaker
--14dae9399de3e5cd2f04d9a3a223--