From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Hariharan Newsgroups: gmane.emacs.bugs Subject: bug#28448: 26.0.50; js-mode missing some functions for imenu Date: Fri, 15 Sep 2017 21:13:27 +0530 Message-ID: <8760ckc6hs.fsf@hari-laptop.i-did-not-set--mail-host-address--so-tickle-me> References: <87k21232nd.fsf@pokyo> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1505490258 671 195.159.176.226 (15 Sep 2017 15:44:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 15 Sep 2017 15:44:18 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 28448@debbugs.gnu.org To: Tom Tromey Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 15 17:44:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dssmn-0008Jn-9C for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Sep 2017 17:44:09 +0200 Original-Received: from localhost ([::1]:53868 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dssmt-0000fg-Ux for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Sep 2017 11:44:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dssmk-0000dr-3J for bug-gnu-emacs@gnu.org; Fri, 15 Sep 2017 11:44:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dssmg-0004KO-Ri for bug-gnu-emacs@gnu.org; Fri, 15 Sep 2017 11:44:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34349) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dssmg-0004KC-Mh for bug-gnu-emacs@gnu.org; Fri, 15 Sep 2017 11:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dssmg-0006P1-DP for bug-gnu-emacs@gnu.org; Fri, 15 Sep 2017 11:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Hariharan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Sep 2017 15:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28448 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28448-submit@debbugs.gnu.org id=B28448.150549023424589 (code B ref 28448); Fri, 15 Sep 2017 15:44:02 +0000 Original-Received: (at 28448) by debbugs.gnu.org; 15 Sep 2017 15:43:54 +0000 Original-Received: from localhost ([127.0.0.1]:43030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dssmY-0006OW-EK for submit@debbugs.gnu.org; Fri, 15 Sep 2017 11:43:54 -0400 Original-Received: from mail-pg0-f65.google.com ([74.125.83.65]:37437) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dssmW-0006OJ-Ft for 28448@debbugs.gnu.org; Fri, 15 Sep 2017 11:43:53 -0400 Original-Received: by mail-pg0-f65.google.com with SMTP id v5so1511481pgn.4 for <28448@debbugs.gnu.org>; Fri, 15 Sep 2017 08:43:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version; bh=578Kh4qgrhhGpMNlPhJ9cjoQN6LWOz1VOp82iML/dX8=; b=c4UAxoq4Wne2t4qYozO0owKfpfPvUYYepmssbl4jRo8naxXVXlqLynvsIRY+7MC+MV 0EZJyoVf6DTub+VQfpBBWUdltIDNFOnocQutn8P2iLI2u/ZFIS+GPy6+wM60SleE8qcb o8ZLzdBu5MiFhBR8DS0Tl/RA9w+n5NJ2y5V4RMXpIgZQBqNVivEMEseQzNLKi4RgZ4BU C1rdPEl4EeguXHt7Jkfjyqq64Mlpttpe92llzDZalajpGlORwmT6mAmwgPdnzc7/Y7ph kBRtjJpa4Wr9izupT2YE2usA1FZvCKrsqVTp8jl+CS46O5K4Iaan/E8MKoPZlUBjvmOC MJlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version; bh=578Kh4qgrhhGpMNlPhJ9cjoQN6LWOz1VOp82iML/dX8=; b=YwoKbImoxpZwSJiiJBb7e3HBFZ5BW07RjlnPjA+BlSKmmNm1skqptS0L9oLvS1wKEI WvReu+F0gvwSo7oaG9s2oumgTXFHVJ8YGclADwAuYLkEuCFqG9f3ksfx8b9wSsWpdhfP PT2Vv6GqrwhLoKVF/TX/du7TerRRWI60IFEFhgTWI/O7UJ6CIpKUfKIoKuzYH9sq76lh OCEToMib21Gz4QKVrphKjZnmylmiSy/Kpw9fr7YLzAw0BtG8SMuieZQGjtRyhHj5B9Oe bceUFwBi17FDT7Odg0Hh2NrVMX+zMhUHdVnKIPfRE218hCKR89VhfeS7j04bvOPkazvS 9r1Q== X-Gm-Message-State: AHPjjUgP1gKN0+ag86cg6nHJTtaRIpbW9BgHsOitjogCZ6dA6C/mw5U4 PHInQwo2OXUKayyO61g= X-Google-Smtp-Source: ADKCNb7VJUavsg8BOkh2D1LwyVs2PPcwyukHjfXWXOXzj2QpFUT44268BOF81fn+UHv+TE7exSPe3w== X-Received: by 10.99.5.204 with SMTP id 195mr24681988pgf.231.1505490226023; Fri, 15 Sep 2017 08:43:46 -0700 (PDT) Original-Received: from hari-laptop ([45.251.34.156]) by smtp.gmail.com with ESMTPSA id v8sm2381422pgs.9.2017.09.15.08.43.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Sep 2017 08:43:45 -0700 (PDT) In-Reply-To: <87k21232nd.fsf@pokyo> (Tom Tromey's message of "Wed, 13 Sep 2017 11:54:30 -0600") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:136994 Archived-At: Tom Tromey writes: I'm not sure whether this is any useful information but with the below code, M-x imenu gives *Rescan* and StyleSheetEditor. Selecting StyleSheetEditor, shows list of items StyleSheetEditor, updateLinkedStyleSheet and checkLinkedFileForChanges. And selecting anyof the items takes me to the corresponding functions. I think imenu shows entries based on the function keyword? > Consider this pared-down but relatively normal js file: > > ================================================================ > function StyleSheetEditor(styleSheet, win, file, isNew, walker, highlighter) { > } > StyleSheetEditor.prototype = { > get unsaved() { > }, > updateLinkedStyleSheet: function () { > }, > checkLinkedFileForChanges: function () { > this.unsaved().updateLinkedStyleSheet(); > }, > } > ================================================================ > > Here it would be great to have imenu entries for "unsaved" and > "updateLinkedStyleSheet". > > Currently js-mode doesn't find these. > > Tom > > > > > In GNU Emacs 26.0.50 (build 8, x86_64-pc-linux-gnu, GTK+ Version 3.22.17) > of 2017-08-28 built on pokyo > Repository revision: 433cf5b2046f9b0a9f500dae1d072cc53f2a3c10 > Windowing system distributor 'Fedora Project', version 11.0.11903000 > System Description: Fedora release 25 (Twenty Five) > > Recent messages: > funcall-interactively: End of buffer > Saving file /tmp/r.js... > Wrote /tmp/r.js > No more miss-spelled word! > C-x C-g is undefined > imenu-find-default: Wrong type argument: stringp, nil > Undo! [2 times] > imenu-find-default: Wrong type argument: stringp, nil > Saving file /tmp/r.js... > Wrote /tmp/r.js > > Configured using: > 'configure --prefix=/home/tromey/Emacs/install --with-modules' > > Configured features: > XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY > LIBSELINUX GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS > GTK3 X11 MODULES LIBSYSTEMD > > Important settings: > value of $LANG: en_US.UTF-8 > value of $XMODIFIERS: @im=ibus > locale-coding-system: utf-8-unix > > Major mode: JS > > Minor modes in effect: > erc-spelling-mode: t > erc-truncate-mode: t > shell-dirtrack-mode: t > diff-auto-refine-mode: t > flyspell-mode: t > which-function-mode: t > projectile-global-mode: t > projectile-mode: t > erc-notify-mode: t > erc-notifications-mode: t > erc-services-mode: t > erc-list-mode: t > erc-menu-mode: t > erc-autojoin-mode: t > erc-ring-mode: t > erc-networks-mode: t > erc-pcomplete-mode: t > erc-track-mode: t > erc-track-minor-mode: t > erc-match-mode: t > erc-netsplit-mode: t > erc-hl-nicks-mode: t > erc-button-mode: t > erc-fill-mode: t > erc-stamp-mode: t > erc-irccontrols-mode: t > erc-noncommands-mode: t > erc-move-to-prompt-mode: t > erc-readonly-mode: t > flycheck-mode: t > savehist-mode: t > cl-old-struct-compat-mode: t > tooltip-mode: t > global-eldoc-mode: t > electric-indent-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 > auto-fill-function: js-do-auto-fill > transient-mark-mode: t > > Load-path shadows: > /home/tromey/.emacs.d/elpa/bubbles-0.5/bubbles hides /home/tromey/Emacs/install/share/emacs/26.0.50/lisp/play/bubbles > > Features: > (shadow emacsbug thai-util thai-word gud python tramp-sh nnregistry > sh-script executable make-mode ix grapnel footnote cl-print debug > url-about url-dav url-dired webjump org-rmail org-mhe org-irc org-info > org-gnus org-docview doc-view image-mode org-bibtex bibtex org-bbdb > org-w3m org-element avl-tree generator org org-macro org-footnote > org-pcomplete org-list org-faces org-entities noutline outline > org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table > ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs > org-loaddefs cursor-sensor mhtml-mode novice mode-local descr-text > iso-transl tabify man eieio-opt speedbar sb-image ezimage dframe ffap > gnus-fun idutils find-file erc-spelling erc-truncate mailalias bbdb-sc > supercite regi mail-hist nnir js cc-mode cc-fonts cc-guess cc-menus > cc-cmds gnus-html help-fns radix-tree url-cache css-mode smie sgml-mode > eww url-queue gnus-draft git-rebase-mode vc-annotate tramp tramp-compat > tramp-loaddefs trampver ucs-normalize jka-compr flow-fill url-http > url-auth url-gw bbdb-gui bbdb-hooks bbdb-rmail rmailsum vc-mtn vc-hg > sort gnus-cite smiley shr-color shr svg dom mm-archive gnus-bcklg > git-commit-mode log-edit term/xterm xterm gnus-async qp gnus-ml > disp-table gnus-topic nndraft nnmh nnfolder utf-7 bbdb-gnus bbdb-snarf > mail-extr bbdb-com network-stream nsm starttls gnus-agent gnus-srvr > gnus-score score-mode nnvirtual gnus-msg nntp gnus-cache gnus-registry > registry eieio-base gnus-art mm-uu mml2015 mm-view mml-smime smime dig > gnus-sum gnus-group gnus-undo smtpmail sendmail gnus-start gnus-cloud > nnimap nnmail mail-source tls gnutls utf7 netrc nnoo parse-time > gnus-spec gnus-int gnus-range message puny rfc822 mml mml-sec epa > derived epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev > gmm-utils mailheader gnus-win conf-mode etags xref project shell > browse-url dxr mm-url url url-proxy url-privacy url-expand url-methods > url-history url-cookie url-domsuf url-util mailcap gnus nnheader > gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils > mm-util mail-prsvr bug-reference copyright find-dired dabbrev misearch > multi-isearch smerge-mode log-view pcvs-util vc-bzr vc-src vc-sccs > vc-svn vc-cvs vc-rcs add-log vc-git diff-mode rust-mode elec-pair > flyspell ispell diminish appt diary-lib diary-loaddefs cal-menu calendar > cal-loaddefs which-func imenu edmacro kmacro projectile grep compile > ibuf-ext ibuffer ibuffer-loaddefs autorevert filenotify desktop frameset > cus-start cus-load erc-notify erc-desktop-notifications erc-services > notifications dbus xml erc-list erc-menu erc-join erc-ring erc-networks > erc-pcomplete pcomplete erc-track erc-match erc-netsplit erc-hl-nicks > easy-mmode color erc-button erc-fill erc-stamp wid-edit erc-goodies erc > erc-backend erc-compat format-spec thingatpt pp dired-aux dired-x dired > dired-loaddefs warnings advice vc-dir ewoc vc vc-dispatcher flycheck > cl-extra json map find-func help-mode rx subr-x dash cc-styles cc-align > cc-engine cc-vars cc-defs bbdb cl timezone ange-ftp comint ansi-color > ring server savehist finder-inf bbdb-autoloads dwarf-mode-autoloads > lisppaste-autoloads pydoc-info-autoloads info-look weblogger-autoloads > info package easymenu epg-config url-handlers url-parse auth-source > cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars > seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date > mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks > lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar > dnd fontset image regexp-opt fringe tabulated-list replace newcomment > text-mode elisp-mode lisp-mode prog-mode register page menu-bar > rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock > syntax facemenu font-core term/tty-colors frame cl-generic cham georgian > utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean > japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european > ethiopic indian cyrillic chinese composite charscript charprop > case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer > cl-preloaded 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 dbusbind inotify > dynamic-setting system-font-setting font-render-setting move-toolbar gtk > x-toolkit x multi-tty make-network-process emacs) > > Memory information: > ((conses 16 5900075 3437281) > (symbols 48 136519 43) > (miscs 40 38707 31985) > (strings 32 1568492 177118) > (string-bytes 1 69419422) > (vectors 16 226053) > (vector-slots 8 5530804 389348) > (floats 8 915 3920) > (intervals 56 475093 29216) > (buffers 992 647))