[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master ab193a3 3/4: Fix #84: avoid double confirmation in ggtags-
From: |
Leo Liu |
Subject: |
[elpa] master ab193a3 3/4: Fix #84: avoid double confirmation in ggtags-ensure-project |
Date: |
Fri, 16 Jan 2015 13:34:36 +0000 |
branch: master
commit ab193a3098e2a14435a54a0e5dd9a82e93b51cca
Author: Leo Liu <address@hidden>
Commit: Leo Liu <address@hidden>
Fix #84: avoid double confirmation in ggtags-ensure-project
---
README.rst | 4 ++--
ggtags.el | 18 ++++++++----------
2 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/README.rst b/README.rst
index a6a69da..f7ed951 100644
--- a/README.rst
+++ b/README.rst
@@ -308,8 +308,8 @@ Integration with other packages
NEWS
~~~~
-(devel) 0.8.9
-+++++++++++++
+[2015-01-16 Fri] 0.8.9
+++++++++++++++++++++++
#. ``ggtags-visit-project-root`` can visit past projects.
#. ``eldoc`` support enabled for emacs 24.4+.
diff --git a/ggtags.el b/ggtags.el
index 28ce368..d3973b2 100644
--- a/ggtags.el
+++ b/ggtags.el
@@ -1,6 +1,6 @@
;;; ggtags.el --- emacs frontend to GNU Global source code tagging system -*-
lexical-binding: t; -*-
-;; Copyright (C) 2013-2014 Free Software Foundation, Inc.
+;; Copyright (C) 2013-2015 Free Software Foundation, Inc.
;; Author: Leo Liu <address@hidden>
;; Version: 0.8.9
@@ -36,10 +36,10 @@
;;
;; All commands are available from the `Ggtags' menu in `ggtags-mode'.
-;;; NEWS 0.8.8 (2014-12-03):
+;;; NEWS 0.8.9 (2015-01-16):
-;; - Command `ggtags-update-tags' now runs in the background for large
-;; projects (per `ggtags-oversize-limit') without blocking emacs.
+;; - `ggtags-visit-project-root' can visit past projects.
+;; - `eldoc' support enabled for emacs 24.4+.
;;
;; See full NEWS on https://github.com/leoliu/ggtags#news
@@ -549,12 +549,10 @@ Value is new modtime if updated."
(defun ggtags-ensure-project ()
(or (ggtags-find-project)
- (when (or (yes-or-no-p "File GTAGS not found; run gtags? ")
- (user-error "Aborted"))
- (call-interactively #'ggtags-create-tags)
- ;; Need checking because `ggtags-create-tags' can create tags
- ;; in any directory.
- (ggtags-check-project))))
+ (progn (call-interactively #'ggtags-create-tags)
+ ;; Need checking because `ggtags-create-tags' can create
+ ;; tags in any directory.
+ (ggtags-check-project))))
(defvar delete-trailing-lines) ;new in 24.3