Subject: 24.3; regression, python.el, abbrevs don't expand

From: Andreas Röhler <[email-masked]>
Date: Sat, 27 Apr 2013 08:20:50 +0200

in Python-mode from emacs -Q,

M-x edit-abbrevs displays

"class" (sys)	    0 ""		     python-skeleton-class
"def" (sys)	    0 ""		     python-skeleton-def
"for" (sys)	    0 ""		     python-skeleton-for
"if" (sys)	    0 ""		     python-skeleton-if
"pst"	       0    "pdb.set_trace()"
"try" (sys)	    0 ""		     python-skeleton-try
"ts"	       0    "time.sleep(0.1)"
"tuir"	       0    "the unbelievable is reality"
"while" (sys)	    0 ""		     python-skeleton-while

However, when in Python-mode and cursor behind "ts", SPACE, resp.
M-x expand-abbrev has no effect.

Does not happen with Emacs 24.2

In GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 2.24.14)
  of 2013-03-05
Windowing system distributor `The X.Org Foundation', version 11.0.11302000
System Description:	openSUSE 12.3 Beta 1 (i586)

Configured using:
  `configure 'CFLAGS=-g -O2 -fno-optimize-sibling-calls''

Important settings:
   value of $LC_CTYPE: de_DE.UTF-8
   value of $LANG: de_DE.utf8
   value of $XMODIFIERS: @im=local
   locale-coding-system: utf-8-unix
   default enable-multibyte-characters: t

Major mode: Python

Minor modes in effect:
   tooltip-mode: t
   mouse-wheel-mode: t
   tool-bar-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   blink-cursor-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t
   line-number-mode: t
   transient-mark-mode: t
   abbrev-mode: t

Recent input:
C-x C-f p r a b <tab> <backspace> <backspace> o g a
<tab> p y t <tab> h o n / e <tab> y p . p y <return>
<down> <down> C-SPC M-> C-w <return> M-x a b b r e
v - m o d e <return> M-x e d i t - a b b <tab> <return>
C-x b <return> t s SPC <backspace> M-x e x p a n d
- a b b <tab> <return> M-x r e p o r t - r <backspace>
e m a c s - b u g <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list... [2 times]
Mark set
Abbrev mode enabled
You can run the command `expand-abbrev' with C-x '

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils python rx comint ring ansi-color help-mode
easymenu time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel
x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list
newcomment lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)