GNU bug report logs - #58376
[PATCH] Set the PARENTS argument for language environments

Previous Next

Package: emacs;

Reported by: समीर सिंह Sameer Singh <lumarzeli30 <at> gmail.com>

Date: Sat, 8 Oct 2022 11:14:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #49 received at 58376 <at> debbugs.gnu.org (full text, mbox):

From: Visuwesh <visuweshm <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: समीर सिंह Sameer Singh
 <lumarzeli30 <at> gmail.com>, 58376 <at> debbugs.gnu.org
Subject: Re: bug#58376: [PATCH] Set the PARENTS argument for language
 environments
Date: Sun, 09 Oct 2022 20:36:16 +0530
[ஞாயிறு அக்டோபர் 09, 2022] Visuwesh wrote:

> [ஞாயிறு அக்டோபர் 09, 2022] Eli Zaretskii wrote:
>
>>> 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ṣṭhī (𐨑𐨪𐨆𐨛𐨁) 𐨣𐨨𐨲𐨪𐨆 𐨐𐨪𐨅𐨨𐨁")
>>>        (documentation . "\
>>> Language environment for Gāndhārī, Sanskrit, and other languages
>>> using the Kharoṣṭhī script."))
>>>  '("Misc" "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.
>>
>> Hmm...  Either we don't understand what PARENTS mean (could it mean
>> a
>> hierarchy of several menu levels?), or there is a bug.
>>
>> If you want to work on that, please do; otherwise I'll just install
>> your original patch.
>
> Attached patch puts the "Kharosthi" item in both Indian and Misc
> submenus without overwriting.
>
>
>
> The problem is that when looping, the variables setup-map and
> describe-map gets outdated and causes the overwrite.  The solution I
> came up with was to update them both to their default after each
> iteration.  This involved moving the keymap-setting forms to a
> separate
> function.

Hmm, I seethat the function can be cleaned up further.  I will do it
after my dinner.




This bug report was last modified 2 years and 206 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.