From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glyph Lefkowitz Newsgroups: gmane.emacs.bugs Subject: bug#21840: 24.5; semantic analysis of python files is broken by strings that end in backslash Date: Thu, 5 Nov 2015 18:16:32 -0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1446776305 16670 80.91.229.3 (6 Nov 2015 02:18:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Nov 2015 02:18:25 +0000 (UTC) To: 21840@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 06 03:18:13 2015 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 1ZuWbU-0001aV-SV for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Nov 2015 03:18:13 +0100 Original-Received: from localhost ([::1]:36278 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuWbU-0001JT-CD for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Nov 2015 21:18:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuWbP-0001Fw-Ij for bug-gnu-emacs@gnu.org; Thu, 05 Nov 2015 21:18:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZuWbK-00043G-Gg for bug-gnu-emacs@gnu.org; Thu, 05 Nov 2015 21:18:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36203) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuWbK-000437-Ds for bug-gnu-emacs@gnu.org; Thu, 05 Nov 2015 21:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZuWbK-0000qO-12 for bug-gnu-emacs@gnu.org; Thu, 05 Nov 2015 21:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glyph Lefkowitz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Nov 2015 02:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21840 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.14467762323174 (code B ref -1); Fri, 06 Nov 2015 02:18:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Nov 2015 02:17:12 +0000 Original-Received: from localhost ([127.0.0.1]:55144 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZuWaV-0000p7-KR for submit@debbugs.gnu.org; Thu, 05 Nov 2015 21:17:12 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48405) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZuWa9-0000oH-5Q for submit@debbugs.gnu.org; Thu, 05 Nov 2015 21:17:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZuWa7-0003sU-LC for submit@debbugs.gnu.org; Thu, 05 Nov 2015 21:16:48 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuWa7-0003sQ-Hn for submit@debbugs.gnu.org; Thu, 05 Nov 2015 21:16:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuWa5-0000yn-Tj for bug-gnu-emacs@gnu.org; Thu, 05 Nov 2015 21:16:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZuWa0-0003rJ-Q0 for bug-gnu-emacs@gnu.org; Thu, 05 Nov 2015 21:16:45 -0500 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:46509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuWa0-0003qT-JE for bug-gnu-emacs@gnu.org; Thu, 05 Nov 2015 21:16:40 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 31EBC202CD; Thu, 5 Nov 2015 21:16:34 -0500 (EST) Original-Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Thu, 05 Nov 2015 21:16:34 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=0H0IbK+N9DmXxl5LOstSmr36zHM=; b=ss161 OHVsaJcyItP1asbKX0p6go9jE2tZ6f49fa0Wb9HInG/LclAXXi1zpxLdU4MT2Hya EH/2G695D1PLtYN5pdJGkFojE6Fi5WDebBMmz0dHZFrxuZMzDTbS03CK1es0IRqW 3BfMi9h5hc/spGEisKUYkZevNl5aSPwtyUCfb8= X-Sasl-enc: JcE63sYCTttdyg+3giP4ffHzwVmNOZGo9A06AGvU60Uh 1446776193 Original-Received: from milly.lan (unknown [192.77.237.67]) by mail.messagingengine.com (Postfix) with ESMTPA id B8CADC016DB for ; Thu, 5 Nov 2015 21:16:33 -0500 (EST) X-Mailer: Apple Mail (2.3096.5) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.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:108488 Archived-At: Python string literals that end in a backslash cause Semantic's parser to halt and not recognize anything further in the buffer. I personally ran across this because I frequently use helm-semantic-or-imenu, but can be demonstrated equally well by semantic-complete-jump-local or anything else that makes use of the buffer's symbol list. The trivial way to reproduce this is to put the string literal "\\" at the top of a Python buffer and then invoke semantic in one of the ways just mentioned and notice that nothing is picked up. You can move the backslash literal down in the file and see every symbol up to the point where it is placed. In GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2015-04-10 on builder10-9.porkrind.org Windowing system distributor `Apple', version 10.3.1404 Configured using: `configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp'' Important settings: locale-coding-system: utf-8-unix Major mode: Python Minor modes in effect: jedi-mode: t diff-auto-refine-mode: t global-git-commit-mode: t flymake-mode: t quick-hack-python-mode: t ecb-minor-mode: t python-docstring-mode: t server-mode: t global-undo-tree-mode: t undo-tree-mode: t rainbow-identifiers-mode: t rainbow-delimiters-mode: t global-auto-complete-mode: t auto-complete-mode: t global-quiet-mousewheel-mode: t quiet-mousewheel-mode: t obb-mode: t adaptive-wrap-prefix-mode: t async-bytecomp-package-mode: t shell-dirtrack-mode: t global-semanticdb-minor-mode: t global-semantic-idle-scheduler-mode: t semantic-idle-scheduler-mode: t which-function-mode: t show-paren-mode: t semantic-mode: t icomplete-mode: t global-auto-revert-mode: t electric-pair-mode: t delete-selection-mode: t tooltip-mode: t electric-indent-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 temp-buffer-resize-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Mark set [2 times] Saving file = /Users/glyph/Projects/Twisted/twisted/internet/test/test_endpoints.py... Wrote = /Users/glyph/Projects/Twisted/twisted/internet/test/test_endpoints.py Mark set [3 times] Saving file = /Users/glyph/Projects/Twisted/twisted/internet/test/test_endpoints.py... Wrote = /Users/glyph/Projects/Twisted/twisted/internet/test/test_endpoints.py Mark set "Beep." Quit "Beep." Quit Load-path shadows: /Users/glyph/.emacs.d/elpa/helm-20151028.327/helm-multi-match hides = /Users/glyph/.emacs.d/elpa/helm-core-20151024.2233/helm-multi-match Features: (shadow sort mail-extr semantic/complete eieio-opt find-func emacsbug sendmail ido noutline outline mm-archive url-http url-gw url-cache url-auth url-handlers epg finder-inf inversion semantic/tag-write tabify misearch multi-isearch semantic/edit network-stream starttls tls semantic/tag-file helm-semantic semantic/imenu semantic/sb vc-git semantic/db-file data-debug cedet-files semantic/wisent/python semantic/decorate/include semantic/decorate/mode semantic/decorate pulse semantic/dep semantic/wisent/python-wy semantic/wisent semantic/wisent/wisent flyflakes jedi jedi-core python-environment epc ctable concurrent deferred ropemacs pymacs column-marker magit-svn linum magit-blame magit-stash magit-bisect magit-remote magit-commit magit-sequence magit magit-apply magit-wip magit-log magit-diff smerge-mode diff-mode magit-core magit-process magit-popup magit-mode help-mode magit-git crm magit-section magit-utils git-commit log-edit message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log with-editor tramp-sh dash winner mule-util flymake python-patches python json quickhack ecb-layout-defs cus-edit warnings ecb ecb-symboldef ecb-analyse ecb-compatibility ecb-winman-support ecb-autogen autoload lisp-mnt ecb-tod ecb-cycle ecb-eshell ecb-help ecb-jde ecb-method-browser hideshow ecb-semantic-wrapper ecb-semantic ecb-file-browser ecb-speedbar ecb-layout ecb-create-layout ecb-compilation ecb-common-browser speedbar sb-image dframe ecb-navigate ecb-mode-line ecb-face tree-buffer ecb-upgrade ecb-cedet-wrapper semantic/db-find semantic/db-ref semantic/analyze semantic/sort semantic/scope semantic/analyze/fcn wid-edit ecb-util python-docstring server undo-tree diff pelican-mode rainbow-identifiers color rainbow-delimiters disp-table auto-complete-config auto-complete popup quiet-mousewheel-mode backandforth obb-mode combinator goto-definition adaptive-wrap helm-C-x-b helm-imenu helm-command helm-elisp helm-eval edebug eldoc helm-mode helm-cmd-t helm-files rx image-dired dired-x dired-aux ffap thingatpt helm-buffers helm-elscreen helm-tags helm-bookmark helm-adaptive helm-info bookmark pp helm-locate helm-grep helm-regexp helm-plugin helm-external helm-net browse-url xml url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse url-vars mailcap helm-utils compile helm-help helm-types helm easy-mmode helm-source helm-multi-match helm-lib dired helm-config helm-easymenu edmacro kmacro async-bytecomp async helm-aliases tramp tramp-compat auth-source gnus-util mm-util mail-prsvr password-cache tramp-loaddefs trampver shell pcomplete comint ansi-color ring format-spec semantic/db-mode semantic/db eieio-base semantic/idle semantic/format ezimage semantic/tag-ls semantic/find semantic/ctxt jka-compr vale-theme which-func imenu paren semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw eieio byte-opt bytecomp byte-compile cl-extra cconv eieio-core mode-local cedet icomplete autorevert filenotify elec-pair delsel cus-start cus-load info easymenu package epg-config glyph-setup advice help-fns cl-macs cl cl-loaddefs cl-lib gv time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win 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 cocoa ns multi-tty emacs) Memory information: ((conses 16 1026645 103760) (symbols 48 50999 14) (miscs 40 2212 1016) (strings 32 133794 14262) (string-bytes 1 4110532) (vectors 16 54622) (vector-slots 8 1559457 187147) (floats 8 753 1789) (intervals 56 121346 2669) (buffers 960 34))