From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: pyim Date: Tue, 23 Feb 2021 11:17:57 -0500 Message-ID: References: <1811ed58.18e5.177c79de92a.Coremail.tumashu@163.com> <83lfbgw34w.fsf@gnu.org> <87pn0sc84n.fsf@gmail.com> <83tuq4ufd9.fsf@gnu.org> <878s7gc5eb.fsf@gmail.com> <83r1l8uea3.fsf@gnu.org> <83h7m3v4t2.fsf@gnu.org> <83ft1mvmmj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17945"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: tumashu@163.com, rpluim@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 23 17:22:05 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lEaRp-0004XB-6K for ged-emacs-devel@m.gmane-mx.org; Tue, 23 Feb 2021 17:22:05 +0100 Original-Received: from localhost ([::1]:41312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEaRo-0007HF-8W for ged-emacs-devel@m.gmane-mx.org; Tue, 23 Feb 2021 11:22:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEaNw-0004HB-SX for emacs-devel@gnu.org; Tue, 23 Feb 2021 11:18:04 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:34710) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEaNt-0001er-9G; Tue, 23 Feb 2021 11:18:03 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id AC9A680618; Tue, 23 Feb 2021 11:17:59 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 5122580194; Tue, 23 Feb 2021 11:17:58 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1614097078; bh=sZ5hMiRW2J7u3/n5KEyA4cNpP3EoHiUNUB1cQ0EUuWw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=fb1IvMuyu1zqfZJiTm7CZagi5BEPTx1xLiak+UxyBevdY6dE9YDLuz5X8bFnvfzPt Zs9256zagpsbyByG3demNINRq7dX2s1yH+5nK/XCFZmhgh2gIeK7BdtspKgHLGaHTF 5HseQMNnHC3mwUofGgtSJsbft81dYZK5SKYI3/z//GSXW840pQd7Qieq2tzutfFuqD eP3TNsxOVkbodg8SMCSc/uhWYUHZ5POPS+4rIG148qD5hzcwH4qtxvUEPcpLVKQkj2 9CeJ1p8mzyhSAcXPtTMNX2QF/jZeiXRZ/2zTnLZeiJhuYJqXj1K/oBJYQuYG3MM1Fw dvwHd5tuWaCFw== Original-Received: from alfajor (unknown [216.154.41.47]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 1236D120264; Tue, 23 Feb 2021 11:17:58 -0500 (EST) In-Reply-To: <83ft1mvmmj.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 23 Feb 2021 17:18:12 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:265536 Archived-At: >> I don't understand the question: the above line shows that the package >> autoloads this `register-input-method` call. IOW if the user has that >> package activated (which is the default for all packages that the user >> installed), then the above line will be executed between `early-init.el` >> and `init.el`. > Is that enough to correctly set up the user's language environment? I have no idea. I think I'd have to ask Eli or Handa. [ Notice how I carefully phrased the above quoted paragraph such that it only contains facts I know to be true because of how package.el and autoloads work: I know nothing about how input methods are registered and how that might interact with the user's language environment (and to be honest, I must admit that I don't really know what is a language environment either). ] > Also, leim-list.el is not just for register-input-method calls; even > if pyim doesn't need anything else (does it?), input methods in > general will, so if we want to install input methods from elpa's, we > need to support that somehow. I think we should aim to make it possible without too many contortions to distribute and install input methods as external packages. > But in general (see my first point) I think input methods should be in > core, available in "emacs -Q" etc. I tend to agree, but I don't think it makes it less important to support external input methods. Stefan