From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthew Persico Newsgroups: gmane.emacs.help Subject: Modify shell-script-mode for imenu Date: Wed, 17 Feb 2016 15:25:52 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1455742850 24713 80.91.229.3 (17 Feb 2016 21:00:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Feb 2016 21:00:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 17 22:00:48 2016 Return-path: Envelope-to: geh-help-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 1aW9DL-0008D7-VS for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Feb 2016 22:00:48 +0100 Original-Received: from localhost ([::1]:33458 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aW9DL-0006hY-Fu for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Feb 2016 16:00:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aW8ft-0000zO-RA for help-gnu-emacs@gnu.org; Wed, 17 Feb 2016 15:26:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aW8fs-0005Xl-Vu for help-gnu-emacs@gnu.org; Wed, 17 Feb 2016 15:26:13 -0500 Original-Received: from mail-vk0-x22a.google.com ([2607:f8b0:400c:c05::22a]:33072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aW8fs-0005Xf-Ql for help-gnu-emacs@gnu.org; Wed, 17 Feb 2016 15:26:12 -0500 Original-Received: by mail-vk0-x22a.google.com with SMTP id k196so25792682vka.0 for ; Wed, 17 Feb 2016 12:26:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=uqnWKF6bXIuOGwz6cPOZxGkArRSnbBZbNgs+5XUzIoY=; b=bRPwL6Q663qt9Fy2ezTYNNkouaTQprHfLi/6qrNb5B9SkQTU4bFe2FMNd4SkEpu1Xo 2Ml+WXko3cQNhIpmJjMsXKbqBHxgRxSwP4we0kkHfBDX04RlI+uKBW3QPGmW0ncKJZE3 Fo5HB9Tao4GlMnDDmD2CGjDJS14Z4jT0y6C9lvE6Vkp3JGo0ftMn3+WObon3ZUVkNJif 39wDn2Rt2QHIExuO/5avetYBU9T15HB2BcTF+tCtpS9Fl15Lx9I3ptkkMPGV6hYymIeq +suuDnf2u2nuhAejkcYoeui2+6iVJO1DpkFX6wEJNiZd+nn4tjllna/LNZw9r++d67jF x+1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=uqnWKF6bXIuOGwz6cPOZxGkArRSnbBZbNgs+5XUzIoY=; b=YDey/UCVGgIzrWNh1z40GE37PtzdzgNdRqWEhasHrin9ynHheOp1hyi/DPCDOiS8uT qLXouZQtcpjDTwUBUZwaQhjcCnrQbIpLhQP7SCXPSdioKsORx5arQBk7lJMlpI/O28L7 D8OCf9UII9vOf4pbebxgidv6+WAc2LR9TCILCNeNT7wn1c/vWQ/gagHzZpBGsNbY9icL VxBtqELm9ktOmzvUFGzJeqUuwjtwvoFa+cLU4/FSEPJFSnoGXuD3OE6Y911bwOBOWx+y u4hZxIFP1lV/eBQo2A1YbGUz+X44mo/QD2yr2Aqy6U601J4J5LLCWbeMvYTPTAhUeyKt v9Kw== X-Gm-Message-State: AG10YOSMKkMJAknZsPhOFlshKrRClNtfiExCjFyTCRiYoakwVB0n2dP2v78SKi2KGUa9IRLYzhxnyhPp2dYFrg== X-Received: by 10.31.1.6 with SMTP id 6mr2646669vkb.139.1455740772169; Wed, 17 Feb 2016 12:26:12 -0800 (PST) Original-Received: by 10.176.7.97 with HTTP; Wed, 17 Feb 2016 12:25:52 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::22a X-Mailman-Approved-At: Wed, 17 Feb 2016 16:00:30 -0500 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:109202 Archived-At: Greetings. imenu does not recognize bash functions of the form foo-bar() { ... } i.e, functions with dashes in them. shell-script-mode does recognize them, as they are properly highlighted. Both modes recognise foo_bar() { ... } i.e, functions with underbars. I've been trying to use defadvice to wrap sh-current-defun-name and sh-imenu-generic-expression to get imenu to be happy. But it isn't working and, given that shell-script-mode DOES recognize the forms, I'm wondering if it's not something in imenu that has to be adjusted. Does anyone have any ideas as to how I should proceed? -- Matthew O. Persico