bug-gnu-emacs
[Top][All Lists]
Advanced

[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: Juri Linkov
Subject: bug#3312: 23.0.93; Use punctuation syntax for apostrophe in Info
Date: Sun, 17 May 2009 21:59:59 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (x86_64-pc-linux-gnu)

> 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/






reply via email to

[Prev in Thread] Current Thread [Next in Thread]