From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Perry Smith Newsgroups: gmane.emacs.help Subject: Re: String Syntax Date: Wed, 8 Jun 2011 08:36:46 -0500 Message-ID: <3E86B32F-100D-4056-A75C-BD83E73EF56F@gmail.com> References: <07A43FE2-D8B4-4E94-B038-2646A8320CA4@gmail.com> <8739jkg6av.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1307540333 30291 80.91.229.12 (8 Jun 2011 13:38:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Jun 2011 13:38:53 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Tassilo Horn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 08 15:38:49 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 1QUIy8-0002u8-Jg for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Jun 2011 15:38:48 +0200 Original-Received: from localhost ([::1]:54541 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUIy5-0003xe-0P for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Jun 2011 09:38:45 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUIwJ-0003wa-Nt for help-gnu-emacs@gnu.org; Wed, 08 Jun 2011 09:36:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QUIwI-0006su-1x for help-gnu-emacs@gnu.org; Wed, 08 Jun 2011 09:36:55 -0400 Original-Received: from mail-px0-f179.google.com ([209.85.212.179]:33168) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUIwG-0006sW-GE for help-gnu-emacs@gnu.org; Wed, 08 Jun 2011 09:36:52 -0400 Original-Received: by pxi2 with SMTP id 2so294975pxi.38 for ; Wed, 08 Jun 2011 06:36:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer; bh=yMSh0sksR+PI2jpCYmWH1P9S5Tax9pIX7vGaOekFHVs=; b=RrcUm7yiwpBQoXm/G96xrXnK2KwYDIQCfdcXtC5cPXan471zX3ZW0iNYez0VuvFkzj kAoIwLiLBzpiRVObb/jIdjgZIrMqqiyEyDKvxPlIjvIbb4FS1D9RQRk6gYCWeEDMg7Jr wEMpJje6Lr17vv0GhAcRdght4wa5hU43ZmSn0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=jV5W5yEMC5WqszkLeoPhV1ss1HnrfLgLnc4ZjVXgN4YDp1Ra7Vk5ugUfkjmeM1eeEg bGfsX907GV4ENnK7gt5dzrNOcimw3CWuGvR6uyY+8eXn3UwL6KWi4zLP/SOYKE/YXPaa oSyiS/roRL/r7e5YmJFbTnebjsldBxJ7yguYU= Original-Received: by 10.68.39.38 with SMTP id m6mr354433pbk.150.1307540210143; Wed, 08 Jun 2011 06:36:50 -0700 (PDT) Original-Received: from magicbook-009041100053.austin.ibm.com ([32.97.110.54]) by mx.google.com with ESMTPS id w2sm520654pbg.69.2011.06.08.06.36.48 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 08 Jun 2011 06:36:49 -0700 (PDT) In-Reply-To: <8739jkg6av.fsf@member.fsf.org> X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.212.179 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:81311 Archived-At: I happened to look at this on Google's groups last night and Stefan = mentioned that it is fixed in Emacs 24. I still have not seen his post via email (and I presume you have not = either). On Jun 8, 2011, at 1:56 AM, Tassilo Horn wrote: > Perry Smith writes: >=20 > Hi Perry, >=20 >> I hit something similar to this rather often in Ruby mode. Below is = a >> string that ruby-mode gets confused on. >=20 > What's your exact definition of "gets confused on"? >=20 >> super("Could not find the source association(s) >> = #{source_reflection_names.collect(&:inspect).to_sentence(:two_words_connec= tor >> =3D> ' or ', :last_word_connector =3D> ', or ', :locale =3D> :en)} in = model >> #{through_reflection.klass}. Try 'has_many = #{reflection.name.inspect}, >> :through =3D> #{through_reflection.name.inspect}, :source =3D> = '. Is it one >> of #{source_associations.to_sentence(:two_words_connector =3D> ' or = ', >> :last_word_connector =3D> ', or ', :locale =3D> :en)}?") >>=20 >> This happens to come from code I did not write. >>=20 >> If I put a space between the final ? and ", then it works. I'm using >> emacs 23.3. >=20 > I just added that snipped into some ruby file using Emacs 24 with its > ruby-mode, and I couldn't see anything obviously wrong. >=20 > Bye, > Tassilo >=20 >=20