From: gilles.naulin@laposte.net
To: 24815@debbugs.gnu.org
Subject: bug#24815: 25.1; emacs could hang whith hs-minor-mode and python-mode
Date: Fri, 28 Oct 2016 18:35:11 +0200 (CEST) [thread overview]
Message-ID: <1234264807.1473759.1477672511527.JavaMail.zimbra@laposte.net> (raw)
In-Reply-To: <804969215.1445131.1477671599466.JavaMail.zimbra@laposte.net>
[-- Attachment #1: Type: text/plain, Size: 724 bytes --]
Hi,
In python-mode, emacs could hang if you choose a variable name which ends by "def",
when you run "hide-all" function (hs-minor-mode menu)
Code sample
#
# -*- coding: utf-8 -*-
#
with open("default.conf", 'r') as fdef:
my_conf = fdef.readlines()
##
I had to kill the session.
The problem seems to come from the regexp for python-mode in the variable
hs-special-modes-alist :
(elt (assoc 'python-mode hs-special-modes-alist) 1)
gives
"\\s-*\\(?:def\\|class\\)\\>" in version 25.1
instead of
"^\\s-*\\(?:def\\|class\\)\\>" in version 24.5
if I change it by "^\\s-*\\(?:def\\|class\\)\\>" or by
"\\_<\\(?:def\\|class\\)\\_>"
hs-minor-mode works fine with python-mode
sincerely
Gilles Naulin
[-- Attachment #2: Type: text/html, Size: 1258 bytes --]
next parent reply other threads:[~2016-10-28 16:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <804969215.1445131.1477671599466.JavaMail.zimbra@laposte.net>
2016-10-28 16:35 ` gilles.naulin [this message]
2016-11-02 3:57 ` bug#24815: 25.1; emacs could hang whith hs-minor-mode and python-mode npostavs
2016-11-02 4:07 ` Clément Pit--Claudel
2016-11-06 14:19 ` npostavs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1234264807.1473759.1477672511527.JavaMail.zimbra@laposte.net \
--to=gilles.naulin@laposte.net \
--cc=24815@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).