From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Denis Golovan" Newsgroups: gmane.emacs.help Subject: VTags dynamic tags specification Date: Sat, 27 Sep 2008 11:35:24 +0300 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1222504562 26682 80.91.229.12 (27 Sep 2008 08:36:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Sep 2008 08:36:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 27 10:36:58 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KjVIP-0002ko-GF for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Sep 2008 10:36:57 +0200 Original-Received: from localhost ([127.0.0.1]:43156 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KjVHM-0008FI-Qf for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Sep 2008 04:35:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KjVGy-0008Be-13 for help-gnu-emacs@gnu.org; Sat, 27 Sep 2008 04:35:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KjVGv-00089o-P9 for help-gnu-emacs@gnu.org; Sat, 27 Sep 2008 04:35:27 -0400 Original-Received: from [199.232.76.173] (port=59406 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KjVGv-00089l-Fe for help-gnu-emacs@gnu.org; Sat, 27 Sep 2008 04:35:25 -0400 Original-Received: from wa-out-1112.google.com ([209.85.146.182]:50470) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KjVGv-0005zq-5G for help-gnu-emacs@gnu.org; Sat, 27 Sep 2008 04:35:25 -0400 Original-Received: by wa-out-1112.google.com with SMTP id k40so651847wah.26 for ; Sat, 27 Sep 2008 01:35:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=3eEHAeugcXD+FSZ+hu3acm0ui2cViyD1OYb8j9DMba0=; b=eRXx+gFKbiH30u53C8C1PLshdJP9iEjUpJUl71G3CKwx9ghv2e+GEvEXLc/iBwzkHk W5+3HgAlodCNSb3Fu8DbJgxkKnLDk1bDKlWiT4vgD2TI0BMjV02abT1NYpnB0GkXZb+z 8NtiGAIrg5ocEh+88LNZhs3yQyjXqiVg01/i0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=KCLpsxlmaT4rs2VGIf8b/P8PXTE2Av6ZcvF5W1GiDIeSigDqcKgCTGVLf+a1xdiUHh wQR1m6Ls5cd7YfpuBK/sv35XkRSOuyVIt6p0kEmlGxcbcoGunoVXX1D/5rr6p6y32WHv A8S0eDf2Jjk4NSUeYRXTRNKM2uy9DKkztxiD8= Original-Received: by 10.114.241.15 with SMTP id o15mr2700843wah.96.1222504524167; Sat, 27 Sep 2008 01:35:24 -0700 (PDT) Original-Received: by 10.114.157.7 with HTTP; Sat, 27 Sep 2008 01:35:24 -0700 (PDT) Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58132 Archived-At: Hi, all Does anybody uses VTags? It works well, but I'd like to automate it's tags file adding. Unfortunately, I have not managed to do that. Every time after opening project file, it asks for tags file to enter manually. In fact tags file lies in ./tmp/tags file relative to dpr. Here is that .emacs part ;;======================VTAGS====================== (load "vtags") (defun dsg-tags-add-table (file) "add tags table" (message "Tags %s" file) ;;That's where I try to tell it tags file <<<<<<<<<<<<<< ;(add-to-list 'tags-table-list file) ;(add-to-list 'tags-table-list (quote (file))) ;(setq tags-table-computed-list (tags-compute-list (get-tagfileinfo file))) ;(custom-set-variables ; '(tags-table-list (quote (file))) ;) ;;No way works actually :( <<<<<<<<<<<<<< (vtags-mode) (message "Tags %s" file) ) (defun dsg-tags-add () "add tags table" (if (string-match "\\.dpr$" (buffer-file-name)) (dsg-tags-add-table (concat (file-name-directory (buffer-file-name)) "tmp/tags") ) ) ) (defun dsg-tags () "add tags table" (interactive) (dsg-tags-add) ) (add-hook 'find-file-hooks (function (lambda () (dsg-tags-add) ) ) ) ;;======================VTAGS====================== I'm not a elisp guru, as you see :). So, please help Thanks. -- Best regards, Denis Golovan