[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#3312: 23.0.93; Use punctuation syntax for apostrophe in Info
From: |
Drew Adams |
Subject: |
bug#3312: 23.0.93; Use punctuation syntax for apostrophe in Info |
Date: |
Mon, 18 May 2009 20:09:49 -0700 |
> From: Juri Linkov Sent: Monday, May 18, 2009 5:48 PM
> >> Apostrophe, or single quote, (') currently has
> >> word-constituent syntax in Info, which it inherits from text-mode.
> >>
> >> This means that if point is inside some `...' string, and you use
> >> `C-s C-w', you will pick up also the ' at the end as part of the
> >> search string, which is typically not what you want.
> >
> > Yes, it might be a good idea to change it in Info-mode,
> > which is quite different from text-mode because of the
> > extensive use of `...' and the fact that it's read-only.
>
> This can be fixed with the following patch...
That's the same thing I sent in my original bug report:
(set-syntax-table
(copy-syntax-table text-mode-syntax-table))
(modify-syntax-entry ?' ".")
except that you added a defvar for the table - not needed, but why not? So it's
OK by me.
Dunno whether Kevin's suggestion of doing the same for non-breaking space should
be adopted also: (modify-syntax-entry ?\240 ".")