From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64212: 29.0.91; \Phi missing in TeX input method Date: Thu, 22 Jun 2023 10:42:37 -0400 Message-ID: References: <87sfakflgb.fsf@gnu.org> <83a5ws3xa0.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3908"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Roland Winkler , 64212@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 22 16:43:13 2023 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 1qCLWi-0000nq-4r for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Jun 2023 16:43:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCLWa-0008LG-T2; Thu, 22 Jun 2023 10:43:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qCLWY-0008L6-Gy for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 10:43:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qCLWX-00021j-Nq for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 10:43:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qCLWX-0007EU-JO for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 10:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Jun 2023 14:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64212 X-GNU-PR-Package: emacs Original-Received: via spool by 64212-submit@debbugs.gnu.org id=B64212.168744496627779 (code B ref 64212); Thu, 22 Jun 2023 14:43:01 +0000 Original-Received: (at 64212) by debbugs.gnu.org; 22 Jun 2023 14:42:46 +0000 Original-Received: from localhost ([127.0.0.1]:36485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCLWI-0007Dy-Gs for submit@debbugs.gnu.org; Thu, 22 Jun 2023 10:42:46 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:4842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCLWG-0007Dj-Fk for 64212@debbugs.gnu.org; Thu, 22 Jun 2023 10:42:44 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 37F1A1000C4; Thu, 22 Jun 2023 10:42:39 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 3E3AB10001F; Thu, 22 Jun 2023 10:42:38 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1687444958; bh=a9IccxWF8cIhUYx6QvS3EnxmoZrA2whBqYEO8D8t2iQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=f8sMq9BUE8FYNutIzEp+KY/ebmKFHdoQ4PY8L6II4ACXnINzWlykTpC3SjU2jcf+T pAs1zwUQhqyoBfR3vBwblmYFepoYKBz39jYOJgArw4XF7VCr+JWZzWF57UxHp2VyhE rD1OsnH78wc9D3IcSOTzVo/A7OsKxGSh6pfMOHDfu1ufNkXol/hhI8EpA37S2FgsQ7 /SK+FxBVivQVVSMmlZu3LKZUKxCspF2JzeDcwqsW5p+YodFPpCihoyzrCI4YvBiNLq vnavxiZEHN5n/1wFb9/6ttWWiKgPUV+S2olnyAzngfG8e3PNmcxRShn5KJD+s3Acpa MuvV06j21vtZQ== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 1EBD5120924; Thu, 22 Jun 2023 10:42:38 -0400 (EDT) In-Reply-To: <83a5ws3xa0.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 22 Jun 2023 08:01:59 +0300") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:263882 Archived-At: >> The TeX input method is missing \Phi that should give GREEK CAPITAL >> LETTER PHI. I am surprised I never stumbled upon this previously. But >> apparently that's what it is (with emacs -Q). > Why do you need that letter in a TeX context? FWIW, the TeX input method uses a lot of such Greek letters already. > TeX input method is more for typing scientific text in TeX and its > variants, and there they use a different codepoint for the symbol. I don't see any better code point for capital phi. >> (There is a special treatment of variants of the greek letter phi in >> latin-ltx.el that goes beyond my knowledge of how input methods are >> implemented.) > > If all that's needs to be added to the input method is > > ("\\Phi" ?=CE=A6) > > then I can do that. That would work, but I think the problem was in the regexp and the patch below should fix it The Right Way. Should I push it to `master` or are we still considering such fixes for `emacs-29`? Stefan diff --git a/lisp/leim/quail/latin-ltx.el b/lisp/leim/quail/latin-ltx.el index 21a01c85737..9be3d722504 100644 --- a/lisp/leim/quail/latin-ltx.el +++ b/lisp/leim/quail/latin-ltx.el @@ -244,7 +244,8 @@ ;; (which is \varphi) are reversed in `ucs-names', so we define ;; them manually. Also ignore "GREEK SMALL LETTER EPSILON" and ;; add the correct value for \epsilon manually. - (unless (string-match-p "\\<\\(?:PHI\\|GREEK SMALL LETTER EPSILON\\)\\= >" name) + (unless (string-match-p "\\" + name) (concat "\\" (funcall (if (match-end 1) #' capitalize #'downcase) (match-string 2 name))))) "\\`GREEK \\(?:SMALL\\|CAPITA\\(L\\)\\) LETTER \\([^- ]+\\)\\'")