From debbugs-submit-bounces@debbugs.gnu.org Tue May 09 14:54:50 2023 Received: (at submit) by debbugs.gnu.org; 9 May 2023 18:54:50 +0000 Received: from localhost ([127.0.0.1]:44498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwSU5-0007aW-P0 for submit@debbugs.gnu.org; Tue, 09 May 2023 14:54:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:41122) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwSU4-0007aM-6F for submit@debbugs.gnu.org; Tue, 09 May 2023 14:54:48 -0400 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 1pwSU3-0005lT-PR for bug-auctex@gnu.org; Tue, 09 May 2023 14:54:47 -0400 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pwSU2-0001mN-2P for bug-auctex@gnu.org; Tue, 09 May 2023 14:54:47 -0400 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1aaf21bb42bso44583775ad.2 for ; Tue, 09 May 2023 11:54:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683658481; x=1686250481; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=e0vXDwxYzCllwVRafczokF97IsiSwBgKvud/hP98HfA=; b=JoM+X8m4ks+IMkuTTRGNWjkklm62sYZBLLc42rrYOPH/MtIYX6fYNbRJKgoEA7PJ13 tny0qtzIwVrTpuZ2JinuYhyiNvgk79+SR5IP8sHbrl4PG42vQxgZ+pRw5Y3syNOIn7WQ W6D88IsBNQ0nJUGK3UBVtlf9GEN3/yn5ET4KBuzN/DkiEkENSri5svytUsrrnTW6pE4L 5EGWBk3CiPRh6vbHXN2XoyOgDE7TwuN0zVTUeyaZv8kAyppzbJO52NvpTl8J0XfXf21p sl8t0tzRWPBVOWaJzOnKSfhk4QjIIXVYU4sHPZ/t6oI95FGWpAm/H+uruDpxuVdCeMA3 wl2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683658481; x=1686250481; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=e0vXDwxYzCllwVRafczokF97IsiSwBgKvud/hP98HfA=; b=TeFB8/9UpFIICJfC/wNrFyPUyoOk3g2SEgSZeR86QPYCs+sDoqixgBcZo98O38OPma 4hz6i+G096neQy5PEv3R3sEPmzAPx5pEqfOyRpKsUx/dTR77W+DpxIB2sLpGeOL4She2 3dRo/Rw5ydLF6yyIdxL5YfW6WeB7ZowQ4IujeN0WhiHIXUyU3cBloTVhPjzfflbHjRZs Uwu3auzRB6TVbpxcx5mhyknN4s7wEfFaafnzXt2XKPz6pKA6ddTi0E0MUYp0AzW+UVFa uIj5n27sjSyd88zvCkEMhZ+bCepuRzwjFaXA7BdvMbycZNsApxcIZg164QEU7o3V8YEx vkxA== X-Gm-Message-State: AC+VfDxGhW9PRHnUQUEATKC9roZ2kk0ZLUysAPjLFdUo5x+xU7ZvdM5j HhqiPWGucSJsip4mzIXwLmxEmevp+HePkRvftp4/H6evFnFXrQ== X-Google-Smtp-Source: ACHHUZ5dOsv++3dhBcxcW3nQaQQw38tC7UZK6u2N7OJCQ+hO95jzM0DbPDwE5+hWbwOBv25Ab+ighgbXxpue9wYeUFE= X-Received: by 2002:a17:902:d490:b0:1ac:66c4:6082 with SMTP id c16-20020a170902d49000b001ac66c46082mr12556979plg.60.1683658480918; Tue, 09 May 2023 11:54:40 -0700 (PDT) MIME-Version: 1.0 From: Gustavo Barros Date: Tue, 9 May 2023 15:54:29 -0300 Message-ID: Subject: \foreignlanguage in babel style file To: bug-auctex@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=gtvbrs@gmail.com; helo=mail-pl1-x631.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) Hi All, just a quick and simple one. `\foreignlanguage' specs in `babel.el' are missing the optional argument it takes, both in `TeX-add-symbol` and in `font-latex-add-keywords`. Also, `\foreignlanguage' is included in the `function' font-lock class. Arguably `textual' would be a much better fit for it. Best, Gustavo. From debbugs-submit-bounces@debbugs.gnu.org Wed May 10 03:46:44 2023 Received: (at 63396) by debbugs.gnu.org; 10 May 2023 07:46:44 +0000 Received: from localhost ([127.0.0.1]:45137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pweX5-0006l1-Tp for submit@debbugs.gnu.org; Wed, 10 May 2023 03:46:44 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45436) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pweX3-0006kg-Pl for 63396@debbugs.gnu.org; Wed, 10 May 2023 03:46:43 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pweWy-0000P1-4r; Wed, 10 May 2023 03:46:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=ME22TwTI1FFYqBSUkk6bFYyYfTuMct7cnj02puKc0ds=; b=d57ytPs9p5PJ07extM/v VJXbcmH9lnmnr9e4fDXGGNfMQsUJarS/v3RLWZv1fLbNxVZ8792GWutxRVkZgBcaATylkxchjENqd 4sjajE7etbIbsaLT9EPNmnoaMitSXx2wj8WTH6l2WagQJ4Gkgj7Q4tiLWrtNtvS5n6ezM6fCYjoQs 3oeao7/1a0/rmFTyjNr7mZsORHk8J9wllveuAVV87Y5fls+QEOq3Sq7Ofyvr/QLNtuJhNOYrjP0fD Gg/4AQUGn55+JpPYOMSmiteYJTyUTA7KfpzhVZkpgsi+uS2IsQSkyBpz0smxe7XDqC0//chn0wC9t 2oBxGTkAErZ1cg==; Received: from p5b326c3d.dip0.t-ipconnect.de ([91.50.108.61] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pweWw-0003cv-I8; Wed, 10 May 2023 03:46:35 -0400 From: Arash Esbati To: Gustavo Barros Subject: Re: bug#63396: \foreignlanguage in babel style file In-Reply-To: (Gustavo Barros's message of "Tue, 9 May 2023 15:54:29 -0300") References: Date: Wed, 10 May 2023 09:45:43 +0200 Message-ID: <864joksk7s.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 63396 Cc: 63396@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Gustavo, Gustavo Barros writes: > just a quick and simple one. > > `\foreignlanguage' specs in `babel.el' are missing the optional > argument it takes, both in `TeX-add-symbol` and in > `font-latex-add-keywords`. > > Also, `\foreignlanguage' is included in the `function' font-lock > class. Arguably `textual' would be a much better fit for it. Thanks for the report. You were thinking about a change like this? --8<---------------cut here---------------start------------->8--- diff --git a/style/babel.el b/style/babel.el index 2483b73b..2110289b 100644 --- a/style/babel.el +++ b/style/babel.el @@ -256,6 +256,7 @@ (TeX-arg-completing-read (LaTeX-babel-active-languages) "Language")) '("foreignlanguage" + [TeX-arg-completing-read-multiple ("date" "captions")] (TeX-arg-completing-read (LaTeX-babel-active-languages) "Language") t) @@ -374,7 +375,6 @@ (when (and (featurep 'font-latex) (eq TeX-install-font-lock 'font-latex-setup)) (font-latex-add-keywords '(("selectlanguage" "{") - ("foreignlanguage" "{{") ("babeltags" "{") ("babelensure" "{{") ("shorthandon" "{") @@ -394,7 +394,9 @@ (font-latex-add-keywords '(("defineshorthand" "[{{") ("aliasshorthand" "{{") ("languageattribute" "{{")) - 'variable))) + 'variable) + (font-latex-add-keywords '(("foreignlanguage" "[{{")) + 'textual))) TeX-dialect) (defvar LaTeX-babel-package-options-list --8<---------------cut here---------------end--------------->8--- Best, Arash From debbugs-submit-bounces@debbugs.gnu.org Wed May 10 05:24:18 2023 Received: (at 63396) by debbugs.gnu.org; 10 May 2023 09:24:18 +0000 Received: from localhost ([127.0.0.1]:45210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwg3V-0001J1-MP for submit@debbugs.gnu.org; Wed, 10 May 2023 05:24:17 -0400 Received: from mail-pj1-f49.google.com ([209.85.216.49]:58556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwg3S-0001Ie-Uh for 63396@debbugs.gnu.org; Wed, 10 May 2023 05:24:16 -0400 Received: by mail-pj1-f49.google.com with SMTP id 98e67ed59e1d1-24e5d5782edso6658200a91.0 for <63396@debbugs.gnu.org>; Wed, 10 May 2023 02:24:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683710649; x=1686302649; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=IQTm5E4/m9Vh0+2F/wNkIipmNJ6SjOtwKdWf9Pl7t7w=; b=OZ/lfEjlLg4DlWr+J3H6E6jXyfWIDp82/mBsYugDECz29COakBLC6kRuaOBzMLIeyX JQqEMWydB9CLeof5v72BT2aLrrDdOKBz6zU2EIPU2J2I2BPBQkJ76k+JYlibsDxdzRXK RqT98d81fNI3yfUX+jFEPF3YJjNuZeBlPUtmAMaqVCe/eKHLrn06bTRKZS9rsRLCavZs /Be/y5rIez19ZiLwIqGCI7k2Cvw6YUNtaDu0+nE3DZhepQ2b1jvDN4mbBW9rfpGy3LET iRQcS5odnS6H3fLRxu0MUfOgC3aEBVArZCxoMsYiYsSjZvNeFFE7nTkbkOwuV5/7Tmcg Enog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683710649; x=1686302649; 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=IQTm5E4/m9Vh0+2F/wNkIipmNJ6SjOtwKdWf9Pl7t7w=; b=ig2pIxUmvihqg7y8vs5HEA4LRw5eDruG54GDuX+JikZnZjhYOtwjnSc64k7x9NGshh eSg9cXtSxQOvUehY8ZO8e6dWwdbGLTmqvVX7LFT2rC2GG1RLdBnVh9UX9ep0BqrwiYcB 4nIiNRwfG/MZqpQO3P3Uxghe6F8lL6aiCF9bX3p4s+REIKY28u+UOetbN90IwBEhD9oR 0Oh+FrCb3bIJ198tfw6vqnxmyGiikmh3/+8D4KQmVeCErcXiVCFhYBGu469qAYYzVfgc qxeA4Vjq4zsZBmjoWe+3pRN4XXieNXSypFOWHANAIHlBvr2yVLhl7ErMGvBs0aWCu46w RjEg== X-Gm-Message-State: AC+VfDwTopVLAo3c6hEVliOwNsAcrZn82UUc8qILLakF979zFHp0r/FT SsYyg8N0HukM1I151VtPLR+Ey8teJAYdrL0NXy0= X-Google-Smtp-Source: ACHHUZ52OBe6lVdq5WNZhJ+5LEX+V1x5dUWuROsbZuzdlecA5hqeBMv4fDVt9NViomjIi6tATm4tmDd0tdpMNhV0kg8= X-Received: by 2002:a17:90a:ea82:b0:22b:b832:d32 with SMTP id h2-20020a17090aea8200b0022bb8320d32mr17936105pjz.9.1683710648831; Wed, 10 May 2023 02:24:08 -0700 (PDT) MIME-Version: 1.0 References: <864joksk7s.fsf@gnu.org> In-Reply-To: <864joksk7s.fsf@gnu.org> From: Gustavo Barros Date: Wed, 10 May 2023 06:23:57 -0300 Message-ID: Subject: Re: bug#63396: \foreignlanguage in babel style file To: Arash Esbati Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 63396 Cc: 63396@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Hi Arash, On Wed, 10 May 2023 at 04:46, Arash Esbati wrote: > Thanks for the report. You were thinking about a change like this? > > --8<---------------cut here---------------start------------->8--- > diff --git a/style/babel.el b/style/babel.el > index 2483b73b..2110289b 100644 > --- a/style/babel.el > +++ b/style/babel.el > @@ -256,6 +256,7 @@ > (TeX-arg-completing-read (LaTeX-babel-active-languages) > "Language")) > '("foreignlanguage" > + [TeX-arg-completing-read-multiple ("date" "captions")] > (TeX-arg-completing-read (LaTeX-babel-active-languages) > "Language") > t) > @@ -374,7 +375,6 @@ > (when (and (featurep 'font-latex) > (eq TeX-install-font-lock 'font-latex-setup)) > (font-latex-add-keywords '(("selectlanguage" "{") > - ("foreignlanguage" "{{") > ("babeltags" "{") > ("babelensure" "{{") > ("shorthandon" "{") > @@ -394,7 +394,9 @@ > (font-latex-add-keywords '(("defineshorthand" "[{{") > ("aliasshorthand" "{{") > ("languageattribute" "{{")) > - 'variable))) > + 'variable) > + (font-latex-add-keywords '(("foreignlanguage" "[{{")) > + 'textual))) > TeX-dialect) > > (defvar LaTeX-babel-package-options-list > --8<---------------cut here---------------end--------------->8--- Yes, very much so. Thank you! Best, Gustavo. From debbugs-submit-bounces@debbugs.gnu.org Wed May 10 05:47:21 2023 Received: (at 63396-done) by debbugs.gnu.org; 10 May 2023 09:47:21 +0000 Received: from localhost ([127.0.0.1]:45248 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwgPp-0001st-7a for submit@debbugs.gnu.org; Wed, 10 May 2023 05:47:21 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwgPl-0001sc-HX for 63396-done@debbugs.gnu.org; Wed, 10 May 2023 05:47:19 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwgPf-0008AR-Vq; Wed, 10 May 2023 05:47:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=hzA8VTIzSKAG7B0RDRyViexlByBOfvhXYZkTtBa0QUE=; b=NAxXK1jyw/04QsIlPnNZ DbqHQqM19L0ua3e9lx4vHKJOU7hi5y7S9gytUcpx1X+hb9qg3HWlKDIcq3NngD9gA1hJHFlukbJSe DB7t9cb7wdIIZl3421TdiDc5Z62zdSNm7mYYekxEvX8EK1QDTHfp/g44l8bkCkf/ZMkWiVAwSYL+e NM1A6qFS7Fdt1ImotHGGGd0PQyZHMtoy8df5VZfH2Jz17lbr3RitRISitCZtIg62QCgJQRKoPFH7j aZc59DM/owAOlB6+NbHgTbeLztuJ35zlh3oe0fObb0zA+pUjUrUEwFJKE2aK39sTuvbaN5fJBm/RN mgSOVp6mcpQH8A==; Received: from p5b326c3d.dip0.t-ipconnect.de ([91.50.108.61] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwgPf-0003Zd-IS; Wed, 10 May 2023 05:47:11 -0400 From: Arash Esbati To: Gustavo Barros Subject: Re: bug#63396: \foreignlanguage in babel style file In-Reply-To: (Gustavo Barros's message of "Wed, 10 May 2023 06:23:57 -0300") References: <864joksk7s.fsf@gnu.org> Date: Wed, 10 May 2023 11:46:57 +0200 Message-ID: <86h6sky0vi.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 63396-done Cc: 63396-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Gustavo Barros writes: > Yes, very much so. Thank you! Thanks for your response. I installed that change (commit c9ab5d58) incl. some other minor issues I found. Closing this report. Best, Arash From unknown Sun Jun 22 07:56:51 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 07 Jun 2023 11:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator