[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagno

From: Rasmus
Subject: Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagnostics
Date: Fri, 28 Aug 2015 10:38:36 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Paul Eggert <address@hidden> writes:

> Rasmus wrote:
>> Can the syntax class be a function of surrounding characters (e.g. is
>> whitespace surrounding the characters)?
> That wouldn't work for classical Latin, e.g., in "AVGVSTÓ·SACR" the
> "·" is not a letter even though it is surrounded by letters.
> In general, whether a character is punctuation or a letter depends on
> the language.  "·" should be punctuation in English, arguably a space
> in classical Latin, and a letter in Catalan.  Is Emacs flexible enough
> to do that now?

But then you need to declare the language.  This is a buffer property.  In
some modes, such as org where you have a #+LANGUAGE cookie, or xml where
you have a meta tag it works, but in a plain old text buffer it's harder.
Maybe you could bind the variable, or it could depend on your current
ispell dictionary.  (In fact, I already need to explicitly add "['’]" to
CASECHARS in ispell-local-dictionary-alist to make hunspell accept words
like "it's").


C is for Cookie

reply via email to

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