* bug#18841: 24.4; value of python-skeleton-autoinsert ignored
@ 2014-10-26 11:42 Andreas Röhler
2014-10-26 19:09 ` Stefan Monnier
0 siblings, 1 reply; 8+ messages in thread
From: Andreas Röhler @ 2014-10-26 11:42 UTC (permalink / raw)
To: 18841
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))
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#18841: 24.4; value of python-skeleton-autoinsert ignored
2014-10-26 11:42 bug#18841: 24.4; value of python-skeleton-autoinsert ignored Andreas Röhler
@ 2014-10-26 19:09 ` Stefan Monnier
2014-10-27 6:57 ` Andreas Röhler
2014-10-27 9:33 ` Andreas Röhler
0 siblings, 2 replies; 8+ messages in thread
From: Stefan Monnier @ 2014-10-26 19:09 UTC (permalink / raw)
To: Andreas Röhler; +Cc: 18841
> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#18841: 24.4; value of python-skeleton-autoinsert ignored
2014-10-26 19:09 ` Stefan Monnier
@ 2014-10-27 6:57 ` Andreas Röhler
2014-10-27 9:33 ` Andreas Röhler
1 sibling, 0 replies; 8+ messages in thread
From: Andreas Röhler @ 2014-10-27 6:57 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 18841
[-- Attachment #1: Type: text/plain, Size: 624 bytes --]
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.
[-- Attachment #2: python-skeleton-autoinsert-nil.png --]
[-- Type: image/png, Size: 35130 bytes --]
[-- Attachment #3: skeleton-triggered.png --]
[-- Type: image/png, Size: 23479 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#18841: 24.4; value of python-skeleton-autoinsert ignored
2014-10-26 19:09 ` Stefan Monnier
2014-10-27 6:57 ` Andreas Röhler
@ 2014-10-27 9:33 ` Andreas Röhler
2014-10-27 13:21 ` Stefan Monnier
1 sibling, 1 reply; 8+ messages in thread
From: Andreas Röhler @ 2014-10-27 9:33 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 18841
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#18841: 24.4; value of python-skeleton-autoinsert ignored
2014-10-27 9:33 ` Andreas Röhler
@ 2014-10-27 13:21 ` Stefan Monnier
2014-10-27 17:10 ` Andreas Röhler
0 siblings, 1 reply; 8+ messages in thread
From: Stefan Monnier @ 2014-10-27 13:21 UTC (permalink / raw)
To: Andreas Röhler; +Cc: 18841-done
> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#18841: 24.4; value of python-skeleton-autoinsert ignored
2014-10-27 13:21 ` Stefan Monnier
@ 2014-10-27 17:10 ` Andreas Röhler
2014-10-27 17:47 ` Stefan Monnier
0 siblings, 1 reply; 8+ messages in thread
From: Andreas Röhler @ 2014-10-27 17:10 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 18841-done
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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#18841: 24.4; value of python-skeleton-autoinsert ignored
2014-10-27 17:10 ` Andreas Röhler
@ 2014-10-27 17:47 ` Stefan Monnier
2014-10-28 6:33 ` Andreas Röhler
0 siblings, 1 reply; 8+ messages in thread
From: Stefan Monnier @ 2014-10-27 17:47 UTC (permalink / raw)
To: Andreas Röhler; +Cc: 18841-done
> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#18841: 24.4; value of python-skeleton-autoinsert ignored
2014-10-27 17:47 ` Stefan Monnier
@ 2014-10-28 6:33 ` Andreas Röhler
0 siblings, 0 replies; 8+ messages in thread
From: Andreas Röhler @ 2014-10-28 6:33 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 18841-done
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
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-10-28 6:33 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-26 11:42 bug#18841: 24.4; value of python-skeleton-autoinsert ignored Andreas Röhler
2014-10-26 19:09 ` Stefan Monnier
2014-10-27 6:57 ` Andreas Röhler
2014-10-27 9:33 ` Andreas Röhler
2014-10-27 13:21 ` Stefan Monnier
2014-10-27 17:10 ` Andreas Röhler
2014-10-27 17:47 ` Stefan Monnier
2014-10-28 6:33 ` Andreas Röhler
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.