bug#3312: 23.0.93; Use punctuation syntax for apostrophe in Info

Juri Linkov <[email protected]>
Newsgroups gmane.emacs.bugs,gmane.emacs.pretest.bugs
Organization JURTA
Message-ID <[email protected]>
> If this makes sense for all Info manuals, then a simple fix would
> presumably be to change this (in the definition of `info-mode'):
>
> (set-syntax-table text-mode-syntax-table)
>
> To this:
>
> (set-syntax-table
>   (copy-syntax-table text-mode-syntax-table))
> (modify-syntax-entry ?' ".")

From my .emacs:

     (add-hook 'Info-mode-hook
               (lambda ()
                 (let ((st (copy-syntax-table text-mode-syntax-table)))
                   (modify-syntax-entry ?' "." st)
                   (set-syntax-table st))))

So this is a real problem for Info manuals.

> I don't know much about text-mode, but I wonder if even there it might
> make sense for ' to have syntax class `punctuation' instead of
> `word'. Probably the answer is "no", or that would already be the
> case. ;-)

AFAIK, the apostrophe has word syntax in text-mode to allow treating
word contractions as one word (can't, it's, I'll).  I don't know
whether this is grammatically correct or not but at least the Unicode says
that the category of the apostrophe is Punctuation, so perhaps we should
change apostrophe syntax to punctuation in text-mode as well.

-- 
Juri Linkov
http://www.jurta.org/emacs/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.