From: David Kastrup <dak@gnu.org>
To: Andreas Schwab <schwab@suse.de>
Cc: Sascha Wilde <wilde@sha-bang.de>,
Thomas Arendsen Hein <thomas@intevation.de>,
emacs-devel@gnu.org
Subject: Re: Better language detection for tutorial
Date: Sun, 22 Jul 2007 17:44:24 +0200 [thread overview]
Message-ID: <854pjwl9yf.fsf@lola.goethe.zz> (raw)
In-Reply-To: <jesl7gv42c.fsf@sykes.suse.de> (Andreas Schwab's message of "Sun\, 22 Jul 2007 17\:41\:31 +0200")
Andreas Schwab <schwab@suse.de> writes:
> Sascha Wilde <wilde@sha-bang.de> writes:
>
>> + (defun tutorial-get-language ()
>> + "Use LC_ALL, LC_MESSAGES, LANG in turn to determine language to use.
>> + This is more reliable then current-language-environment, which is not
> than `...'
>> + intended to chose the language used for messages and documentation."
> choose
>
>> + (let (locale (vars '("LC_ALL" "LC_MESSAGES" "LANG")))
>> + (while (and vars
>> + (= 0 (length locale))) ; nil or empty string
> zerop or (= (length locale) 0)
>
>> + (setq locale (getenv (pop vars))))
>
> pop is a macro in cl.
pop is a Lisp macro in `subr.el'.
(pop LISTNAME)
Return the first element of LISTNAME's value, and remove it from the list.
LISTNAME must be a symbol whose value is a list.
If the value is nil, `pop' returns nil but does not actually
change the list.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2007-07-22 15:44 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-18 10:14 set-locale-environement: strange default detection Sascha Wilde
2007-07-18 10:19 ` David Kastrup
2007-07-18 10:40 ` Sascha Wilde
2007-07-18 10:50 ` David Kastrup
2007-07-18 11:04 ` Jan Djärv
2007-07-18 12:28 ` Sascha Wilde
2007-07-18 18:54 ` Reiner Steib
2007-07-18 21:24 ` David Kastrup
2007-07-19 8:21 ` Sascha Wilde
2007-07-19 9:16 ` David Kastrup
2007-07-22 14:59 ` Better language detection for tutorial (was: set-locale-environement: strange default detection) Sascha Wilde
2007-07-22 15:41 ` Andreas Schwab
2007-07-22 15:44 ` David Kastrup [this message]
2007-07-22 23:16 ` Better language detection for tutorial Andreas Schwab
2007-07-22 20:20 ` Sascha Wilde
2007-07-23 3:11 ` Eli Zaretskii
2007-07-23 9:25 ` Sascha Wilde
2007-07-23 19:29 ` Eli Zaretskii
2007-07-23 20:29 ` Sascha Wilde
2007-07-23 20:38 ` David Kastrup
2007-07-24 6:18 ` Eli Zaretskii
2007-07-24 7:17 ` Kenichi Handa
2007-07-24 7:36 ` Eli Zaretskii
2007-07-24 7:53 ` Kenichi Handa
2007-07-24 18:45 ` Eli Zaretskii
2007-07-25 1:01 ` Kenichi Handa
2007-07-25 3:14 ` Eli Zaretskii
2007-07-25 4:48 ` Kenichi Handa
2007-07-25 19:24 ` Eli Zaretskii
2007-07-26 2:29 ` Kenichi Handa
2007-07-26 11:40 ` Eli Zaretskii
2007-07-26 12:19 ` Kenichi Handa
2007-07-26 12:25 ` Eli Zaretskii
2007-07-26 12:54 ` Kenichi Handa
2007-07-20 17:42 ` set-locale-environement: strange default detection Reiner Steib
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=854pjwl9yf.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=schwab@suse.de \
--cc=thomas@intevation.de \
--cc=wilde@sha-bang.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).