Browse Source

Added some messaging, reset tags

The reset tags function is mostly because I don't quite understand
tags-tables when switching branches of projects (in different folders).
master
Macoy Madson 2 years ago
parent
commit
dce44495d0
  1. 6
      Emacs/index-management.el
  2. 10
      Emacs/tags-and-autocompletion.el

6
Emacs/index-management.el

@ -19,7 +19,7 @@ Note that this does not perform any indexing."
;; Strip the trailing '/'
(substring (read-directory-name
(format "Data index directory (was %s): " macoy-active-data-dir)) 0 -1)))
;; Follow up by updating things which rely on this statically
(setq tortoise-svn-repository-path macoy-active-code-dir)
(setq macoy-active-code-dir-gitbash (macoy-windows-path-to-gitbash-path macoy-active-code-dir))
@ -30,4 +30,6 @@ Note that this does not perform any indexing."
;; TODO Make this an add-to-list conditionally on exclude
(setq codesearch-cindex-args
(list "-reset" "-exclude" (format "%s/csearchIgnorePatterns" macoy-active-code-dir)))
(setq macoy-codesearch-search-data-dir macoy-active-data-search-dir))
(setq macoy-codesearch-search-data-dir macoy-active-data-search-dir)
(message "Set to %s (code) and %s (data). No indexing performed"
macoy-active-code-dir macoy-active-data-dir))

10
Emacs/tags-and-autocompletion.el

@ -110,6 +110,16 @@
tags-completion-table)
(message "Refreshing ido tags list done"))
(defun macoy-reset-tags ()
(interactive)
(setq tags-table-list macoy-tags-files)
;; tags-completion-table() early-outs if the table has already been created
;; This is problematic if TAGS has changed
;; Clearing it here ensures the table won't get out of sync
(when tags-completion-table
(setq tags-completion-table nil))
(tags-completion-table))
(defun macoy-ido-find-tag ()
"Find a tag using ido"
(interactive)

Loading…
Cancel
Save