From unknown Mon Jun 23 04:08:25 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#72298 <72298@debbugs.gnu.org> To: bug#72298 <72298@debbugs.gnu.org> Subject: Status: Should python-mode-abbrev-table declare :parents python-base-mode-abbrev-table? Reply-To: bug#72298 <72298@debbugs.gnu.org> Date: Mon, 23 Jun 2025 11:08:25 +0000 retitle 72298 Should python-mode-abbrev-table declare :parents python-base-= mode-abbrev-table? reassign 72298 emacs submitter 72298 Ship Mints severity 72298 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 25 14:14:21 2024 Received: (at submit) by debbugs.gnu.org; 25 Jul 2024 18:14:21 +0000 Received: from localhost ([127.0.0.1]:37736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sX2yr-0003EY-Em for submit@debbugs.gnu.org; Thu, 25 Jul 2024 14:14:21 -0400 Received: from lists.gnu.org ([209.51.188.17]:34410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sX2yp-0003EQ-1U for submit@debbugs.gnu.org; Thu, 25 Jul 2024 14:14:19 -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 1sX2yg-0005CA-Rk for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2024 14:14:10 -0400 Received: from mail-oo1-xc32.google.com ([2607:f8b0:4864:20::c32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sX2yT-0000OY-WD for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2024 14:13:59 -0400 Received: by mail-oo1-xc32.google.com with SMTP id 006d021491bc7-5d5af8a4abbso120867eaf.1 for ; Thu, 25 Jul 2024 11:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721931236; x=1722536036; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=f+7Z4Q8+9PHNnvtEWHOvKnIHxQgfqDaamSePp03XpGU=; b=c7q2x0wkc4eGO5k12xiMyzzcKp3QqOSzZeU+v2eM3ZYbhDMw6j2kJNehAtnrWMY92b cIT7lBp7rdH4fizI1LwazXNEnvjrQwyTz8vSKkegghRNezFcUbrfGlC1z8uh9PH1KUlF uEp8VGVcim6DgReSkZlxtfVzlXZ7o3m4+yLNr0SQB9FMi2v9BtiKTHTe9L9vAbGZncqr G/m/TxlyRSW9mEABDsn/ZriPLSFgC+5qmQi1qXTfw7h2xYbKGe8LNtjnPKMYYH8CEV9w vXQ83v1NBhF7i0XhfQSWeflOixnoF3QxG0ZEvUjeBIzNwXZrpZ9VJFmv83G8xciWbhAf gnLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721931236; x=1722536036; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=f+7Z4Q8+9PHNnvtEWHOvKnIHxQgfqDaamSePp03XpGU=; b=EMc1wid6dZSYfMqyeIODtKEQftZ0Mgx3O4WOUYBz5OivBX3SRbl4B3Fgg1nCOlAhFZ RZ6OF3RtQdxmz9LyJysUsSOeCJ/BSUlO4ooMLh0pOjdy8TDsbLPZV2hZ0IRBj1HGhp5I 6gbxLLFjzYLoNp5jjLTBGuIgqmj5+4AiOVKiixHpa+6ZVqR7ubeWG67zjld4UgTqrlqv E8DkfUDm4ch5CPob41FSeZAtND3gB36qQbelhPBI8g5JrPv47hnGpsBBsiTIAIQ1bLxb amReeyzdrFcspY+cNBeZk8FveEUQEzWVl362wbJv1JgfBKUawk5fDlGly8wx80QjyLfs xOvw== X-Gm-Message-State: AOJu0YwIAoegBI9CTm0VVjL/k10zYvACy9BH3dWy8rwVHDrmylDvLnIo VM1eoUsgGL62YZsrwZobQ5J+iv3VeU06gy9MrezsbRXK4INBsv7luHTnyxC06EjUCmMldaB2Xcv YwhZ9P/TSSqT81eseHPwEdadZtGuToEFwdWE= X-Google-Smtp-Source: AGHT+IESKepTmQM9kjF6yV1DSA5Y+q25rEaQeoY3lOOVXdzodefPh2f+79o23qNomD3XP6UqOqi8FEYsOI9qswy/tfE= X-Received: by 2002:a05:6358:5694:b0:1aa:a8fe:3828 with SMTP id e5c5f4694b2df-1acfb8e8067mr357493755d.15.1721931235589; Thu, 25 Jul 2024 11:13:55 -0700 (PDT) MIME-Version: 1.0 From: Ship Mints Date: Thu, 25 Jul 2024 14:13:44 -0400 Message-ID: Subject: Should python-mode-abbrev-table declare :parents python-base-mode-abbrev-table? To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="000000000000a009b4061e165bed" Received-SPF: pass client-ip=2607:f8b0:4864:20::c32; envelope-from=shipmints@gmail.com; helo=mail-oo1-xc32.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.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: -2.3 (--) --000000000000a009b4061e165bed Content-Type: text/plain; charset="UTF-8" I was expecting that python-base-mode-abbrev-table would apply to both python-mode and python-ts-mode buffers. python-ts-mode doesn't derive from python-mode so the abbrev tables aren't shared by default. Unless I'm missing something, using a base table doesn't work for me. (define-abbrev-table 'python-mode-abbrev-table () "Abbrev table for Python mode." ;; should this: :parents (list python-mode-skeleton-abbrev-table)) ;; be defined thusly? :parents (list python-base-mode-abbrev-table python-mode-skeleton-abbrev-table)) I tried to find guidance on this outside of hacking abbrev tables manually to be shared. Perhaps other people have the same expectation. Thank you, Stephane --000000000000a009b4061e165bed Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I was expecting that python-base-mode-abbrev-table would apply to both p= ython-mode and python-ts-mode buffers. python-ts-mode doesn't derive fr= om python-mode so the abbrev tables aren't shared by default. Unless I&= #39;m missing something, using a base table doesn't work for me.
<= div class=3D"gmail_default" style=3D"font-family:monospace">
(define-abbrev-tabl= e 'python-mode-abbrev-table ()
=C2=A0 "Abbrev table for Python = mode."
;; should=C2=A0this:
=C2=A0 :parents (list python-mode-skeleton-abbre= v-table))
;; be defined thusly?
=C2=A0 :parents (list python-base-mode-abbrev-table pytho= n-mode-skeleton-abbrev-table))

I tried to find guidance on this outside of hacking = abbrev tables manually to be shared. Perhaps other people have the same exp= ectation.

Tha= nk you,
<= br>
Steph= ane
--000000000000a009b4061e165bed-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 25 14:34:31 2024 Received: (at 72298) by debbugs.gnu.org; 25 Jul 2024 18:34:31 +0000 Received: from localhost ([127.0.0.1]:37761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sX3IM-0003my-R0 for submit@debbugs.gnu.org; Thu, 25 Jul 2024 14:34:31 -0400 Received: from mail-vk1-f177.google.com ([209.85.221.177]:58770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sX3IK-0003mk-FV for 72298@debbugs.gnu.org; Thu, 25 Jul 2024 14:34:29 -0400 Received: by mail-vk1-f177.google.com with SMTP id 71dfb90a1353d-4f52c326501so564743e0c.1 for <72298@debbugs.gnu.org>; Thu, 25 Jul 2024 11:34:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721932395; x=1722537195; darn=debbugs.gnu.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=CUTSLfuWPNAjUjbL7amfe4qzAATBUPGzfmhPQCVgaVk=; b=RYJ1PIqH4Y/DJ+j6gfLOjttXMTEVbxzrunOhFYe8UXo0QqDkAHenQ6P6QTsdMJxv0k 76e7fYGVRiuVSPqtFVGLHB05As1ZtYDsxmCyMaQBeLvklIrcq443uFIz+763gm1xRfWc lzqGQa3OyTolDeuDWkMVVVXX5xf4Pb8lrIUPjjGO2XrzCB45Oacry+FieIixvMmSaQhj bSIG0bpFpcrtblM2zWozTX56AtO4NRshs4NiNC8ZyZixnCeGZU+uPRsoBIwswU5HJH5N 3irZKXkccEZUVQ+3EADqmfPkSVN7pbidk01c7Ily3c5xbF8N7DA00uNhd8NPNdT+tMjM BC8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721932395; x=1722537195; h=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=CUTSLfuWPNAjUjbL7amfe4qzAATBUPGzfmhPQCVgaVk=; b=iwiHv1R7jidd7ll/1nyc8/Nx6hdXIeq01W0Vpt18PoHYxRoODWxXBCTv6uJTFGbFD3 LC1c2AVE3722qjACiEiHqHPmIeoaVAvt/8viZ1frSVcBwEuI4GPfRheqKXZ6vnUn/0Y3 881qGWxy9ndxEUtYlz/lndcdTAOHf6VhBlZoNpUm64m87YVeR4YlPyEFhnihLJ9bbpG5 pC0jDWWXxJVdNpwCk8Nm9JvbrSG2FbhetzQa+ZunGfOJnW+DIzbzXOmGdGCnTCBh95yv bhw+8Lk6Ie4kXAVrdib10vn4E7/Tl6E44zna2r2tVyX0EX4cAzT+/v4Zl7ta8d2FV7KI ebmg== X-Gm-Message-State: AOJu0YyPZPfD5I77xc3tjoMobWCIcR76Gaf7MpOOR6uDJabJe1xrmXEp WPzDhjizFhJWkSsVueUBXhiCKD3MHOUyfLbLFgEyqp+Ymh1Jxn4yJw43OL4ZHkjL/V/4YP/X/e0 3g5uMeMpT1C59nio1Ds09uPOVTGqIpK+C X-Google-Smtp-Source: AGHT+IG6G7Xjb3zvbGX3eMjpF7oaUwe7tgnoRq+IFPhoG/7SnABecZpUKQ3tj5yYIPF1LeARyCve/n8VduOPeZwZW7A= X-Received: by 2002:a05:6122:d97:b0:4f5:2a42:d51e with SMTP id 71dfb90a1353d-4f6ca586091mr2886395e0c.13.1721932394982; Thu, 25 Jul 2024 11:33:14 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ship Mints Date: Thu, 25 Jul 2024 14:33:03 -0400 Message-ID: Subject: Re: bug#72298: Should python-mode-abbrev-table declare :parents python-base-mode-abbrev-table? To: 72298@debbugs.gnu.org Content-Type: multipart/alternative; boundary="000000000000baf488061e16a070" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72298 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.0 (-) --000000000000baf488061e16a070 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable An example of a personal hack to make this work could be to add something like this to a python-mode-hook: (if (derived-mode-p 'python-base-mode) (setq local-abbrev-table python-base-mode-abbrev-table)) On Thu, Jul 25, 2024 at 2:15=E2=80=AFPM Ship Mints wr= ote: > I was expecting that python-base-mode-abbrev-table would apply to both > python-mode and python-ts-mode buffers. python-ts-mode doesn't derive fro= m > python-mode so the abbrev tables aren't shared by default. Unless I'm > missing something, using a base table doesn't work for me. > > (define-abbrev-table 'python-mode-abbrev-table () > "Abbrev table for Python mode." > ;; should this: > :parents (list python-mode-skeleton-abbrev-table)) > ;; be defined thusly? > :parents (list python-base-mode-abbrev-table > python-mode-skeleton-abbrev-table)) > > I tried to find guidance on this outside of hacking abbrev tables manuall= y > to be shared. Perhaps other people have the same expectation. > > Thank you, > > Stephane > --000000000000baf488061e16a070 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
An example of a personal hack to make this work could be to add somethin= g like this to a python-mode-hook:

(if (derived-mode-p 'python-base-mode)
=C2=A0= (setq local-abbrev-table python-base-mode-abbrev-table))
On Thu, = Jul 25, 2024 at 2:15=E2=80=AFPM Ship Mints <shipmints@gmail.com> wrote:
I was expecting that python-base-mode-abbr= ev-table would apply to both python-mode and python-ts-mode buffers. python= -ts-mode doesn't derive from python-mode so the abbrev tables aren'= t shared by default. Unless I'm missing something, using a base table d= oesn't work for me.

(define-abbrev-table 'python-mode-abbrev-table ()
=C2=A0 = "Abbrev table for Python mode."
;; should=C2=A0this:
=C2=A0 :parents (l= ist python-mode-skeleton-abbrev-table))
;; be defined thusly?
=C2=A0 :parents (list pytho= n-base-mode-abbrev-table python-mode-skeleton-abbrev-table))

I tried to find guidanc= e on this outside of hacking abbrev tables manually to be shared. Perhaps o= ther people have the same expectation.

Thank you,

Stephane
--000000000000baf488061e16a070-- From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 17 09:55:13 2024 Received: (at 72298) by debbugs.gnu.org; 17 Aug 2024 13:55:13 +0000 Received: from localhost ([127.0.0.1]:53728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfJth-0001SW-4A for submit@debbugs.gnu.org; Sat, 17 Aug 2024 09:55:13 -0400 Received: from mail-vk1-f174.google.com ([209.85.221.174]:50193) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfJtf-0001Rs-Bs for 72298@debbugs.gnu.org; Sat, 17 Aug 2024 09:55:12 -0400 Received: by mail-vk1-f174.google.com with SMTP id 71dfb90a1353d-4fc5cf4f349so870120e0c.0 for <72298@debbugs.gnu.org>; Sat, 17 Aug 2024 06:54:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723902806; x=1724507606; darn=debbugs.gnu.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=m+n42FieeN2YkR4gCtztPMk07nz1c7Cyg9sMFrI8C7Y=; b=evGXjxlTmVCOjZ+t1KfGX5nR/iM8j4+zv/U+TkmY9BrAdUuuMnadbgMu8xih5n96yu d9nsFHcTTu6lnDX3fj8a5pUq6hTa8xS65DPOAQRI/XnXMe5ryrlIuJgSWFZ7BL6tPNnZ FbWO40/xXXTbDOsLYBQul73ZMiyiiD4YTnUQtl6itdODvMmpa3e6Qg8CBC76g7N/7n+W fQ0OmKubUeRdFK1P/qGADKHU+D/FfvrKgEgjd3zoVJeV3rOE2k9YWXQeihkb8ouvrBeG 5wRogLlYVspI/SeIFmPYLQYCzerAU+mq2EiZkCIsE3mlmDOsU2J3+B9vhKnOXTXPjLSU r+kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723902806; x=1724507606; h=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=m+n42FieeN2YkR4gCtztPMk07nz1c7Cyg9sMFrI8C7Y=; b=ePjIB9P/cfcV6R6EgsOxxLlGGyjmNFcLcMy95KnvjR00g7EW2uyVTehtt58g4fkOcL UekUM8NiZ7Bah60h6OWRm1GpYuw31310ah583YPRQNN4krd2SDJvjHUBm95fJBgDWSQK wYEzf8PYoLcrKJV+1g4XI1JwfDHqw9C1Zczv2MXF624RyUYTg2yW08nbT3fIRwo8jzkL yFtxM/eR/j1DSd/VYZp0ibq899b2St7L7XiC0tNs9IRqd2kBQcT2ADBPmhffEc3pBvuk 2HiWjDE7YHMN/nkcajVGp7U/bjV9gjC1X8D5PKvwB60MJR1gOGr33cHI8nWsxK52xTLo s97w== X-Gm-Message-State: AOJu0YwXnDXyJ4KlkqgWsE4vjV0hnuKuZfoQ022blGIhkp3KKpW2oEen ZQna3HP45t/734Eo3usPp/XCBRYZI0r38N+MzgZsQl0laJBenfbR3lzsRAk/2eV27gob0CQ8qW3 azeSjJ1kiN0urWRTl/r9aijTP0P5iHQ== X-Google-Smtp-Source: AGHT+IErTIBWYA8LiNDmwZ9xG4dTV5BKxBYV1TPhfiXO9GF4t5KeTOvhmzYDrqrytStKmEcBlkxgLACItYt51x3PvGg= X-Received: by 2002:a05:6122:d99:b0:4ed:14e:9342 with SMTP id 71dfb90a1353d-4fc6c5c2b6fmr7317490e0c.1.1723902806399; Sat, 17 Aug 2024 06:53:26 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ship Mints Date: Sat, 17 Aug 2024 09:53:15 -0400 Message-ID: Subject: Re: bug#72298: Should python-mode-abbrev-table declare :parents python-base-mode-abbrev-table? To: 72298@debbugs.gnu.org Content-Type: multipart/alternative; boundary="0000000000006722d5061fe166b6" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72298 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.0 (-) --0000000000006722d5061fe166b6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Greetings. Curious if I'm barking up the wrong tree with this assessment... On Thu, Jul 25, 2024 at 2:33=E2=80=AFPM Ship Mints wr= ote: > An example of a personal hack to make this work could be to add something > like this to a python-mode-hook: > > (if (derived-mode-p 'python-base-mode) > (setq local-abbrev-table python-base-mode-abbrev-table)) > > On Thu, Jul 25, 2024 at 2:15=E2=80=AFPM Ship Mints = wrote: > >> I was expecting that python-base-mode-abbrev-table would apply to both >> python-mode and python-ts-mode buffers. python-ts-mode doesn't derive fr= om >> python-mode so the abbrev tables aren't shared by default. Unless I'm >> missing something, using a base table doesn't work for me. >> >> (define-abbrev-table 'python-mode-abbrev-table () >> "Abbrev table for Python mode." >> ;; should this: >> :parents (list python-mode-skeleton-abbrev-table)) >> ;; be defined thusly? >> :parents (list python-base-mode-abbrev-table >> python-mode-skeleton-abbrev-table)) >> >> I tried to find guidance on this outside of hacking abbrev tables >> manually to be shared. Perhaps other people have the same expectation. >> >> Thank you, >> >> Stephane >> > --0000000000006722d5061fe166b6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Greetings. Curious if I'm barking up the wrong tree with this assess= ment...

On Thu, Jul 25, 2024 at 2:33=E2=80=AFPM Ship Mints <shipmints@gmail.com> wrote:
An example of a perso= nal hack to make this work could be to add something like this to a python-= mode-hook:

(i= f (derived-mode-p 'python-base-mode)
=C2=A0 (setq local-abbrev-table= python-base-mode-abbrev-table))

On Thu, Jul 25, 2024 at 2:15=E2= =80=AFPM Ship Mints <shipmints@gmail.com> wrote:
I was expecting that python-base-mode-abbrev-ta= ble would apply to both python-mode and python-ts-mode buffers. python-ts-m= ode doesn't derive from python-mode so the abbrev tables aren't sha= red by default. Unless I'm missing something, using a base table doesn&= #39;t work for me.

(define-abbrev-table 'python-mode-abbrev-table ()
=C2=A0 "= ;Abbrev table for Python mode."
;; should=C2=A0this:
=C2=A0 :parents (list p= ython-mode-skeleton-abbrev-table))
;; be defined thusly?
=C2=A0 :parents (list python-bas= e-mode-abbrev-table python-mode-skeleton-abbrev-table))

I tried to find guidance on = this outside of hacking abbrev tables manually to be shared. Perhaps other = people have the same expectation.

Thank you,

Stephane
--0000000000006722d5061fe166b6-- From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 24 04:46:21 2024 Received: (at 72298) by debbugs.gnu.org; 24 Aug 2024 08:46:21 +0000 Received: from localhost ([127.0.0.1]:40447 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shmPd-0007RR-2c for submit@debbugs.gnu.org; Sat, 24 Aug 2024 04:46:21 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shmPa-0007R8-VD for 72298@debbugs.gnu.org; Sat, 24 Aug 2024 04:46: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 1shmOj-0000f1-CA; Sat, 24 Aug 2024 04:45:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=DGp5tqNQtQVokBxwAotu9M1iII7xMghh/QbOjPPAy0o=; b=N7+xd6YWXKSGPVZWjyuo z1gOkzI5BThU++yBCl6ovBnu1HA4ryn+ygdzfhN5+/rPqC6sO4bFPgfkgJQSYD3WJvJRRziG9aQxZ YfRb/dMVTzeUI6jgqMJrXjHVTnx4SPP7PVUqtoKaR2nb618sMuHhbBMp4M7ohLmOctOzUKCFYFadj lOuguO6pOlqC9ymtqWRPzwwqtXQzEbXjSx/rUTrj5PKUYRBCNs2x2EC8EYrEWkSVj70RVNU3MTy+l JYDwKu3si2yenFeMOHHUgIWdF2Fyr/VX7jAFxwvM3ZWxyZSxAkF4w0wfkcUvRurp6YLSEfbKKtRbJ CbHd1K42eXuDpg==; Date: Sat, 24 Aug 2024 11:45:21 +0300 Message-Id: <86cylynwbi.fsf@gnu.org> From: Eli Zaretskii To: Ship Mints , kobarity In-Reply-To: (message from Ship Mints on Sat, 17 Aug 2024 09:53:15 -0400) Subject: Re: bug#72298: Should python-mode-abbrev-table declare :parents python-base-mode-abbrev-table? References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72298 Cc: 72298@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 (---) > From: Ship Mints > Date: Sat, 17 Aug 2024 09:53:15 -0400 > > Greetings. Curious if I'm barking up the wrong tree with this assessment... > > On Thu, Jul 25, 2024 at 2:33 PM Ship Mints wrote: > > An example of a personal hack to make this work could be to add something like this to a > python-mode-hook: > > (if (derived-mode-p 'python-base-mode) > (setq local-abbrev-table python-base-mode-abbrev-table)) > > On Thu, Jul 25, 2024 at 2:15 PM Ship Mints wrote: > > I was expecting that python-base-mode-abbrev-table would apply to both python-mode and > python-ts-mode buffers. python-ts-mode doesn't derive from python-mode so the abbrev tables > aren't shared by default. Unless I'm missing something, using a base table doesn't work for me. > > (define-abbrev-table 'python-mode-abbrev-table () > "Abbrev table for Python mode." > ;; should this: > :parents (list python-mode-skeleton-abbrev-table)) > ;; be defined thusly? > :parents (list python-base-mode-abbrev-table python-mode-skeleton-abbrev-table)) > > I tried to find guidance on this outside of hacking abbrev tables manually to be shared. Perhaps > other people have the same expectation. kobarity, any comments? From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 24 07:31:59 2024 Received: (at 72298) by debbugs.gnu.org; 24 Aug 2024 11:31:59 +0000 Received: from localhost ([127.0.0.1]:40650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shozv-0003gZ-Gu for submit@debbugs.gnu.org; Sat, 24 Aug 2024 07:31:59 -0400 Received: from mail-oo1-f43.google.com ([209.85.161.43]:49209) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shozr-0003gL-RP for 72298@debbugs.gnu.org; Sat, 24 Aug 2024 07:31:58 -0400 Received: by mail-oo1-f43.google.com with SMTP id 006d021491bc7-5dcad91e64bso2716760eaf.2 for <72298@debbugs.gnu.org>; Sat, 24 Aug 2024 04:31:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724499001; x=1725103801; darn=debbugs.gnu.org; h=mime-version:user-agent:references:in-reply-to:subject:cc:to:from :message-id:date:from:to:cc:subject:date:message-id:reply-to; bh=E4dTEWkVqW/Su8Bpp6ygZ4iOV0mWcFOOYKV32zkEaBo=; b=m6s3MXb1m1YoPsAf4kD+bm86qOZ2o9grnYWkOn5fROYMzvS/OzcVlUBcqexOY8DUB/ Oa382ybOgh5TOFmSeUsoyMfsmk7HFWfXU9T3ZA4GP6an9eIZd4iE5xt//Tq3bg8oGjNd apXxfqNWuv8dhGY52P5P3XCw/NlIlqnn0eB5lvaEtWWkjul0lNwNq2AW54T6QMnLIEzF VfgyqZrhyPsqMbN1gBrkCnECoN8oj/dutcbFBTrYvsPDViQ6J1YyDBCkMpJhRU1V9siP hfhA2SPtO10OVPUQf04s9aI0GvCtlIXEEi80C/bhJRkO1iepWlEeBzHsyYISt5OKSjiy F6oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724499001; x=1725103801; h=mime-version:user-agent:references:in-reply-to:subject:cc:to:from :message-id:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=E4dTEWkVqW/Su8Bpp6ygZ4iOV0mWcFOOYKV32zkEaBo=; b=q3SmDIXY2XxJ+Dnb2DQHaLhIbNBFioKkAdqbcsI7MxZQgLHf9KS9RN4NGTxADWNBJb MVrmhqJ67VZW3C7krExih4JQ1cGhYJp6TmAMt9JAHq0lXGxSctDXtcKRZs+QzVj457Xh DP3l4m+pMbuheOVIMIiuDRtqglfo+9iJ2UF4ePPa3W85IblYGb1yy/0A7WYma0QvICY4 Ef/yPvAnu6t0rIFD44voKYqi5TTgEIGXd3SsVSgmntThBJLXi5PWgL//U1VgDWdQybrv Ir4gFORJaVUWfUkT1JJXLwxwZvC9J2pQCJt8K5K4c+1K9j5syrftugRcfwABCFAXQvFS B8jQ== X-Gm-Message-State: AOJu0YySuzhvlhudTylJPsiObeQiVl425SsGHPXEnP4X/+9JQjgiUTVG JU7cZWQ14aTPeuDMO0SbnTudBYn1u/QqOn8o98DMuEkHzb7GL2xQ X-Google-Smtp-Source: AGHT+IHy6zBC8O9+mA2eUDWXv+xYTKJrd6v9IZFzXCtC83wvnR5cONkoyz8gLmADFZEerBjYnnz8gg== X-Received: by 2002:a05:6808:3c8a:b0:3da:e2b1:1100 with SMTP id 5614622812f47-3de2a8aef4emr7121936b6e.32.1724499001247; Sat, 24 Aug 2024 04:30:01 -0700 (PDT) Received: from localhost (58x12x133x161.ap58.ftth.ucom.ne.jp. [58.12.133.161]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7cd9ad6e323sm4068096a12.82.2024.08.24.04.29.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Aug 2024 04:30:00 -0700 (PDT) Date: Sat, 24 Aug 2024 20:29:32 +0900 Message-ID: From: kobarity To: Eli Zaretskii , Ship Mints Subject: Re: bug#72298: Should python-mode-abbrev-table declare :parents python-base-mode-abbrev-table? In-Reply-To: <86cylynwbi.fsf@gnu.org> References: <86cylynwbi.fsf@gnu.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.0.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: multipart/mixed; boundary="Multipart_Sat_Aug_24_20:29:32_2024-1" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72298 Cc: 72298@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: -1.0 (-) --Multipart_Sat_Aug_24_20:29:32_2024-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Eli Zaretskii wrote: >=20 > > From: Ship Mints > > Date: Sat, 17 Aug 2024 09:53:15 -0400 > >=20 > > Greetings. Curious if I'm barking up the wrong tree with this assessmen= t... > >=20 > > On Thu, Jul 25, 2024 at 2:33=E2=80=AFPM Ship Mints wrote: > >=20 > > An example of a personal hack to make this work could be to add someth= ing like this to a > > python-mode-hook: > >=20 > > (if (derived-mode-p 'python-base-mode) > > (setq local-abbrev-table python-base-mode-abbrev-table)) > >=20 > > On Thu, Jul 25, 2024 at 2:15=E2=80=AFPM Ship Mints wrote: > >=20 > > I was expecting that python-base-mode-abbrev-table would apply to both= python-mode and > > python-ts-mode buffers. python-ts-mode doesn't derive from python-mode= so the abbrev tables > > aren't shared by default. Unless I'm missing something, using a base t= able doesn't work for me. > >=20 > > (define-abbrev-table 'python-mode-abbrev-table () > > "Abbrev table for Python mode." > > ;; should this: > > :parents (list python-mode-skeleton-abbrev-table)) > > ;; be defined thusly? > > :parents (list python-base-mode-abbrev-table python-mode-skeleton-ab= brev-table)) > >=20 > > I tried to find guidance on this outside of hacking abbrev tables manu= ally to be shared. Perhaps > > other people have the same expectation. >=20 > kobarity, any comments? It seems to me that the skeletons should be defined in python-base-mode. How about the attached patch? --Multipart_Sat_Aug_24_20:29:32_2024-1 Content-Type: application/octet-stream; type=patch; name="0001-Make-Python-skeletons-available-in-python-ts-mode-as.patch" Content-Disposition: attachment; filename="0001-Make-Python-skeletons-available-in-python-ts-mode-as.patch" Content-Transfer-Encoding: 7bit >From d5e8f2b99f77939099b14c8893e02e4daa3b0cbe Mon Sep 17 00:00:00 2001 From: kobarity Date: Sat, 24 Aug 2024 20:13:16 +0900 Subject: [PATCH] Make Python skeletons available in python-ts-mode as well * lisp/progmodes/python.el (python-base-mode-abbrev-table): Renamed from python-mode-abbrev-table to be available for both python-mode and python-ts-mode. --- lisp/progmodes/python.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index a00289d6de9..fb4b9afc073 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -5390,8 +5390,8 @@ python-skeleton-define (format "Insert %s statement." name)) ,@skel)))) -(define-abbrev-table 'python-mode-abbrev-table () - "Abbrev table for Python mode." +(define-abbrev-table 'python-base-mode-abbrev-table () + "Abbrev table for Python modes." :parents (list python-mode-skeleton-abbrev-table)) (defmacro python-define-auxiliary-skeleton (name &optional doc &rest skel) -- 2.34.1 --Multipart_Sat_Aug_24_20:29:32_2024-1-- From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 24 10:17:05 2024 Received: (at 72298) by debbugs.gnu.org; 24 Aug 2024 14:17:05 +0000 Received: from localhost ([127.0.0.1]:41747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shrZh-0000JB-2u for submit@debbugs.gnu.org; Sat, 24 Aug 2024 10:17:05 -0400 Received: from mail-oo1-f50.google.com ([209.85.161.50]:49634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shrZe-0000IN-Qn for 72298@debbugs.gnu.org; Sat, 24 Aug 2024 10:17:04 -0400 Received: by mail-oo1-f50.google.com with SMTP id 006d021491bc7-5d5e1c86b83so2335975eaf.3 for <72298@debbugs.gnu.org>; Sat, 24 Aug 2024 07:16:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724508908; x=1725113708; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=E2zbmCLAsTZXJaXg0Pv7heGtlP/n51gaWw9cD1isWaw=; b=UWXOC/8Tetf9iOON4wiVbg4kdN86tksCPnU5NjqoSb38XUiWBWRB0hzYMFthCjHoCb AohfipGlRwk9gbfdEg46uCkaTG0YIgs0HWBacUqxDXEpGtuKlo9L5OCV4y3swlXqdr0W HuSv2/uT0gJzZQuOXMH6VPthBcyFxt0ijXGdLm42DKeuHmJ3M2EwMTCfkwfO3eudbych +ewVxpivyk58f7Bul9RnQ3RYUVwk0umEOe+FvmMYGhF8/iQWaezAWL4NYWdu4CZABJMj yH+jm3Hg67FROKIMaW7LK1VIbWR/XfFBxjFNFgTK3UWf3Hj+ZwdMQwVZDohPCm0Ha+5h J/kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724508908; x=1725113708; 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=E2zbmCLAsTZXJaXg0Pv7heGtlP/n51gaWw9cD1isWaw=; b=CF3WkQBLnzX9iZ39QZqFDtvoHObKNZlTOPhYdA9naFa+xHQS9Ah6h7pH1CPTLeEPJw heg2o0AC8FoaS5807U+6oUfwJfNBcPWD7cRviTBSuolMDwvUywA6nMmirLe4UT0XnLaC kGgiUgC48r3aEJ6ypWmToxhC3/TeE4SPb/RSFOWt7AOkJHX/nsiSSVxHRhU2qvbIgeyY JSoEEYuX5jNUrx5URDy7cQzh1hj2UD/zbZaYyEGu+mpKUtv/O2b1uh774rJ6jVZb465T pkLCnUEB7bvmUbB5pIcrWTtufwkcUY6RpnTqQpfBEyBSK4DTPbjWamJPgUQOu0YAiHoR Nptg== X-Forwarded-Encrypted: i=1; AJvYcCWsPI1NbpwcX1su8cWYpzKf2kjxQ2GVVxwqHXpGG789WMFbPZq0ruFieBlboaJxTFBd1NyjXA==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yx4ydzI53nKkzrUJk6U/gNuh1UEQ4gO2CsberPvGnBDucyB8ylg 8AwlbOAFh5A66sz9QbsXRhKmEdgBxHoT7cGTUND/PKG5fVk5IQfVCx7L3BkfIxsmjeL9XxzCU3u uObXPCsskC41c4Ws3poA6AzFtt24= X-Google-Smtp-Source: AGHT+IGIONWNt3hTouqQORjQaWVFEcvH/tVYg4UZbYE0qDdizp5oCKki37aNz05Ne2rg+uEX+v5+yMVvgLy/PF710aE= X-Received: by 2002:a05:6358:5908:b0:1aa:c71e:2b5b with SMTP id e5c5f4694b2df-1b5c21edd9emr549377255d.19.1724508908239; Sat, 24 Aug 2024 07:15:08 -0700 (PDT) MIME-Version: 1.0 References: <86cylynwbi.fsf@gnu.org> In-Reply-To: From: Ship Mints Date: Sat, 24 Aug 2024 10:14:57 -0400 Message-ID: Subject: Re: bug#72298: Should python-mode-abbrev-table declare :parents python-base-mode-abbrev-table? To: kobarity Content-Type: multipart/alternative; boundary="000000000000e3472c06206e8471" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72298 Cc: Eli Zaretskii , 72298@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: -1.0 (-) --000000000000e3472c06206e8471 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you. Will save confusion for people. On Sat, Aug 24, 2024 at 7:30=E2=80=AFAM kobarity wrote= : > Eli Zaretskii wrote: > > > > > From: Ship Mints > > > Date: Sat, 17 Aug 2024 09:53:15 -0400 > > > > > > Greetings. Curious if I'm barking up the wrong tree with this > assessment... > > > > > > On Thu, Jul 25, 2024 at 2:33=E2=80=AFPM Ship Mints > wrote: > > > > > > An example of a personal hack to make this work could be to add > something like this to a > > > python-mode-hook: > > > > > > (if (derived-mode-p 'python-base-mode) > > > (setq local-abbrev-table python-base-mode-abbrev-table)) > > > > > > On Thu, Jul 25, 2024 at 2:15=E2=80=AFPM Ship Mints > wrote: > > > > > > I was expecting that python-base-mode-abbrev-table would apply to > both python-mode and > > > python-ts-mode buffers. python-ts-mode doesn't derive from > python-mode so the abbrev tables > > > aren't shared by default. Unless I'm missing something, using a base > table doesn't work for me. > > > > > > (define-abbrev-table 'python-mode-abbrev-table () > > > "Abbrev table for Python mode." > > > ;; should this: > > > :parents (list python-mode-skeleton-abbrev-table)) > > > ;; be defined thusly? > > > :parents (list python-base-mode-abbrev-table > python-mode-skeleton-abbrev-table)) > > > > > > I tried to find guidance on this outside of hacking abbrev tables > manually to be shared. Perhaps > > > other people have the same expectation. > > > > kobarity, any comments? > > It seems to me that the skeletons should be defined in > python-base-mode. How about the attached patch? > --000000000000e3472c06206e8471 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you. Will save confusion for people.

On Sat, Aug 24, 2024 at = 7:30=E2=80=AFAM kobarity <kobarity= @gmail.com> wrote:
Eli Zaretskii wrote:
>
> > From: Ship Mints <shipmints@gmail.com>
> > Date: Sat, 17 Aug 2024 09:53:15 -0400
> >
> > Greetings. Curious if I'm barking up the wrong tree with this= assessment...
> >
> > On Thu, Jul 25, 2024 at 2:33=E2=80=AFPM Ship Mints <shipmints@gmail.com> = wrote:
> >
> >=C2=A0 An example of a personal hack to make this work could be to= add something like this to a
> >=C2=A0 python-mode-hook:
> >
> >=C2=A0 (if (derived-mode-p 'python-base-mode)
> >=C2=A0 =C2=A0 (setq local-abbrev-table python-base-mode-abbrev-tab= le))
> >
> >=C2=A0 On Thu, Jul 25, 2024 at 2:15=E2=80=AFPM Ship Mints <shipmints@gmail.com> wrote:
> >
> >=C2=A0 I was expecting that python-base-mode-abbrev-table would ap= ply to both python-mode and
> >=C2=A0 python-ts-mode buffers. python-ts-mode doesn't derive f= rom python-mode so the abbrev tables
> >=C2=A0 aren't shared by default. Unless I'm missing someth= ing, using a base table doesn't work for me.
> >
> >=C2=A0 (define-abbrev-table 'python-mode-abbrev-table ()
> >=C2=A0 =C2=A0 "Abbrev table for Python mode."
> >=C2=A0 ;; should this:
> >=C2=A0 =C2=A0 :parents (list python-mode-skeleton-abbrev-table)) > >=C2=A0 ;; be defined thusly?
> >=C2=A0 =C2=A0 :parents (list python-base-mode-abbrev-table python-= mode-skeleton-abbrev-table))
> >
> >=C2=A0 I tried to find guidance on this outside of hacking abbrev = tables manually to be shared. Perhaps
> >=C2=A0 other people have the same expectation.
>
> kobarity, any comments?

It seems to me that the skeletons should be defined in
python-base-mode.=C2=A0 How about the attached patch?
--000000000000e3472c06206e8471-- From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 24 20:36:25 2024 Received: (at 72298) by debbugs.gnu.org; 25 Aug 2024 00:36:25 +0000 Received: from localhost ([127.0.0.1]:42000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1si1F3-0000c7-Dx for submit@debbugs.gnu.org; Sat, 24 Aug 2024 20:36:25 -0400 Received: from mail-ot1-f46.google.com ([209.85.210.46]:60465) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1si1F0-0000bq-4C for 72298@debbugs.gnu.org; Sat, 24 Aug 2024 20:36:23 -0400 Received: by mail-ot1-f46.google.com with SMTP id 46e09a7af769-70949118d26so3089065a34.0 for <72298@debbugs.gnu.org>; Sat, 24 Aug 2024 17:35:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724546067; x=1725150867; darn=debbugs.gnu.org; h=mime-version:user-agent:references:in-reply-to:subject:cc:to:from :message-id:date:from:to:cc:subject:date:message-id:reply-to; bh=VykASrSoqaClI4v1NBh40YgmsrRO7koHyLSLOLfHOfQ=; b=MbV6R6y0Rpms+NqF9QhNk47Xj/pBgmY1GPO998XhQhhviHJXrNqepMTeb0FFyHfzNx uXSbet8dE50CQtiTK0NJRQOR/Gvl9pRpqk7mhMG8QDbrpwEUsHyM7sbi8wzHgoNETChl MNlW3fU4sPdKKwvtThA9bUF3IPAc1OexzGZAvUuE5ceNkbF9x/mm/pfsGy82KRILcqSQ ZCj6FvCPpbBnpqokZZ26EfV+HBjv71mhvkpGgatlx9GuKCw5y4RJ61J9efH2YLJ+FtNd ZDdba49A3suduTs/zWhoDxPzUBh1KnDwQI62jT7Po1DUI+d9xUS0M06VkXBiR1t9g8BI V5PQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724546067; x=1725150867; h=mime-version:user-agent:references:in-reply-to:subject:cc:to:from :message-id:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=VykASrSoqaClI4v1NBh40YgmsrRO7koHyLSLOLfHOfQ=; b=oJ0TbNyFbzvkaIdDTVfTwxf6Saf8w+rLeDpmzarUtSxgyWXy459vlllZjgTR2SFUQv zM1AhYAUAlM7R5Grb/WGYqT+UyklWL5OG2SkzxsM7RQ3MTNvVc834bYoX2WBXIIsrVOf w1YEa0SJg0MqB4LyWjgCl46aLW8zpyAsbE3EX4hrjwNEomAvrEu4z7V74gY9ggUaHc8t GnK43g85JQthC4N8BbQlyHXz42Ah5EZd7uj2wspdDUQknL3yP98kbvEsQadifn4RSk+W PxpCaNRDgrWBWAqovfe4OMCiVCHajSUKV9zCHlY7RcF/8kxveL5sqlNmBxUu6eF7IIKN e96w== X-Gm-Message-State: AOJu0Yyn2HH5xW6GEgeUQSY8ozDKXcHBMFDV5rehbRfGEfd2i0oVhGMo nDwSmNNSFqnetz5XPL0OlKE+SOLvaKeqyr3JjoiXyyfGDWvsUu0G X-Google-Smtp-Source: AGHT+IHYWIx0js42EZi5tkkTrceQeoa7WXKr0TGjjv9LMkodCk0y00oFI+QEpr6nCa/i3EbSEGXgOA== X-Received: by 2002:a05:6830:3745:b0:709:4936:d8fd with SMTP id 46e09a7af769-70e0ec1c73fmr9472810a34.29.1724546066965; Sat, 24 Aug 2024 17:34:26 -0700 (PDT) Received: from localhost (58x12x133x161.ap58.ftth.ucom.ne.jp. [58.12.133.161]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2d5ebbb17cesm9072185a91.40.2024.08.24.17.34.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Aug 2024 17:34:26 -0700 (PDT) Date: Sun, 25 Aug 2024 09:34:19 +0900 Message-ID: From: kobarity To: Ship Mints , Eli Zaretskii Subject: Re: bug#72298: Should python-mode-abbrev-table declare :parents python-base-mode-abbrev-table? In-Reply-To: References: <86cylynwbi.fsf@gnu.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.0.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: multipart/mixed; boundary="Multipart_Sun_Aug_25_09:34:19_2024-1" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72298 Cc: 72298@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: -1.0 (-) --Multipart_Sun_Aug_25_09:34:19_2024-1 Content-Type: text/plain; charset=US-ASCII Ship Mints wrote: > Thank you. Will save confusion for people. Thank you for your confirmation. I forgot to include the bug ID in the commit message for the previous patch, so I am attaching a revised version. The patch itself has not been changed. --Multipart_Sun_Aug_25_09:34:19_2024-1 Content-Type: application/octet-stream; type=patch; name="0001-Make-Python-skeletons-available-in-python-ts-mode-as.patch" Content-Disposition: attachment; filename="0001-Make-Python-skeletons-available-in-python-ts-mode-as.patch" Content-Transfer-Encoding: 7bit >From 6f00df168c04a06b292bb2e21ec38cd325d1648d Mon Sep 17 00:00:00 2001 From: kobarity Date: Sat, 24 Aug 2024 20:13:16 +0900 Subject: [PATCH] Make Python skeletons available in python-ts-mode as well * lisp/progmodes/python.el (python-base-mode-abbrev-table): Renamed from python-mode-abbrev-table to be available for both python-mode and python-ts-mode. (Bug#72298) --- lisp/progmodes/python.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index a00289d6de9..fb4b9afc073 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -5390,8 +5390,8 @@ python-skeleton-define (format "Insert %s statement." name)) ,@skel)))) -(define-abbrev-table 'python-mode-abbrev-table () - "Abbrev table for Python mode." +(define-abbrev-table 'python-base-mode-abbrev-table () + "Abbrev table for Python modes." :parents (list python-mode-skeleton-abbrev-table)) (defmacro python-define-auxiliary-skeleton (name &optional doc &rest skel) -- 2.34.1 --Multipart_Sun_Aug_25_09:34:19_2024-1-- From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 31 05:44:58 2024 Received: (at 72298-done) by debbugs.gnu.org; 31 Aug 2024 09:44:59 +0000 Received: from localhost ([127.0.0.1]:53960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1skKfC-0000la-Lp for submit@debbugs.gnu.org; Sat, 31 Aug 2024 05:44:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41144) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1skKfA-0000lM-AY for 72298-done@debbugs.gnu.org; Sat, 31 Aug 2024 05:44:57 -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 1skKe9-0007Gw-3I; Sat, 31 Aug 2024 05:43:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=qpXBXXxdqGa1oJKslaBP92sSxCAtA2PdXLP9sW5X9ag=; b=TYbNhrB4hCQN dXufF0E3qFSdSPEf8g3uXUFld4VYJulbhUjPmmLpoawIr0eZAYY9HYZwjCvbpR+L9K2bAX9NPtEEf 3FFzW9dYWzDR9IdNahniy4Edg3loKQg9lKVqyDBtD1UHxxv4Wy8HCW/cIghtemYT5m1L9tXag8WTr 1eRnatvmHPaVIwBMj9lLvgvUrLp+yWc2arHNnOFRy8lxwAH3bBoAnsALP4w6M21nQCvDTof9Et4d4 bduvSn1cIsmP49s1OnG4p9d2WD4eHwJj+ZzyXi2LIenekGmfdD9cd0B3FEQSac2cU+3WkCbhZacJT 8uJkKokX/IG8ofTM91KjOw==; Date: Sat, 31 Aug 2024 12:43:50 +0300 Message-Id: <8634mlc9ih.fsf@gnu.org> From: Eli Zaretskii To: kobarity In-Reply-To: (message from kobarity on Sun, 25 Aug 2024 09:34:19 +0900) Subject: Re: bug#72298: Should python-mode-abbrev-table declare :parents python-base-mode-abbrev-table? References: <86cylynwbi.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72298-done Cc: shipmints@gmail.com, 72298-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 (---) > Date: Sun, 25 Aug 2024 09:34:19 +0900 > From: kobarity > Cc: 72298@debbugs.gnu.org > > Ship Mints wrote: > > Thank you. Will save confusion for people. > > Thank you for your confirmation. > > I forgot to include the bug ID in the commit message for the previous > patch, so I am attaching a revised version. The patch itself has not > been changed. Thanks, installed on the emacs-30 branch, and closing the bug. From unknown Mon Jun 23 04:08:25 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 28 Sep 2024 11:24:11 +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