From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Politz Newsgroups: gmane.emacs.bugs Subject: bug#11679: 24.1.50; gud/pdb3 hangs in lines with list comprehension Date: Tue, 12 Jun 2012 09:22:21 +0200 Message-ID: <874nqhvvte.fsf@fh-trier.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1339485822 8012 80.91.229.3 (12 Jun 2012 07:23:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2012 07:23:42 +0000 (UTC) To: 11679@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 12 09:23:37 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SeLRv-00089v-0o for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jun 2012 09:23:35 +0200 Original-Received: from localhost ([::1]:46887 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeLRu-0003dY-MO for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jun 2012 03:23:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58911) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeLRp-0003dA-Qx for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2012 03:23:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SeLRi-0005lm-Gq for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2012 03:23:29 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeLRi-0005lP-A3 for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2012 03:23:22 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SeLUI-0006jj-GN for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2012 03:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Politz Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jun 2012 07:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.133948593625855 (code B ref -1); Tue, 12 Jun 2012 07:26:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Jun 2012 07:25:36 +0000 Original-Received: from localhost ([127.0.0.1]:38799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SeLTq-0006ix-C9 for submit@debbugs.gnu.org; Tue, 12 Jun 2012 03:25:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50538) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SeLTl-0006io-TJ for submit@debbugs.gnu.org; Tue, 12 Jun 2012 03:25:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SeLR5-0005a6-Qy for submit@debbugs.gnu.org; Tue, 12 Jun 2012 03:22:49 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:56429) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeLR5-0005Zx-Ky for submit@debbugs.gnu.org; Tue, 12 Jun 2012 03:22:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeLR2-0003aB-MF for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2012 03:22:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SeLQz-0005XQ-HW for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2012 03:22:40 -0400 Original-Received: from gateway-b.fh-trier.de ([143.93.54.182]:35279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeLQz-0005Wi-1h for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2012 03:22:37 -0400 X-Virus-Scanned: by Amavisd-new + McAfee uvscan + ClamAV [Rechenzentrum FH-Trier (r/ft)] Original-Received: from luca (91-67-220-156-dynip.superkabel.de [91.67.220.156]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: politza) by gateway-b.fh-trier.de (Postfix) with ESMTPSA id B2DE317B49D for ; Tue, 12 Jun 2012 09:22:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=fh-trier.de; s=default; t=1339485742; bh=mLsj1WXz20DXgJi9Ijha8lKzFk8=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=qUgiusOGXNg8M+DN4Y7Ks/6Nf/8P+A2fEw+Cs4EpQltRFrz2MlDS8C9OJ1lcWiPk3 mYa0ofxJ2/frx4zP/PKDJKn05uTSuZiWU4LG5KVo1fb42mOISwmDaaeHp1VmAPUFJn E7+v5i4+ghvHYTG8Gr1YTEBgRCqAWYzPJZ4c06+A= Original-Received: from localhost ([127.0.0.1] helo=luca) by luca with esmtp (Exim 4.72) (envelope-from ) id 1SeLQj-0005D2-BL for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2012 09:22:21 +0200 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:60887 Archived-At: For list comprehensions pdb3 outputs a line like this. > FILE(LINE)() But the `listcomp' token is not captured by the `gud-pdb-marker-regexp', resulting in pdb appearing to be hanging. (This may be python2/3 related.) diff -c -L /usr/share/emacs/24.1.50/lisp/progmodes/gud.el.gz -L \#\ /tmp/jka-com19603ZkZ /tmp/buffer-content-19603z4l *** /usr/share/emacs/24.1.50/lisp/progmodes/gud.el.gz --- # *************** *** 1567,1573 **** ;; Last group is for return value, e.g. "> test.py(2)foo()->None" ;; Either file or function name may be omitted: "> (0)?()" (defvar gud-pdb-marker-regexp ! "^> \\([-a-zA-Z0-9_/.:\\]*\\|\\)(\\([0-9]+\\))\\([a-zA-Z0-9_]*\\|\\?\\|\\)()\\(->[^\n\r]*\\)?[\n\r]") (defvar gud-pdb-marker-regexp-file-group 1) (defvar gud-pdb-marker-regexp-line-group 2) --- 1567,1573 ---- ;; Last group is for return value, e.g. "> test.py(2)foo()->None" ;; Either file or function name may be omitted: "> (0)?()" (defvar gud-pdb-marker-regexp ! "^> \\([-a-zA-Z0-9_/.:\\]*\\|\\)(\\([0-9]+\\))\\([a-zA-Z0-9_]*\\|\\?\\|<\\(?:module\\|listcomp\\)>\\)()\\(->[^\n\r]*\\)?[\n\r]") (defvar gud-pdb-marker-regexp-file-group 1) (defvar gud-pdb-marker-regexp-line-group 2) Diff finished. Tue Jun 12 09:19:31 2012 In GNU Emacs 24.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of 2012-06-05 on cw-bkp0, modified by Debian (emacs-snapshot package, version 2:20120524-1+squeeze) Windowing system distributor `The X.Org Foundation', version 11.0.10707000 Configured using: `configure '--build' 'x86_64-linux-gnu' '--host' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.1.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.1.50/site-lisp:/usr/share/emacs/site-lisp' '--without-compress-info' '--with-crt-dir=/usr/lib//' '--with-x=yes' '--with-x-toolkit=gtk' '--with-imagemagick=yes' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed -znocombreloc' 'CPPFLAGS='' Important settings: value of $LC_ALL: C 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: de_DE.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: diff-auto-refine-mode: t cl-format-font-lock-mode: t iswitchb-mode: t ispell-track-input-method: t recentf-mode: t yas/global-mode: t yas/minor-mode: t workgroups-mode: t window-numbering-mode: t shell-dirtrack-mode: t TeX-PDF-mode: t savehist-mode: t ekey-mode: t eldoc-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-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: C-n C-n C-n C-x SPC C-x o c s C-x b s c C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n T h e s SPC DEL DEL SPC l i s t c o m p SPC t o k e n SPC i s SPC n o t SPC c p a p t u r e d SPC b y SPC C-n C-n C-n C-M-b C-M-SPC M-w C-p C-p C-p M-m B u t SPC M-l C-f ` M-f ' C-e C-y C-M-b ` C-e ' . SPC SPC DEL DEL DEL , SPC r e s u l t i n g SPC i n SPC P d p d b SPC a p p e a r i n g M-q SPC t o SPC b e SPC h a n g i n g . M-q SPC SPC C-p C-n C-k C-n C-n C-M-b C-M-b M-d d e f v a r M-m C-x o C-x b g u C-x b C-s C-s C-x o C-n M-m C-M-SPC M-w C-x o C-n M-m C-o C-x C-q C-o C-y C-n C-b C-M-b C-M-k M-^ C-e M-x d i f f - b u f f C-x o C-x h M-w C-x b C-p C-p C-p C-e T h i s SPC m a y SPC b e SPC p y t h o n 3 M-/ C-g C-/ C-b 2 / C-e SPC r e a DEL l a t e d C-M-b C-M-b C-M-b C-M-b C-M-b ( C-e . ) C-j C-j C-y M-y C-p C-n C-k C-k C-M-k C-x h C-w M-x e m a c s - r b u g C-a r Recent messages: call-interactively: Buffer is read-only: # Mark set Auto-saving... Auto-saving gud.el.gz: Opening output file: permission denied, /usr/share/emacs/24.1.50/lisp/progmodes/#gud.el.gz# uncompressing gud.el.gz...done Mark set [2 times] No expansion found Quit Undo! Mark set [3 times] Load-path shadows: /home/politza/.emacs.d/plugins/predictive/pos-tip hides /home/politza/.emacs.d/plugins/pos-tip /home/politza/.emacs.d/plugins/haskell/haskell-cabal hides /usr/share/emacs/site-lisp/haskell-mode/haskell-cabal /home/politza/.emacs.d/plugins/haskell/haskell-doc hides /usr/share/emacs/site-lisp/haskell-mode/haskell-doc /home/politza/.emacs.d/plugins/haskell/haskell-mode hides /usr/share/emacs/site-lisp/haskell-mode/haskell-mode /home/politza/.emacs.d/plugins/haskell/haskell-c hides /usr/share/emacs/site-lisp/haskell-mode/haskell-c /home/politza/.emacs.d/plugins/haskell/haskell-indentation hides /usr/share/emacs/site-lisp/haskell-mode/haskell-indentation /home/politza/.emacs.d/plugins/haskell/haskell-site-file hides /usr/share/emacs/site-lisp/haskell-mode/haskell-site-file /home/politza/.emacs.d/plugins/haskell/haskell-ghci hides /usr/share/emacs/site-lisp/haskell-mode/haskell-ghci /home/politza/.emacs.d/plugins/haskell/inf-haskell hides /usr/share/emacs/site-lisp/haskell-mode/inf-haskell /home/politza/.emacs.d/plugins/haskell/haskell-hugs hides /usr/share/emacs/site-lisp/haskell-mode/haskell-hugs /home/politza/.emacs.d/plugins/haskell/haskell-font-lock hides /usr/share/emacs/site-lisp/haskell-mode/haskell-font-lock /home/politza/.emacs.d/plugins/haskell/haskell-simple-indent hides /usr/share/emacs/site-lisp/haskell-mode/haskell-simple-indent /home/politza/.emacs.d/plugins/haskell/haskell-decl-scan hides /usr/share/emacs/site-lisp/haskell-mode/haskell-decl-scan /home/politza/.emacs.d/plugins/haskell/haskell-indent hides /usr/share/emacs/site-lisp/haskell-mode/haskell-indent /home/politza/.emacs.d/plugins/haskell/haskell-decl-scan hides /usr/share/emacs/24.1.50/site-lisp/haskell-mode/haskell-decl-scan /home/politza/.emacs.d/plugins/haskell/haskell-c hides /usr/share/emacs/24.1.50/site-lisp/haskell-mode/haskell-c /home/politza/.emacs.d/plugins/haskell/haskell-ghci hides /usr/share/emacs/24.1.50/site-lisp/haskell-mode/haskell-ghci /home/politza/.emacs.d/plugins/haskell/haskell-doc hides /usr/share/emacs/24.1.50/site-lisp/haskell-mode/haskell-doc /home/politza/.emacs.d/plugins/haskell/haskell-indent hides /usr/share/emacs/24.1.50/site-lisp/haskell-mode/haskell-indent /home/politza/.emacs.d/plugins/haskell/haskell-mode hides /usr/share/emacs/24.1.50/site-lisp/haskell-mode/haskell-mode /home/politza/.emacs.d/plugins/haskell/haskell-hugs hides /usr/share/emacs/24.1.50/site-lisp/haskell-mode/haskell-hugs /home/politza/.emacs.d/plugins/haskell/haskell-site-file hides /usr/share/emacs/24.1.50/site-lisp/haskell-mode/haskell-site-file /home/politza/.emacs.d/plugins/haskell/haskell-cabal hides /usr/share/emacs/24.1.50/site-lisp/haskell-mode/haskell-cabal /home/politza/.emacs.d/plugins/haskell/inf-haskell hides /usr/share/emacs/24.1.50/site-lisp/haskell-mode/inf-haskell /home/politza/.emacs.d/plugins/haskell/haskell-font-lock hides /usr/share/emacs/24.1.50/site-lisp/haskell-mode/haskell-font-lock /home/politza/.emacs.d/plugins/haskell/haskell-simple-indent hides /usr/share/emacs/24.1.50/site-lisp/haskell-mode/haskell-simple-indent /home/politza/.emacs.d/plugins/haskell/haskell-indentation hides /usr/share/emacs/24.1.50/site-lisp/haskell-mode/haskell-indentation /usr/share/emacs/24.1.50/site-lisp/cscope/xcscope hides /usr/share/emacs/site-lisp/xcscope /usr/share/emacs/24.1.50/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /home/politza/.emacs.d/plugins/term hides /usr/share/emacs/24.1.50/lisp/term /usr/share/emacs/site-lisp/remember-el/remember hides /usr/share/emacs/24.1.50/lisp/textmodes/remember /home/politza/.emacs.d/plugins/python/python/python hides /usr/share/emacs/24.1.50/lisp/progmodes/python /home/politza/.emacs.d/plugins/predictive/avl-tree hides /usr/share/emacs/24.1.50/lisp/emacs-lisp/avl-tree /home/politza/.emacs.d/plugins/python/python/sym-comp hides /usr/share/emacs/24.1.50/lisp/obsolete/sym-comp Features: (shadow mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils diff-mode diff ibuf-ext ibuffer dired-aux apropos gdb-mi bindat json re-builder edebug jka-compr debug find-func imenu gud image-mode multi-isearch vc-dispatcher vc-svn python-21 python sym-comp cl-format cl-format-builtins clisp-format cl-format-def emacs-customizations nogroup-customizations wp-customizations view-customizations tex-customizations reftex-customizations reftex-miscellaneous-configurations-customizations reftex-label-support-customizations reftex-defining-label-environments-customizations AUCTeX-customizations preview-customizations preview-appearance-customizations TeX-parse-customizations TeX-command-customizations TeX-view-customizations table-customizations table-hooks-customizations outlines-customizations programming-customizations tools-customizations vc-customizations makefile-customizations ediff-customizations ediff-window-customizations languages-customizations matlab-customizations python-customizations haskell-customizations c-customizations help-customizations ekey-customizations info-lookup-customizations info-customizations customize-customizations custom-buffer-customizations apropos-customizations help-mode view files-customizations uniquify-customizations uniquify sunrise-customizations recentf-customizations find-file-customizations backup-customizations external-customizations server-customizations processes-customizations shell-customizations gud-customizations tooltip-customizations grep-customizations compilation-customizations comint-customizations man-customizations environment-customizations windows-customizations minibuffer-customizations savehist-customizations menu-customizations initialization-customizations dired-customizations dired-x-customizations dired-details-customizations editing-customizations yasnippet-customizations matching-customizations paren-matching-customizations paren-showing-customizations isearch-customizations bookmark-customizations killing-customizations indent-customizations emulations-customizations editing-basics-customizations development-customizations lisp-customizations re-builder-customizations inferior-lisp-customizations ielm-customizations ert-customizations edebug-customizations bytecomp-customizations advice-customizations extensions-customizations eldoc-customizations cust-print-customizations data-customizations save-place-customizations convenience-customizations workgroups-customizations window-numbering-customizations pabbrev-customizations kmacro-customizations imenu-customizations ibuffer-customizations hippie-expand-customizations ffap-customizations completion-customizations iswitchb-customizations iswitchb auto-complete-customizations auto-revert-customizations comm-customizations tramp-customizations browse-url-customizations applications-customizations mediawiki-customizations w3m-customizations package-customizations mail-customizations smtpmail-customizations sendmail-customizations ispell-customizations doc-view-customizations calendar-customizations org-customizations org-structure-customizations org-plain-lists-customizations org-edit-structure-customizations org-startup-customizations org-link-customizations org-latex-customizations org-appearance-customizations calc-customizations server recentf tree-widget yasnippet dropdown-list workgroups bookmark pp window-numbering w3m browse-url timezone w3m-hist w3m-e23 w3m-ccl ccl w3m-fsf w3m-favicon w3m-image w3m-proc w3m-util tramp tramp-compat shell tramp-loaddefs tex saveplace savehist reftex reftex-vars pabbrev thingatpt org ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete pcomplete org-list org-faces org-compat org-entities org-macs noutline outline format-spec cal-menu calendar cal-loaddefs lib-kbd lib-isearch lib-basic lib-lispext info-look hippie-exp grep compile comint ansi-color eldoc-eval ekey easy-mmode assoc dired-details+ warnings dired-details anticus edmacro kmacro derived ffap url-parse auth-source eieio byte-opt bytecomp byte-compile cconv macroexp gnus-util mm-util mail-prsvr password-cache url-vars eldoc cus-edit cus-start cus-load wid-edit cl all-autoloads auctex-autoloads tex-site info browse-kill-ring-autoloads c-eldoc-autoloads cl-format-autoloads company-autoloads eldoc-eval-autoloads sunrise-x-loop-autoloads sunrise-x-loop sunrise-commander advice help-fns advice-preload term ehelp electric ring sort find-dired disp-table enriched dired-x easymenu dired sunrise-commander-autoloads package remember-autoloads planner-autoloads w3m-load muse-autoloads time-date tooltip 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 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 loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)