From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs i18n Date: Thu, 28 Mar 2019 17:52:05 +0200 Message-ID: <83wokjj8t6.fsf@gnu.org> References: <87o97aq6gz.fsf@jidanni.org> <87tvgoud56.fsf@mail.linkov.net> <83o96wk2mi.fsf@gnu.org> <87k1hjfvjd.fsf@mail.linkov.net> <871s3p0zdz.fsf@mail.linkov.net> <83h8ckezyt.fsf@gnu.org> <87h8cjspc0.fsf@mail.linkov.net> <29a53a39-fa50-1e94-9420-a3ea1250aa44@gmail.com> <87r2azq478.fsf@mail.linkov.net> <83o963s4gx.fsf@gnu.org> <87va09ckym.fsf@mail.linkov.net> <83sgvdndt0.fsf@gnu.org> <8736ncgcnm.fsf@mail.linkov.net> <5F95E50C-2A55-4ED2-A82B-86FAAFC526ED@gmail.com> <87ef6uod20.fsf@mail.linkov.net> <831s2tmx97.fsf@gnu.org> <2440fc3c-d6ff-7354-ffa1-16b6e4ca8f7a@cs.ucla.edu> <83ftr9kmn9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="130513"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 28 16:52:16 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9XKC-000Xlz-99 for ged-emacs-devel@m.gmane.org; Thu, 28 Mar 2019 16:52:16 +0100 Original-Received: from localhost ([127.0.0.1]:38331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9XKB-0008Ak-5W for ged-emacs-devel@m.gmane.org; Thu, 28 Mar 2019 11:52:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9XK3-0008AQ-Gw for emacs-devel@gnu.org; Thu, 28 Mar 2019 11:52:08 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38978) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9XK3-0003MX-CJ; Thu, 28 Mar 2019 11:52:07 -0400 Original-Received: from [176.228.60.248] (port=4526 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h9XK2-0006bT-LL; Thu, 28 Mar 2019 11:52:07 -0400 In-reply-to: (message from =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel on Thu, 28 Mar 2019 10:56:44 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:234801 Archived-At: > From: Clément Pit-Claudel > Date: Thu, 28 Mar 2019 10:56:44 -0400 > > On 2019-03-26 23:43, Eli Zaretskii wrote: > > If we want some automatic way of changing the domain when a function > > from a package is called, we need to develop the infrastructure for > > that. But that could wait for later, I think. > > I expect I'd define a foo-ngettext macro in each `foo' package expanding to ngettext with the appropriate group argument. If there are multiple functions (gettext, ngettext, etc), maybe a single macro defining all foo-* variants at once would be nice. I really hope we could come up with something more elegant. And besides, your suggestion doesn't handle calls from Lisp packages to core APIs, including primitives and modules.