unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: "Pål de Vibe" <pauldevibe@yahoo.no>,
	"Nobuyoshi Nakada" <nobu@ruby-lang.org>,
	5757@debbugs.gnu.org
Subject: bug#5757: String literal parse problem in ruby-mode
Date: Tue, 12 Apr 2011 00:16:38 -0300	[thread overview]
Message-ID: <jwv8vvg17pd.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87ipunnozh.fsf@stupidchicken.com> (Chong Yidong's message of "Sat, 09 Apr 2011 16:34:10 -0400")

>> His proposed fix is not correct: in ruby (like in Elisp) ?<char> is used
>> for chars (including ?' and ?") and $' and $" are also special vars, so
>> his fix just disables the special treatment of ?.
>> For Emacs-24, we use a different chunk of code which doesn't suffer from
>> this problem (mostly calling syntax-ppss to determine if we're inside
>> a string).
> Is this worth backporting to Emacs 23?  If not, let's close this bug.

I think it's more important to keep in touch with the upstream
maintainers.  E.g. I still haven't heard anything from them regarding
the changes I've made for syntax-propertize (which happen to fix the
OP's problem).  I'm worried we might not stay in sync.


        Stefan





      reply	other threads:[~2011-04-12  3:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-23 16:21 bug#5757: 23.1; String literal parse problem in ruby-mode Rhett Sutphin
2011-03-30 22:08 ` bug#5757: The line which causes the bug is 1185 Pål de Vibe
2011-04-03  0:50   ` bug#5757: String literal parse problem in ruby-mode Chong Yidong
2011-04-04 13:53     ` Stefan Monnier
2011-04-04 13:55       ` Pål de Vibe
2011-04-09 20:34       ` Chong Yidong
2011-04-12  3:16         ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv8vvg17pd.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=5757@debbugs.gnu.org \
    --cc=cyd@stupidchicken.com \
    --cc=nobu@ruby-lang.org \
    --cc=pauldevibe@yahoo.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).