unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: 3312@debbugs.gnu.org
Subject: bug#3312: 23.0.93; Use punctuation syntax for apostrophe in Info
Date: Sat, 17 Sep 2011 15:31:48 +0300	[thread overview]
Message-ID: <87d3ezic3v.fsf@mail.jurta.org> (raw)
In-Reply-To: <m31uvgtcmw.fsf@stories.gnus.org> (Lars Magne Ingebrigtsen's message of "Fri, 16 Sep 2011 23:12:39 +0200")

>> +    (modify-syntax-entry ?' "." st)
>
> There wasn't much discussion after this, but it seems to me that having
> ' be
>
>     (modify-syntax-entry ?\' "w" st)
>
> which it currently is, isn't all that nice in Info buffers.  `M-.' and
> the like doesn't work as well as one would like if stuff like `this'
> gets treated like "this'" by `M-.'.

I see that Gnus solves this problem by modifying syntax of ' and `
to whitespace:

  (defvar gnus-article-mode-syntax-table
    (let ((table (copy-syntax-table text-mode-syntax-table)))
      ;; This causes the citation match run O(2^n).
      ;; (modify-syntax-entry ?- "w" table)
      (modify-syntax-entry ?> ")<" table)
      (modify-syntax-entry ?< "(>" table)
      ;; make M-. in article buffers work for `foo' strings
      (modify-syntax-entry ?' " " table)
      (modify-syntax-entry ?` " " table)
      table)
    "Syntax table used in article mode buffers.
  Initialized from `text-mode-syntax-table.")

So I'm not sure what is better for Info buffers:
whitespace syntax (" ") or punctuation (".")?





  reply	other threads:[~2011-09-17 12:31 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
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 [this message]
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

  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=87d3ezic3v.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=3312@debbugs.gnu.org \
    --cc=larsi@gnus.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 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).