All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dirk Gouders <dirk@gouders.net>
To: Michal Marek <mmarek@suse.cz>
Cc: Dirk Gouders <dirk@gouders.net>,
	Masatake YAMATO <yamato@redhat.com>,
	linux-kbuild@vger.kernel.org, Jianyu Zhan <nasa4836@gmail.com>
Subject: [PATCH 1/3] scripts/tags.sh: Don't specify kind-spec for emacs' ctags/etags
Date: Sat, 16 Aug 2014 07:56:56 +0200	[thread overview]
Message-ID: <1408168618-6269-2-git-send-email-dirk@gouders.net> (raw)
In-Reply-To: <1408168618-6269-1-git-send-email-dirk@gouders.net>

Emacs' ctags/etags don't know about kind-spec in --regex and
produce warnings:

etags: invalid regexp modifier `v', ignoring
etags: invalid regexp modifier `/', ignoring

Fix it by removing kind-spec for the emacs case.

Signed-off-by: Dirk Gouders <dirk@gouders.net>
Inspired-by: Masatake YAMATO <yamato@redhat.com>
---
 scripts/tags.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/tags.sh b/scripts/tags.sh
index cbfd269..7279897 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -263,7 +263,7 @@ emacs()
 	--regex='/_PE(\([^,)]*\).*/PEVENT_ERRNO__\1/'		\
 	--regex='/PCI_OP_READ(\([a-z]*[a-z]\).*[1-4])/pci_bus_read_config_\1/' \
 	--regex='/PCI_OP_WRITE(\([a-z]*[a-z]\).*[1-4])/pci_bus_write_config_\1/'\
-	--regex='/DEFINE_HASHTABLE\((\w*)/\1/v/'
+	--regex='/DEFINE_HASHTABLE\((\w*)/\1/'
 
 	all_kconfigs | xargs $1 -a                              \
 	--regex='/^[ \t]*\(\(menu\)*config\)[ \t]+\([a-zA-Z0-9_]+\)/\3/'
-- 
2.0.2


  reply	other threads:[~2014-08-16  5:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-15  4:43 v flags/modifiers in scripts/tags.sh Masatake YAMATO
2014-08-16  5:30 ` Dirk Gouders
2014-08-16  5:56   ` [PATCH 0/3] scripts/tags.sh: some emacs fixes Dirk Gouders
2014-08-16  5:56     ` Dirk Gouders [this message]
2014-08-18  2:50       ` [PATCH 1/3] scripts/tags.sh: Don't specify kind-spec for emacs' ctags/etags Masatake YAMATO
2014-08-16  5:56     ` [PATCH 2/3] scripts/tags.sh: remove *PCGFLAGS regular expressions Dirk Gouders
2014-08-19 15:56       ` Johannes Weiner
2014-08-16  5:56     ` [PATCH 3/3] scripts/tags.sh: fix DEFINE_HASHTABLE in emacs case Dirk Gouders
2014-08-17 15:05   ` v flags/modifiers in scripts/tags.sh Masatake YAMATO

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1408168618-6269-2-git-send-email-dirk@gouders.net \
    --to=dirk@gouders.net \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=mmarek@suse.cz \
    --cc=nasa4836@gmail.com \
    --cc=yamato@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.