GNU bug report logs - #18841
24.4; value of python-skeleton-autoinsert ignored

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Sun, 26 Oct 2014 11:44:01 UTC

Severity: minor

Found in version 24.4

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18841 in the body.
You can then email your comments to 18841 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#18841; Package emacs. (Sun, 26 Oct 2014 11:44:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andreas Röhler <andreas.roehler <at> easy-emacs.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 26 Oct 2014 11:44:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.4; value of python-skeleton-autoinsert ignored
Date: Sun, 26 Oct 2014 12:42:52 +0100
With python-skeleton-autoinsert nil and abbrev-mode t,

After if<space> user is prompted.

This should happen only if

python-skeleton-autoinsert is non-nil.

BTW coming upon, as this happens with python-mode.el also, unloading 'python doesn't help.

Thanks all,

Andreas


In GNU Emacs 24.4.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2014-10-24

Windowing system distributor `The X.Org Foundation', version 11.0.11204000
System Description:	Debian GNU/Linux 7.7 (wheezy)

Important settings:
  value of $LANG: de_DE.utf8
  locale-coding-system: utf-8-unix

Major mode: Python

Minor modes in effect:
  tooltip-mode: t
  electric-indent-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 <M-backspace> <M-backspace> <M-backspace> <M-backspace>
e i <backspace> y p - <backspace> . p y <return> C-h
v p y t h o n - i n <tab> <tab> <M-backspace> <tab>
s k <tab> <tab> u <tab> <return> C-x 1 M-> <return>
M-< <down> <down> M-x a b b r <tab> m <tab> <return>
<return> i f SPC C-g <help-echo> <help-echo> <help-echo>
M-x r e p i r t <backspace> <backspace> <backspace>
o r t - e m <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list... [3 times]
Type C-x 1 to delete the help window.
Mark set [2 times]
Abbrev mode enabled
Quit

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 skeleton help-mode help-fns python easymenu json
comint ring cl-loaddefs cl-lib ansi-color time-date tooltip electric
uniquify 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
prog-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 nadvice 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
inotify dynamic-setting x-toolkit x multi-tty emacs)

Memory information:
((conses 8 120163 6654)
 (symbols 24 36514 0)
 (miscs 20 82 189)
 (strings 16 48566 4291)
 (string-bytes 1 678391)
 (vectors 8 11105)
 (vector-slots 4 414549 6002)
 (floats 8 66 565)
 (intervals 28 623 19)
 (buffers 512 15)
 (heap 1024 36669 904))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18841; Package emacs. (Sun, 26 Oct 2014 19:10:03 GMT) Full text and rfc822 format available.

Message #8 received at 18841 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 18841 <at> debbugs.gnu.org
Subject: Re: bug#18841: 24.4; value of python-skeleton-autoinsert ignored
Date: Sun, 26 Oct 2014 15:09:21 -0400
> With python-skeleton-autoinsert nil and abbrev-mode t,
> After if<space> user is prompted.

Hmm... I don't see it.  I tried

   % src/emacs -Q ~/tmp/foo.py --eval '(setq abbrev-mode t)'

then I typed "if SPC" and the only thing that happened is that "if "
got inserted into the buffer.

Can you provide a more detailed recipe?


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18841; Package emacs. (Mon, 27 Oct 2014 06:58:01 GMT) Full text and rfc822 format available.

Message #11 received at 18841 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 18841 <at> debbugs.gnu.org
Subject: Re: bug#18841: 24.4; value of python-skeleton-autoinsert ignored
Date: Mon, 27 Oct 2014 07:57:40 +0100
[Message part 1 (text/plain, inline)]
On 26.10.2014 20:09, Stefan Monnier wrote:
>> With python-skeleton-autoinsert nil and abbrev-mode t,
>> After if<space> user is prompted.
>
> Hmm... I don't see it.  I tried
>
>     % src/emacs -Q ~/tmp/foo.py --eval '(setq abbrev-mode t)'
>
> then I typed "if SPC" and the only thing that happened is that "if "
> got inserted into the buffer.
>
> Can you provide a more detailed recipe?
>

Still some attachments.

Skeletons starts here also with your form.

Another way to check:

open file indicated by abbrev-file-name.

Search "python-skeleton-if" - which shouldn't be there if `python-skeleton-autoinsert' is nil.



[python-skeleton-autoinsert-nil.png (image/png, attachment)]
[skeleton-triggered.png (image/png, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18841; Package emacs. (Mon, 27 Oct 2014 09:35:02 GMT) Full text and rfc822 format available.

Message #14 received at 18841 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 18841 <at> debbugs.gnu.org
Subject: Re: bug#18841: 24.4; value of python-skeleton-autoinsert ignored
Date: Mon, 27 Oct 2014 10:33:47 +0100
On 26.10.2014 20:09, Stefan Monnier wrote:
>> With python-skeleton-autoinsert nil and abbrev-mode t,
>> After if<space> user is prompted.
>
> Hmm... I don't see it.  I tried
>
>     % src/emacs -Q ~/tmp/foo.py --eval '(setq abbrev-mode t)'
>
> then I typed "if SPC" and the only thing that happened is that "if "
> got inserted into the buffer.
>
> Can you provide a more detailed recipe?
>

Hmm, when starting from an empty abbrev-table, bug doesn't occur.
Seems some stuff was kept from history.
Maybe close this.

Thanks,

Andreas





Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. (Mon, 27 Oct 2014 13:22:02 GMT) Full text and rfc822 format available.

Notification sent to Andreas Röhler <andreas.roehler <at> easy-emacs.de>:
bug acknowledged by developer. (Mon, 27 Oct 2014 13:22:03 GMT) Full text and rfc822 format available.

Message #19 received at 18841-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 18841-done <at> debbugs.gnu.org
Subject: Re: bug#18841: 24.4; value of python-skeleton-autoinsert ignored
Date: Mon, 27 Oct 2014 09:21:05 -0400
> Hmm, when starting from an empty abbrev-table, bug doesn't occur.
> Seems some stuff was kept from history.

Hmm... I can't think of how that would have happened.

> Maybe close this.

OK, closing.  Please re-open it if/when it occurs again,


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18841; Package emacs. (Mon, 27 Oct 2014 17:11:02 GMT) Full text and rfc822 format available.

Message #22 received at 18841-done <at> debbugs.gnu.org (full text, mbox):

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 18841-done <at> debbugs.gnu.org
Subject: Re: bug#18841: 24.4; value of python-skeleton-autoinsert ignored
Date: Mon, 27 Oct 2014 18:10:41 +0100
reopen #18841

On 27.10.2014 14:21, Stefan Monnier wrote:
>> Hmm, when starting from an empty abbrev-table, bug doesn't occur.
>> Seems some stuff was kept from history.
>
> Hmm... I can't think of how that would have happened.
>
>> Maybe close this.
>
> OK, closing.  Please re-open it if/when it occurs again,
>

Seeing a couple of things around meanwhile.

Basic problem seems writing to abbrev-file once python-skeleton-autoinsert is t.
This only occurs at start, i.e. changing it for session does not activate skeleton - a bug of its own.

When python-skeleton-autoinsert  is non-nil, skeleton-trigger are written into the abbrev-table.
Which seem to survive also when python-skeleton-autoinsert is set back to nil.
Thus causing the reported.








Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18841; Package emacs. (Mon, 27 Oct 2014 17:48:02 GMT) Full text and rfc822 format available.

Message #25 received at 18841-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 18841-done <at> debbugs.gnu.org
Subject: Re: bug#18841: 24.4; value of python-skeleton-autoinsert ignored
Date: Mon, 27 Oct 2014 13:47:27 -0400
> Basic problem seems writing to abbrev-file once
> python-skeleton-autoinsert is t.  This only occurs at start,
> i.e. changing it for session does not activate skeleton - a bug of
> its own.

> When python-skeleton-autoinsert  is non-nil, skeleton-trigger are
> written into the abbrev-table.  Which seem to survive also when
> python-skeleton-autoinsert is set back to nil.  Thus causing
> the reported.

I'm not sure I understand exactly what that means.  Can you make
a recipe from that data?


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18841; Package emacs. (Tue, 28 Oct 2014 06:35:01 GMT) Full text and rfc822 format available.

Message #28 received at 18841-done <at> debbugs.gnu.org (full text, mbox):

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 18841-done <at> debbugs.gnu.org
Subject: Re: bug#18841: 24.4; value of python-skeleton-autoinsert ignored
Date: Tue, 28 Oct 2014 07:33:44 +0100
close #18841
On 27.10.2014 18:47, Stefan Monnier wrote:
>> Basic problem seems writing to abbrev-file once
>> python-skeleton-autoinsert is t.  This only occurs at start,
>> i.e. changing it for session does not activate skeleton - a bug of
>> its own.
>
>> When python-skeleton-autoinsert  is non-nil, skeleton-trigger are
>> written into the abbrev-table.  Which seem to survive also when
>> python-skeleton-autoinsert is set back to nil.  Thus causing
>> the reported.
>
> I'm not sure I understand exactly what that means.  Can you make
> a recipe from that data?
>
>
>          Stefan
>

My mistake, seems all gone now, sorry for the noice,

Andreas




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 25 Nov 2014 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 213 days ago.

Previous Next


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