all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#14284: 24.3; regression, python.el, abbrevs don't expand
@ 2013-04-27  6:20 Andreas Röhler
  2013-04-27 13:09 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Röhler @ 2013-04-27  6:20 UTC (permalink / raw)
  To: 14284

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)





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#14284: 24.3; regression, python.el, abbrevs don't expand
  2013-04-27  6:20 bug#14284: 24.3; regression, python.el, abbrevs don't expand Andreas Röhler
@ 2013-04-27 13:09 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2013-04-27 13:09 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: 14284-done

> 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

Indeed, it's a bug in Emacs-24.3: you need to enable
`python-skeleton-autoinsert'.

I fixed it recently in trunk so that `python-skeleton-autoinsert' only
applies to python-mode's skeletons and not to other abbrevs.


        Stefan





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-27 13:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-27  6:20 bug#14284: 24.3; regression, python.el, abbrevs don't expand Andreas Röhler
2013-04-27 13:09 ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.