GNU bug report logs - #21840
24.5; semantic analysis of python files is broken by strings that end in backslash

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Glyph Lefkowitz <glyph@HIDDEN>; dated Fri, 6 Nov 2015 02:18:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at>

Received: (at submit) by; 6 Nov 2015 02:17:12 +0000
From debbugs-submit-bounces <at> Thu Nov 05 21:17:12 2015
Received: from localhost ([]:55144
	by with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at>>)
	id 1ZuWaV-0000p7-KR
	for submit <at>; Thu, 05 Nov 2015 21:17:12 -0500
Received: from ([]:48405)
 by with esmtp (Exim 4.80)
 (envelope-from <glyph@HIDDEN>) id 1ZuWa9-0000oH-5Q
 for submit <at>; Thu, 05 Nov 2015 21:17:09 -0500
Received: from Debian-exim by with spam-scanned (Exim 4.71)
 (envelope-from <glyph@HIDDEN>) id 1ZuWa7-0003sU-LC
 for submit <at>; Thu, 05 Nov 2015 21:16:48 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from ([2001:4830:134:3::11]:35895)
 by with esmtp (Exim 4.71)
 (envelope-from <glyph@HIDDEN>) id 1ZuWa7-0003sQ-Hn
 for submit <at>; Thu, 05 Nov 2015 21:16:47 -0500
Received: from ([2001:4830:134:3::10]:58397)
 by with esmtp (Exim 4.71)
 (envelope-from <glyph@HIDDEN>) id 1ZuWa5-0000yn-Tj
 for bug-gnu-emacs@HIDDEN; Thu, 05 Nov 2015 21:16:47 -0500
Received: from Debian-exim by with spam-scanned (Exim 4.71)
 (envelope-from <glyph@HIDDEN>) id 1ZuWa0-0003rJ-Q0
 for bug-gnu-emacs@HIDDEN; Thu, 05 Nov 2015 21:16:45 -0500
Received: from ([]:46509)
 by with esmtp (Exim 4.71)
 (envelope-from <glyph@HIDDEN>) id 1ZuWa0-0003qT-JE
 for bug-gnu-emacs@HIDDEN; Thu, 05 Nov 2015 21:16:40 -0500
Received: from compute4.internal (compute4.nyi.internal [])
 by mailout.nyi.internal (Postfix) with ESMTP id 31EBC202CD;
 Thu,  5 Nov 2015 21:16:34 -0500 (EST)
Received: from frontend1 ([])
 by compute4.internal (MEProxy); Thu, 05 Nov 2015 21:16:34 -0500
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=; h=content-transfer-encoding:content-type
 :x-sasl-enc; s=smtpout; bh=0H0IbK+N9DmXxl5LOstSmr36zHM=; b=ss161
X-Sasl-enc: JcE63sYCTttdyg+3giP4ffHzwVmNOZGo9A06AGvU60Uh 1446776193
Received: from milly.lan (unknown [])
 by (Postfix) with ESMTPA id B8CADC016DB
 for <bug-gnu-emacs@HIDDEN>; Thu,  5 Nov 2015 21:16:33 -0500 (EST)
From: Glyph Lefkowitz <glyph@HIDDEN>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: 24.5;
 semantic analysis of python files is broken by strings that end in
Message-Id: <F9F51B47-4DF3-4AA6-95CF-C15F9DEAE9D7@HIDDEN>
Date: Thu, 5 Nov 2015 18:16:32 -0800
To: bug-gnu-emacs@HIDDEN
Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\))
X-Mailer: Apple Mail (2.3096.5)
X-detected-operating-system: by GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at>
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <>
List-Unsubscribe: <>, 
 <mailto:debbugs-submit-request <at>>
List-Archive: <>
List-Post: <mailto:debbugs-submit <at>>
List-Help: <mailto:debbugs-submit-request <at>>
List-Subscribe: <>, 
 <mailto:debbugs-submit-request <at>>
Errors-To: debbugs-submit-bounces <at>
Sender: "Debbugs-submit" <debbugs-submit-bounces <at>>
X-Spam-Score: -5.0 (-----)

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
Windowing system distributor `Apple', version 10.3.1404
Configured using:
`configure --with-ns '--enable-locallisppath=3D/Library/Application

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 =
Wrote =
Mark set [3 times]
Saving file =
Wrote =
Mark set

Load-path shadows:
/Users/glyph/.emacs.d/elpa/helm-20151028.327/helm-multi-match hides =

(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))

Acknowledgement sent to Glyph Lefkowitz <glyph@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#21840; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.