unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Rahguzar <rahguzar@zohomail.eu>
Cc: Eli Zaretskii <eliz@gnu.org>,  emacs-devel@gnu.org
Subject: Re: master 84e4bc6219a 1/2: Add input methods for Urdu, Pashto and Sindhi (bug#66470)
Date: Sun, 21 Jan 2024 19:16:31 +0100	[thread overview]
Message-ID: <87wms24kn4.fsf@gmx.de> (raw)
In-Reply-To: <87le8ira14.fsf@zohomail.eu> (rahguzar@zohomail.eu's message of "Sun, 21 Jan 2024 16:07:31 +0100")

[-- Attachment #1: Type: text/plain, Size: 618 bytes --]

Rahguzar <rahguzar@zohomail.eu> writes:

Hi Rahguzar,

> Actually I see what is happening now. `cus-test-deps` is checking if it
> can load the files defining the custom variables. None of the files in
> lisp/leim/quail are on the load path. The cases where require succeeds
> it is because some other file with the same file-name-non-directory is
> on the load path e.g. for indian.el it is,
>
> lisp/language/indian.el
>
> which does not define any custom variable.
>
> I think the problem is with the test.

Good catch! One possible solution is to add the quail/ subdirectory to
load-path, temporarily. Like this:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 600 bytes --]

diff --git a/admin/cus-test.el b/admin/cus-test.el
index b86643a769a..96f0c1ff0c4 100644
--- a/admin/cus-test.el
+++ b/admin/cus-test.el
@@ -424,7 +424,12 @@ cus-test-deps
   (mapatoms
    ;; This code is mainly from `custom-load-symbol'.
    (lambda (symbol)
-     (let ((custom-load-recursion t))
+     (let ((custom-load-recursion t)
+           (load-path
+            (cons
+             (expand-file-name
+              "quail" (file-name-directory (locate-library leim-list-file-name)))
+             load-path)))
        (dolist (load (get symbol 'custom-loads))
 	 (cond
 	  ((symbolp load)

[-- Attachment #3: Type: text/plain, Size: 526 bytes --]


Likely there are also other solutions, don't know what's the best. Eli?

> P.S. Both lisp/leim/quail/indian.el and lisp/language/indian.el provide
> the feature indian which doesn't seem like the right thing.

Yes, that's unfortune.

Another minor annoyance is, that `tamil-input' of
lisp/leim/quail/indian.el and `pakistan-urdu-input' of
lisp/leim/quail/pakistan.el have different parent groups, `leim' and
`quail'. Shouldn't this be `quail' in both cases?

> Rahguzar <rahguzar@zohomail.eu> writes:

Best regards, Michael.

  reply	other threads:[~2024-01-21 18:16 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <170030013667.20571.18090141972402319489@vcs2.savannah.gnu.org>
     [not found] ` <20231118093537.9F147C0C994@vcs2.savannah.gnu.org>
2024-01-19  8:45   ` master 84e4bc6219a 1/2: Add input methods for Urdu, Pashto and Sindhi (bug#66470) Michael Albinus
2024-01-19 20:59     ` Rahguzar
2024-01-20 10:17     ` Eli Zaretskii
2024-01-20 11:16       ` Rahguzar
2024-01-20 11:30       ` Rahguzar
2024-01-20 11:58         ` Eli Zaretskii
2024-01-20 12:12           ` Rahguzar
2024-01-21 11:19       ` Michael Albinus
2024-01-21 12:34         ` Rahguzar
2024-01-21 13:21           ` Michael Albinus
2024-01-21 14:35             ` Rahguzar
2024-01-21 15:07               ` Rahguzar
2024-01-21 18:16                 ` Michael Albinus [this message]
2024-01-22  5:10                   ` Visuwesh
2024-01-22  8:24                     ` Michael Albinus
2024-01-23 17:30                   ` Eli Zaretskii
2024-01-23 18:25                     ` Michael Albinus

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=87wms24kn4.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rahguzar@zohomail.eu \
    /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).