From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: String Syntax Date: Wed, 08 Jun 2011 08:56:24 +0200 Message-ID: <8739jkg6av.fsf@member.fsf.org> References: <07A43FE2-D8B4-4E94-B038-2646A8320CA4@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1307516663 17210 80.91.229.12 (8 Jun 2011 07:04:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Jun 2011 07:04:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 08 09:04:19 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QUCoN-0001M1-CX for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Jun 2011 09:04:19 +0200 Original-Received: from localhost ([::1]:55662 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUCoM-0005MY-JQ for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Jun 2011 03:04:18 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUCkM-0004zO-1n for help-gnu-emacs@gnu.org; Wed, 08 Jun 2011 03:00:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QUCkK-00005u-8H for help-gnu-emacs@gnu.org; Wed, 08 Jun 2011 03:00:09 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:42983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUCkI-00005W-V0 for help-gnu-emacs@gnu.org; Wed, 08 Jun 2011 03:00:07 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QUCkG-0007cW-V3 for help-gnu-emacs@gnu.org; Wed, 08 Jun 2011 09:00:04 +0200 Original-Received: from tsdh.uni-koblenz.de ([141.26.67.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Jun 2011 09:00:04 +0200 Original-Received: from tassilo by tsdh.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Jun 2011 09:00:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: tsdh.uni-koblenz.de User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:UpbYfT97dIoLSosfHezy/+Jb0AA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:81308 Archived-At: Perry Smith writes: Hi Perry, > I hit something similar to this rather often in Ruby mode. Below is a > string that ruby-mode gets confused on. What's your exact definition of "gets confused on"? > super("Could not find the source association(s) > #{source_reflection_names.collect(&:inspect).to_sentence(:two_words_connector > => ' or ', :last_word_connector => ', or ', :locale => :en)} in model > #{through_reflection.klass}. Try 'has_many #{reflection.name.inspect}, > :through => #{through_reflection.name.inspect}, :source => '. Is it one > of #{source_associations.to_sentence(:two_words_connector => ' or ', > :last_word_connector => ', or ', :locale => :en)}?") > > This happens to come from code I did not write. > > If I put a space between the final ? and ", then it works. I'm using > emacs 23.3. I just added that snipped into some ruby file using Emacs 24 with its ruby-mode, and I couldn't see anything obviously wrong. Bye, Tassilo