unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Michele Pes" <mp81ss@rambler.ru>
To: 31817@debbugs.gnu.org
Subject: bug#31817: Possible bug in regex search
Date: Wed, 13 Jun 2018 17:20:18 +0300	[thread overview]
Message-ID: <1528899618.415948.22587.31975@mail.rambler.ru> (raw)
In-Reply-To: <1528899604.595409.22564.45300@mail.rambler.ru>


[-- Attachment #1.1: Type: text/plain, Size: 447 bytes --]

Hi,I'm working with regex, and I isolated an unexpected behaviour.If I paste
attached code code in scratch buffer and evaluate it, emacs hangs (cpu stays at
100% until I kill emacs)Im running emacs for windows x64, in particular this
package:
https://sourceforge.net/projects/emacsbinw64/files/release/emacs-w64-25.3-O2-with-modules.7z/download
The variable case-fold-search is set to t.
Can you help me?
Thank you very much,
Michele Pes

[-- Attachment #1.2: Type: text/html, Size: 702 bytes --]

[-- Attachment #2: bug.el --]
[-- Type: application/octet-stream, Size: 568 bytes --]

(let (
      (regex
       (concat "[ \f\t\n\r\v]" "*\\(" "_*[[:alpha:]]+[A-Z0-9a-z_]*"
               "[ \f\t\n\r\v\\*]"
               "*\\)+(" "[ \f\t\n\r\v]"
               "*\\*" "[ \f\t\n\r\v]"
               "*\\(" "_*[[:alpha:]]+[A-Z0-9a-z_]*" "\\)"
               "[ \f\t\n\r\v]" "*[()]"))

      (x "void Vsdk_Init(void) {     /* Open watchdog iwdt driver, watchdog is running now */     iwdt.p_api->open"))
  (if (string-match "(" x)
      (prog2
          (string-match regex x)
          (match-string 2 x))
    (message "did not match")))

       reply	other threads:[~2018-06-13 14:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1528899604.595409.22564.45300@mail.rambler.ru>
2018-06-13 14:20 ` Michele Pes [this message]
2018-06-14  0:37   ` bug#31817: Possible bug in regex search Noam Postavsky

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=1528899618.415948.22587.31975@mail.rambler.ru \
    --to=mp81ss@rambler.ru \
    --cc=31817@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).