From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ams@gnu.org (Alfred M. Szmidt) Newsgroups: gmane.emacs.devel Subject: ctags/etags: rc file? Date: Thu, 20 Nov 2014 06:47:53 -0500 Message-ID: Reply-To: ams@gnu.org NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1416484094 13627 80.91.229.3 (20 Nov 2014 11:48:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Nov 2014 11:48:14 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 20 12:48:08 2014 Return-path: Envelope-to: ged-emacs-devel@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 1XrQDX-0007KD-MD for ged-emacs-devel@m.gmane.org; Thu, 20 Nov 2014 12:48:07 +0100 Original-Received: from localhost ([::1]:34805 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrQDW-0003Xz-Vl for ged-emacs-devel@m.gmane.org; Thu, 20 Nov 2014 06:48:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrQDK-0003V1-EU for emacs-devel@gnu.org; Thu, 20 Nov 2014 06:47:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrQDJ-0001ju-Ow for emacs-devel@gnu.org; Thu, 20 Nov 2014 06:47:54 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59573) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrQDJ-0001je-Le for emacs-devel@gnu.org; Thu, 20 Nov 2014 06:47:53 -0500 Original-Received: from ams by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1XrQDJ-0005kZ-BN for emacs-devel@gnu.org; Thu, 20 Nov 2014 06:47:53 -0500 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:177866 Archived-At: Would it be possible for ctags/etags to read a simple .etags (or something) file that contains the command line arguments? The reason for it is that often projects have a bunch of default arguments that are being passed to etags, which are not just regexps and it is annoying to keep track of them at times. If .etags (one argument per line) contains, --language=none --regex='/[ \t]*function.*=[ \t]*\([^ \t]*\)[ \t]*(/\1/' --regex='/###key \(.*\)/\1/' --regex='/[ \t]*global[ \t].*/' *.m And then issuing "etags -Z" (or some other sensible short option) it would be equivalent to running, etags --language=none --regex='/[ \t]*function.*=[ \t]*\([^ \t]*\)[ \t]*(/\1/' --regex='/###key \(.*\)/\1/' --regex='/[ \t]*global[ \t].*/' *.m