From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=B0_?= =?UTF-8?Q?=E0=A4=B8=E0=A4=BF=E0=A4=82=E0=A4=B9?= Sameer Singh Newsgroups: gmane.emacs.bugs Subject: bug#58376: [PATCH] Set the PARENTS argument for language environments Date: Sun, 9 Oct 2022 15:58:48 +0530 Message-ID: References: <83wn9ajrud.fsf@gnu.org> <83tu4eji4l.fsf@gnu.org> <83edvhjt76.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d4396e05ea978246" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17986"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58376@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 09 12:30:16 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ohTZY-0004a9-Ow for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 Oct 2022 12:30:16 +0200 Original-Received: from localhost ([::1]:56698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ohTZX-0007qs-Jo for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 Oct 2022 06:30:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohTZL-0007qd-Qw for bug-gnu-emacs@gnu.org; Sun, 09 Oct 2022 06:30:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43057) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ohTZL-00055g-Cq for bug-gnu-emacs@gnu.org; Sun, 09 Oct 2022 06:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ohTZL-0006HW-34 for bug-gnu-emacs@gnu.org; Sun, 09 Oct 2022 06:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=B0_?= =?UTF-8?Q?=E0=A4=B8=E0=A4=BF=E0=A4=82=E0=A4=B9?= Sameer Singh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Oct 2022 10:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58376 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 58376-submit@debbugs.gnu.org id=B58376.166531134824057 (code B ref 58376); Sun, 09 Oct 2022 10:30:02 +0000 Original-Received: (at 58376) by debbugs.gnu.org; 9 Oct 2022 10:29:08 +0000 Original-Received: from localhost ([127.0.0.1]:42135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ohTYS-0006Fx-9J for submit@debbugs.gnu.org; Sun, 09 Oct 2022 06:29:08 -0400 Original-Received: from mail-yb1-f169.google.com ([209.85.219.169]:45927) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ohTYP-0006FT-40 for 58376@debbugs.gnu.org; Sun, 09 Oct 2022 06:29:06 -0400 Original-Received: by mail-yb1-f169.google.com with SMTP id t186so4738125yba.12 for <58376@debbugs.gnu.org>; Sun, 09 Oct 2022 03:29:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=uol7cozTJprk4h3Znl94F3XpXiQAuchOwyXKHCA+tV4=; b=jNWGWxJeasE57RgKMjRRDp2kNnKygCzPrIO5LTL8c8Js5ZKIiUHa1KeFMF1gtJQWSd iCBq6xWPzD0WHFK/kibo35yZR5bbSEikAT2EdCyl6KrbUptIQlE9O2RAfT+l1PNCMIBA KuRtjch/stYAvGluqwu2rfoULldIufUY8J3GZ/rLvaGTim4GdWwu29Gq4ENgMdFtxDiV F4J7L4ALnDhqPgVu1qlmmNy5XIN0GhwwzNYJ3ElJNhWYzAU2QgcIluT6Ts2soXmPPslh 7I6veSOgmZc4AfbaDt1p6icmW6IjprTtZFvmKfNDBMH1B2jDuV+5PJCklhDu5ebTqSNH 9Wag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uol7cozTJprk4h3Znl94F3XpXiQAuchOwyXKHCA+tV4=; b=htpOcR1CEOKIGP50oGzMWMoxxOYLLFBBhf460njepBc5CMRIwJNzbrTDegtgve7aAb ei942012kBd+3b5h1wzo2+x0KUSaelF09NHzckVA4h9QVoSO9PJf+ZMELl8cbc7Gk/Qg psrlc5ltN/dCIpaAMBqWgi/kMBAY3LMDo4jqZaIgWWb7TU24SQmzqjLlEdAiIm+8O1X/ X1vnzNCei5CfNwqvtjPYe64zcqCg5pj9YFVE6Yksr6y79TXBNbTZ/i782vyx+WxlumIt DvzMBA3mM7gPyeEgnuMD9YjeV9cElCm+9pmTGFxmE5Z/RQWkBv+bzQtz49AjNE3inb2W 8cww== X-Gm-Message-State: ACrzQf1N9FljGbuDJW9H+6jXeZ09HeYPgaFuTQN6YdXR3vRUXe37LD0p C/BkKyzhwcAJnQjGmb4nP6xu/hJn/yJdp1gkrVE= X-Google-Smtp-Source: AMsMyM5tPZ4CXRI9p3xch/9r4CK4aYUwMrXolSH8kK2szD3DZTaX6kQSYQgO7Idrv2dHBf9j3LU5TcIxYjDCN32fmgA= X-Received: by 2002:a05:6902:1147:b0:6be:e3c:970e with SMTP id p7-20020a056902114700b006be0e3c970emr12906400ybu.469.1665311339459; Sun, 09 Oct 2022 03:28:59 -0700 (PDT) In-Reply-To: <83edvhjt76.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:244949 Archived-At: --000000000000d4396e05ea978246 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Oct 9, 2022 at 1:59 PM Eli Zaretskii wrote: > > From: =E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=B0 =E0=A4=B8=E0=A4=BF=E0=A4=82= =E0=A4=B9 Sameer Singh > > Date: Sun, 9 Oct 2022 00:46:10 +0530 > > Cc: 58376@debbugs.gnu.org > > > > For Kharoshthi and Gothic how to define the PARENTS argument so that it > does not overwrite the previous > > entries in the menu? > > What do you mean by "overwrite"? What happens if you use a list of > more than one PARENTS? > If I do something like: (set-language-info-alist "Kharoshthi" '((charset unicode) (coding-system utf-8) (coding-priority utf-8) (input-method . "kharoshthi") (sample-text . "Kharo=E1=B9=A3=E1=B9=ADh=C4=AB (=F0=90=A8= =91=F0=90=A8=AA=F0=90=A8=86=F0=90=A8=9B=F0=90=A8=81) =F0=90=A8=A3=F0=90=A8= =A8=F0=90=A8=B2=F0=90=A8=AA=F0=90=A8=86 =F0=90=A8=90=F0=90=A8=AA=F0=90=A8=85=F0=90=A8=A8=F0=90=A8=81") (documentation . "\ Language environment for G=C4=81ndh=C4=81r=C4=AB, Sanskrit, and other langu= ages using the Kharo=E1=B9=A3=E1=B9=ADh=C4=AB script.")) '("Misc" "Indian")) Then compile and open emacs -Q Now opening Options>Multilingual Environment>Set Language Environment>India= n It only has the Kharoshthi entry Options>Multilingual Environment>Set Language Environment>Misc now also has an Indian submenu with only Kharoshthi entry. --000000000000d4396e05ea978246 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Sun, Oct 9, 2022 at 1:59 PM Eli Zarets= kii <eliz@gnu.org> wrote:
> From: =E0=A4=B8=E0= =A4=AE=E0=A5=80=E0=A4=B0 =E0=A4=B8=E0=A4=BF=E0=A4=82=E0=A4=B9 Sameer Singh = <lumarzeli30@= gmail.com>
> Date: Sun, 9 Oct 2022 00:46:10 +0530
> Cc: 58376@d= ebbugs.gnu.org
>
> For Kharoshthi and Gothic how to define the PARENTS argument so that i= t does not overwrite the previous
> entries in the menu?

What do you mean by "overwrite"?=C2=A0 What happens if you use a = list of
more than one PARENTS?

If I do somethin= g like:

(set-language-info-alist
=C2=A0"Kharoshthi&qu= ot; '((charset unicode)
=C2=A0 =C2=A0 =C2=A0 =C2=A0(coding-system = utf-8)
=C2=A0 =C2=A0 =C2=A0 =C2=A0(coding-priority utf-8)
=C2=A0 = =C2=A0 =C2=A0 =C2=A0(input-method . "kharoshthi")
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (sample-text . "Kharo=E1= =B9=A3=E1=B9=ADh=C4=AB (=F0=90=A8=91=F0=90=A8=AA=F0=90=A8=86=F0=90=A8=9B=F0= =90=A8=81) =F0=90=A8=A3=F0=90=A8=A8=F0=90=A8=B2=F0=90=A8=AA=F0=90=A8=86 =F0= =90=A8=90=F0=90=A8=AA=F0=90=A8=85=F0=90=A8=A8=F0=90=A8=81")
=C2= =A0 =C2=A0 =C2=A0 =C2=A0(documentation . "\
Language environment fo= r G=C4=81ndh=C4=81r=C4=AB, Sanskrit, and other languages
using the Kharo= =E1=B9=A3=E1=B9=ADh=C4=AB script."))
=C2=A0'("Misc" &= quot;Indian"))

Then compile and open emacs -Q=
Now opening Options>Multilingual Environment>Set Language = Environment>Indian
It only has the Kharoshthi entry
= Options>Multilingual Environment>Set Language Environment>Misc now= also has an Indian submenu with only Kharoshthi entry.
--000000000000d4396e05ea978246--