From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#72298: Should python-mode-abbrev-table declare :parents python-base-mode-abbrev-table? Date: Sat, 24 Aug 2024 11:45:21 +0300 Message-ID: <86cylynwbi.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40388"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72298@debbugs.gnu.org To: Ship Mints , kobarity Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 24 10:46:35 2024 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 1shmPq-000AKn-8f for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Aug 2024 10:46:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1shmPj-00083M-1S; Sat, 24 Aug 2024 04:46:27 -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 1shmPW-00080v-Bm for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2024 04:46:24 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1shmPW-0000hk-2O for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2024 04:46:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=DGp5tqNQtQVokBxwAotu9M1iII7xMghh/QbOjPPAy0o=; b=cQ2bCd3zVAC8vdddwwmZjsVdvuqL9XP3fCxom/k9eQuLiYr1Jc6OhJs6mwelWcPL29hNlE4TkDkdnKfNI/gxJy2FcghFE1RE82AHmiil8RvE149z14g3s9OjbMM/C83s62PEXrIZV+abpMC8IzMqXys1N5jW9lY05bd9okWP8YwqeVfisz8WtJi7HcJAj0jZfDOKloRgEyE4wH7PqVg+RFqAj/rD8/0QiUUtj8D6iLQk8HK27TorfVueqL8ewXhcOxCApD6JQPcRz+jZMZsUiZPpKUCbJYxqJGMdwMNVZxSr6StkBAkTYmdXoDGEczgQ2Yy3UJvH4EPd/2hoT9O8rw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1shmQI-0007ST-B3 for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2024 04:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Aug 2024 08:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72298 X-GNU-PR-Package: emacs Original-Received: via spool by 72298-submit@debbugs.gnu.org id=B72298.172448918128613 (code B ref 72298); Sat, 24 Aug 2024 08:47:02 +0000 Original-Received: (at 72298) by debbugs.gnu.org; 24 Aug 2024 08:46:21 +0000 Original-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 Original-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 Original-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==; In-Reply-To: (message from Ship Mints on Sat, 17 Aug 2024 09:53:15 -0400) 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:290644 Archived-At: > 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?