emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: case-table functions clobbering extra slots


From: Richard Stallman
Subject: Re: case-table functions clobbering extra slots
Date: Fri, 28 Jan 2005 09:14:15 -0500

    (let ((old (standard-case-table)))
      (set-standard-case-table table)
      (or (eq old table)
          (set-standard-case-table old)))

Yes, tho I'd use unwind-protect just in case of quits.

    I proposed "(two) new functions", for instance,
    (set-upcase-syntax LC UC TABLE) and
    (set-downcase-syntax UC LC TABLE).

    But you said "A new function is cleaner".  So I thought you
    were suggesting to have a single function, for instance,
    (set-up-or-downcase-syntax UC LC TABLE UP-P).

Of those two alternatives, the former is cleaner.  I am not sure
we need set-downcase-syntax, though.  I think the only real
cases are for set-upcase-syntax.

Of course, to really solve these problems, after the release, we need
a more thorough change.  I think Greek uses two forms of lower-case
sigma, one at the end of the word, one elsewhere.  To downcase
correctly requires determining where the sigma is.  Then there's the
problem of ß in German, which I believe should upcase to SS.  And SS
in some (but not all?)  cases should downcase into ß in German.

I think the mechanism of case tables is thus inadequate.  The question
is whether to replace it or extend it.

Do you have a complete list of problem cases for case conversion in
Emacs?  Would you like to start designing a full solution?





reply via email to

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