all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Eli Zaretskii <eliz@gnu.org>
Cc: michael.albinus@gmx.de, dmantipov@yandex.ru, 18051@debbugs.gnu.org
Subject: bug#18051: [Emacs-diffs] trunk r117726: Add string collation.
Date: Wed, 27 Aug 2014 14:27:50 -0700	[thread overview]
Message-ID: <53FE4D56.3070504@cs.ucla.edu> (raw)
In-Reply-To: <834mwxk8s1.fsf@gnu.org>

Eli Zaretskii wrote:

> I think we agreed to have a variable that holds the non-default locale
> as a Lisp string.

Ah, sorry, missed that (it is a long thread...).  Makes sense.  I assume 
this is on someone's TODO list since it's not done that way now.

> Perhaps binding a variable to the object will do.

We could do both: i.e., give the comparison function an optional 
argument that defaults to the value of the bound variable.  I'd think 
the value should be a locale object, though, not a string like "en_US". 
  And perhaps the object should also record whether the comparison is 
case-sensitive, and other stuff like that.

> Alternatively, a simple one-slot cache internal to string_collate will
> probably remove most of the overhead.

It would now, but it would also add another obstacle to adding 
multithreading capabilities, as the locking around the cache would 
inhibit scalability.  So I'd rather avoid such a cache if it's easy.





  reply	other threads:[~2014-08-27 21:27 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-25  4:05 [Emacs-diffs] trunk r117726: Add string collation Dmitry Antipov
2014-08-25  5:48 ` bug#18051: " Paul Eggert
2014-08-25  6:19   ` Dmitry Antipov
2014-08-25  6:41     ` Michael Albinus
2014-08-25 15:03       ` Eli Zaretskii
2014-08-25 16:01         ` Eli Zaretskii
2014-08-27 11:24         ` Michael Albinus
2014-08-27 15:40           ` Eli Zaretskii
2014-08-27 18:12             ` Michael Albinus
2014-08-27 18:26               ` Eli Zaretskii
2014-08-27 19:00           ` Paul Eggert
2014-08-27 19:08             ` Paul Eggert
2014-08-27 19:54               ` Eli Zaretskii
2014-08-27 21:27                 ` Paul Eggert [this message]
2014-08-27 21:37                   ` Michael Albinus
2014-08-28  2:39                     ` Eli Zaretskii
2014-08-29  8:59                     ` martin rudalics
2014-08-29  9:59                       ` Michael Albinus
2014-08-29 17:21                         ` martin rudalics
2014-08-29 17:56                           ` Michael Albinus
2014-08-29 10:06                       ` Eli Zaretskii
2014-08-29 18:01                         ` Michael Albinus
2014-08-29 19:31                           ` Eli Zaretskii
2014-08-29 21:01                             ` Michael Albinus
2014-09-01 15:20                               ` Eli Zaretskii
2014-09-01 20:46                                 ` Michael Heerdegen
2014-10-17 20:26                                   ` Michael Heerdegen
2014-10-18  5:38                                     ` Eli Zaretskii
2014-10-18 14:27                                       ` Michael Heerdegen

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53FE4D56.3070504@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=18051@debbugs.gnu.org \
    --cc=dmantipov@yandex.ru \
    --cc=eliz@gnu.org \
    --cc=michael.albinus@gmx.de \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.