unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#8630: 23.1; Emacs freezes when creating nearly empty __init__.py
@ 2011-05-06  7:57 Daniel Gonzalez
  2011-05-06 16:04 ` Glenn Morris
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Gonzalez @ 2011-05-06  7:57 UTC (permalink / raw)
  To: 8630

Create new file __init__.py, insert a single space, and save the
file. Emacs freezes, and must be killed (xkill in my case).

In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3)
 of 2010-03-26 on palmer, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.10604000
configured using `configure  '--build=i486-linux-gnu'
'--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib'
'--libexecdir=/usr/lib' '--localstatedir=/var/lib'
'--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes'
'--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim'
'--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars'
'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu'
'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS=''
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t
Major mode: Lisp Interaction
Minor modes in effect:
  shell-dirtrack-mode: t
  icomplete-mode: t
  which-function-mode: t
  display-time-mode: t
  desktop-save-mode: t
  recentf-mode: t
  delete-selection-mode: t
  show-paren-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
Recent input:
<help-echo> M-x e m a c s <tab> r e <tab> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> r e
p o r t - e <tab> <return>
Recent messages:
Loading debian-ispell...done
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading /etc/emacs/site-start.d/50git-core.el (source)...done
Loading /etc/emacs/site-start.d/50psvn.el (source)...done
Loading /home/gonvaled/.recentf...done
Cleaning up the recentf list...done (0 removed) [3 times]
No desktop file.
For information about GNU Emacs and the GNU system, type C-h C-a.
call-interactively: Text is read-only [2 times]





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

* bug#8630: 23.1; Emacs freezes when creating nearly empty __init__.py
  2011-05-06  7:57 bug#8630: 23.1; Emacs freezes when creating nearly empty __init__.py Daniel Gonzalez
@ 2011-05-06 16:04 ` Glenn Morris
  2011-05-06 16:11   ` Daniel Gonzalez
  0 siblings, 1 reply; 7+ messages in thread
From: Glenn Morris @ 2011-05-06 16:04 UTC (permalink / raw)
  To: Daniel Gonzalez; +Cc: 8630

Daniel Gonzalez wrote:

> Create new file __init__.py, insert a single space, and save the
> file. Emacs freezes, and must be killed (xkill in my case).
>
> In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3)
>  of 2010-03-26 on palmer, modified by Debian

I am unable to reproduce this with Debian's Emacs 23.3 (this fixes
various bugs, so it is a good idea to update if you can), or with 23.1
on another system.

Does this happen starting from `emacs -Q'?
Can Emacs be interrupted with ctrl-g?





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

* bug#8630: 23.1; Emacs freezes when creating nearly empty __init__.py
  2011-05-06 16:04 ` Glenn Morris
@ 2011-05-06 16:11   ` Daniel Gonzalez
  2011-05-06 16:57     ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Gonzalez @ 2011-05-06 16:11 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 8630

Now it is freezing just when opening a new buffer pointing to an
unexisting file __init__.py.
Not possible to type anything.

ctrl-g is also not working.

emacs -Q does not exhibit the problem. It seems it is caused by my
settings, or any of the loaded modules. Difficult to say what exactly,
since my .emacs is quite big.

On Fri, May 6, 2011 at 6:04 PM, Glenn Morris <rgm@gnu.org> wrote:
> Daniel Gonzalez wrote:
>
>> Create new file __init__.py, insert a single space, and save the
>> file. Emacs freezes, and must be killed (xkill in my case).
>>
>> In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3)
>>  of 2010-03-26 on palmer, modified by Debian
>
> I am unable to reproduce this with Debian's Emacs 23.3 (this fixes
> various bugs, so it is a good idea to update if you can), or with 23.1
> on another system.
>
> Does this happen starting from `emacs -Q'?
> Can Emacs be interrupted with ctrl-g?
>





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

* bug#8630: 23.1; Emacs freezes when creating nearly empty __init__.py
  2011-05-06 16:11   ` Daniel Gonzalez
@ 2011-05-06 16:57     ` Eli Zaretskii
  2011-05-06 17:06       ` Daniel Gonzalez
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2011-05-06 16:57 UTC (permalink / raw)
  To: Daniel Gonzalez; +Cc: 8630

> From: Daniel Gonzalez <gonvaled@gonvaled.com>
> Date: Fri, 6 May 2011 18:11:02 +0200
> Cc: 8630@debbugs.gnu.org
> 
> emacs -Q does not exhibit the problem. It seems it is caused by my
> settings, or any of the loaded modules. Difficult to say what exactly,
> since my .emacs is quite big.

Can you bisect your .emacs until you find the culprit?





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

* bug#8630: 23.1; Emacs freezes when creating nearly empty __init__.py
  2011-05-06 16:57     ` Eli Zaretskii
@ 2011-05-06 17:06       ` Daniel Gonzalez
  2011-05-06 17:14         ` Glenn Morris
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Gonzalez @ 2011-05-06 17:06 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 8630

This line seems to be the culprit:

(autoload 'python-mode "python-mode" "Python Mode." t)

With that line commented out, the problem does not occur anymore.

And btw, it does not only occur with files named __init__.py, but also
other .py files.

The rule to reproduce it seems to be:
1) open a new buffer pointing to a non-existing .py file
2) enter some text - but not very much, just a bit. I have not
determined the maximum size for the problem to occur
3) save the buffer -> emacs freezes


On Fri, May 6, 2011 at 6:57 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Daniel Gonzalez <gonvaled@gonvaled.com>
>> Date: Fri, 6 May 2011 18:11:02 +0200
>> Cc: 8630@debbugs.gnu.org
>>
>> emacs -Q does not exhibit the problem. It seems it is caused by my
>> settings, or any of the loaded modules. Difficult to say what exactly,
>> since my .emacs is quite big.
>
> Can you bisect your .emacs until you find the culprit?
>





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

* bug#8630: 23.1; Emacs freezes when creating nearly empty __init__.py
  2011-05-06 17:06       ` Daniel Gonzalez
@ 2011-05-06 17:14         ` Glenn Morris
  2011-05-06 17:16           ` Daniel Gonzalez
  0 siblings, 1 reply; 7+ messages in thread
From: Glenn Morris @ 2011-05-06 17:14 UTC (permalink / raw)
  To: Daniel Gonzalez; +Cc: 8630

Daniel Gonzalez wrote:

> This line seems to be the culprit:
>
> (autoload 'python-mode "python-mode" "Python Mode." t)
>
> With that line commented out, the problem does not occur anymore.

Right, so you're not using the python mode that comes with Emacs.
So you need to either use the one that does, or report your problem to
whoever maintains the mode that you use.





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

* bug#8630: 23.1; Emacs freezes when creating nearly empty __init__.py
  2011-05-06 17:14         ` Glenn Morris
@ 2011-05-06 17:16           ` Daniel Gonzalez
  0 siblings, 0 replies; 7+ messages in thread
From: Daniel Gonzalez @ 2011-05-06 17:16 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 8630

Correct! Thanks for your attention.

On Fri, May 6, 2011 at 7:14 PM, Glenn Morris <rgm@gnu.org> wrote:
> Daniel Gonzalez wrote:
>
>> This line seems to be the culprit:
>>
>> (autoload 'python-mode "python-mode" "Python Mode." t)
>>
>> With that line commented out, the problem does not occur anymore.
>
> Right, so you're not using the python mode that comes with Emacs.
> So you need to either use the one that does, or report your problem to
> whoever maintains the mode that you use.
>





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

end of thread, other threads:[~2011-05-06 17:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-06  7:57 bug#8630: 23.1; Emacs freezes when creating nearly empty __init__.py Daniel Gonzalez
2011-05-06 16:04 ` Glenn Morris
2011-05-06 16:11   ` Daniel Gonzalez
2011-05-06 16:57     ` Eli Zaretskii
2011-05-06 17:06       ` Daniel Gonzalez
2011-05-06 17:14         ` Glenn Morris
2011-05-06 17:16           ` Daniel Gonzalez

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).