From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xavier Noria Newsgroups: gmane.emacs.help Subject: best practices for TAGS Date: Mon, 5 Dec 2011 00:29:22 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1323041608 22011 80.91.229.12 (4 Dec 2011 23:33:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 4 Dec 2011 23:33:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 05 00:33:25 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RXLYi-0001cX-DY for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Dec 2011 00:33:24 +0100 Original-Received: from localhost ([::1]:55212 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXLYc-0007qO-8G for geh-help-gnu-emacs@m.gmane.org; Sun, 04 Dec 2011 18:33:18 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:35909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXLVV-0007cP-Tg for help-gnu-emacs@gnu.org; Sun, 04 Dec 2011 18:30:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RXLVU-0005sI-QD for help-gnu-emacs@gnu.org; Sun, 04 Dec 2011 18:30:05 -0500 Original-Received: from mail-pz0-f41.google.com ([209.85.210.41]:57551) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXLVU-0005rn-LV for help-gnu-emacs@gnu.org; Sun, 04 Dec 2011 18:30:04 -0500 Original-Received: by dakl33 with SMTP id l33so1494175dak.0 for ; Sun, 04 Dec 2011 15:30:03 -0800 (PST) Original-Received: by 10.68.33.105 with SMTP id q9mr18001527pbi.106.1323041403229; Sun, 04 Dec 2011 15:30:03 -0800 (PST) Original-Received: by 10.142.185.1 with HTTP; Sun, 4 Dec 2011 15:29:22 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.41 X-Mailman-Approved-At: Sun, 04 Dec 2011 18:33:15 -0500 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:83125 Archived-At: I would basically like to have a workflow for the TAGS file that makes some assumptions, and thanks to them it works out of the box and it is always in sync. For example, define the current tags file as the first one you find from the current directory up the hierarchy, nil if none found. I'd like to define my own version of find-tag that looks for the current tags file as defined above. If the tags file is outdated, I'd like to run some shell command automatically and revisit it, then do the find-tag. No prompts whatsoever. If I find myself in a situation where the conventions do not hold, I'll resort to the builtin functions. You see, I'd like that find-tag and friends do automatically what makes sense in 99% of my projects and be always in sync without my intervention. Does anybody work use a worflow like that?