[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: |
Sat, 17 Sep 2011 15:31:48 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) |
>> + (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 (".")?