all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* String Syntax
@ 2011-06-07 22:42 Perry Smith
  2011-06-08  6:56 ` Tassilo Horn
  0 siblings, 1 reply; 3+ messages in thread
From: Perry Smith @ 2011-06-07 22:42 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org List

Hi,

I hit something similar to this rather often in Ruby mode.  Below is a string that ruby-mode 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 => <name>'.  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've tried both the stock ruby-mode as well as a ruby-mode that comes with Rinari.  Is this something that is wrong with the syntax table?

Thanks for your help.
Perry




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: String Syntax
  2011-06-07 22:42 String Syntax Perry Smith
@ 2011-06-08  6:56 ` Tassilo Horn
  2011-06-08 13:36   ` Perry Smith
  0 siblings, 1 reply; 3+ messages in thread
From: Tassilo Horn @ 2011-06-08  6:56 UTC (permalink / raw)
  To: help-gnu-emacs

Perry Smith <pedzsan@gmail.com> 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 => <name>'.  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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: String Syntax
  2011-06-08  6:56 ` Tassilo Horn
@ 2011-06-08 13:36   ` Perry Smith
  0 siblings, 0 replies; 3+ messages in thread
From: Perry Smith @ 2011-06-08 13:36 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: help-gnu-emacs

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 <pedzsan@gmail.com> 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 => <name>'.  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
> 
> 




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-06-08 13:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-07 22:42 String Syntax Perry Smith
2011-06-08  6:56 ` Tassilo Horn
2011-06-08 13:36   ` Perry Smith

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.