emacs-wiki-discuss
[Top][All Lists]
Advanced

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

[emacs-wiki-discuss] Re: CamelCase with non US-ASCII chars.


From: Michael Olson
Subject: [emacs-wiki-discuss] Re: CamelCase with non US-ASCII chars.
Date: Fri, 20 May 2005 14:20:48 -0500
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Alex Polite <address@hidden> writes:

> On Thu, May 19, 2005 at 04:22:16PM -0500, Michael Olson wrote:
>> > Normally, Emacs should already contain correct settings for these
>> > character classes, i.e. you should just be able to rely on them
>> > given the current locale in Emacs, and these values should not be
>> > your worry.  (From that viewpoint, those variables are a layer
>> > too many.)
>> 
>> This only applies to Emacs from CVS.  Both XEmacs and Emacs21 do
>> *not* support these character classes.

To clarify what I meant: Emacs from CVS is the only variant I know of
that has support for [:upper:], [:lower:]. and [:alnum:] in regular
expression classes.  Emacs-wiki will use these instead of their near
equivalents "A-Z", "a-z", and "A-Za-z0-9" in its regular expressions
when you are using Emacs from CVS.  Otherwise, you'll have to do a bit
more work.  See the last paragraph of this message for details.

> OK. I've installed Emacs from CVS (pre packed for my distro but that
> doesn't matter right?) and I've done set-language-environment
> (Swedish) rather then mess with my locale environment
> variables. Still no go. So maybe I'll have to mess with my locale
> environment variables after all. But which ones?

That's funny; I'm not entirely sure what the problem could be.  It
should work properly as long as you are using the latest development
tarball (http://www.mwolson.org/static/dist/emacs-wiki-latest.tar.gz)
or the latest Arch updates of emacs-wiki .  I haven't tested it with
the Swedish language environment, but accented characters in Wiki
links worked fine with UTF-8.

I'm just guessing here, but it might help if UTF-8 is the default
buffer encoding.  I have the following settings in my .emacs file to
accomplish this.

(setq default-buffer-file-coding-system 'utf-8)
(prefer-coding-system 'utf-8)

Ideally, you should be able to keep using the Swedish language
environment.

If Wiki links continue to not work, try customizing
`emacs-wiki-regexp-lower', `emacs-wiki-regexp-upper', and
`emacs-wiki-regexp-alnum', adding the extra characters that you need
to each of these variables.

-- 
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Jabber: mwolson_at_hcoop.net -- IRC: mwolson on freenode.net: #muse, #pulug
  /` |\ | | |
 |_] | \| |_|   Interests: anime, Debian GNU/Linux, XHTML, wiki, Emacs Lisp

Attachment: pgpmA7blk81wR.pgp
Description: PGP signature


reply via email to

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