all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: emacs-pretest-bug@gnu.org, 3312@emacsbugs.donarmstrong.com
Subject: bug#3312: 23.0.93; Use punctuation syntax for apostrophe in Info
Date: Sun, 17 May 2009 21:59:59 +0300	[thread overview]
Message-ID: <87ljovr1dp.fsf@mail.jurta.org> (raw)
In-Reply-To: <000001c9d672$0f3f1ce0$0200a8c0@us.oracle.com> (Drew Adams's message of "Sat, 16 May 2009 15:02:51 -0700")

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






  parent reply	other threads:[~2009-05-17 18:59 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-16 22:02 bug#3312: 23.0.93; Use punctuation syntax for apostrophe in Info Drew Adams
2009-05-17 14:50 ` Kevin Rodgers
2009-05-17 15:59   ` Drew Adams
2009-05-17 18:59 ` Juri Linkov [this message]
2009-05-17 20:01   ` Eli Zaretskii
2009-05-17 20:03   ` Drew Adams
2009-05-17 19:29 ` Stefan Monnier
2009-05-17 20:08   ` Drew Adams
2009-05-19  0:47   ` Juri Linkov
2009-05-19  3:09     ` Drew Adams
2009-06-08 17:34       ` Drew Adams
2011-09-16 21:12     ` Lars Magne Ingebrigtsen
2011-09-17 12:31       ` Juri Linkov
2011-09-17 14:41         ` Drew Adams
2011-09-18  7:51         ` Lars Magne Ingebrigtsen
2011-09-18 19:57   ` Juri Linkov

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

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

  git send-email \
    --in-reply-to=87ljovr1dp.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=3312@emacsbugs.donarmstrong.com \
    --cc=drew.adams@oracle.com \
    --cc=emacs-pretest-bug@gnu.org \
    /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 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.