GNU bug report logs - #72298
Should python-mode-abbrev-table declare :parents python-base-mode-abbrev-table?

Previous Next

Package: emacs;

Reported by: Ship Mints <shipmints <at> gmail.com>

Date: Thu, 25 Jul 2024 18:15:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Ship Mints <shipmints <at> gmail.com>
Subject: bug#72298: closed (Re: bug#72298: Should python-mode-abbrev-table
 declare :parents python-base-mode-abbrev-table?)
Date: Sat, 31 Aug 2024 09:45:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#72298: Should python-mode-abbrev-table declare :parents python-base-mode-abbrev-table?

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 72298 <at> debbugs.gnu.org.

-- 
72298: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=72298
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: kobarity <kobarity <at> gmail.com>
Cc: shipmints <at> gmail.com, 72298-done <at> debbugs.gnu.org
Subject: Re: bug#72298: Should python-mode-abbrev-table declare :parents
 python-base-mode-abbrev-table?
Date: Sat, 31 Aug 2024 12:43:50 +0300
> Date: Sun, 25 Aug 2024 09:34:19 +0900
> From: kobarity <kobarity <at> gmail.com>
> Cc: 72298 <at> 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.

[Message part 3 (message/rfc822, inline)]
From: Ship Mints <shipmints <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Should python-mode-abbrev-table declare :parents
 python-base-mode-abbrev-table?
Date: Thu, 25 Jul 2024 14:13:44 -0400
[Message part 4 (text/plain, inline)]
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
[Message part 5 (text/html, inline)]

This bug report was last modified 267 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.