[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hyperbole 488bb31 13/53: hib-debbugs.el: Removed depend
From: |
Robert Weiner |
Subject: |
[elpa] externals/hyperbole 488bb31 13/53: hib-debbugs.el: Removed dependency on package.el which some people don't want/need loaded. |
Date: |
Wed, 15 Nov 2017 22:47:00 -0500 (EST) |
branch: externals/hyperbole
commit 488bb3158ada9deb596e2da7a9d395a0e1094e5a
Author: Bob Weiner <address@hidden>
Commit: Bob Weiner <address@hidden>
hib-debbugs.el: Removed dependency on package.el which some people don't
want/need loaded.
* hib-debbugs.el (debbugs-version-sufficient-p): Added to eliminate use of
version testing
function from package.el which some people prefer not to load.
---
Changes | 7 +++++++
hib-debbugs.el | 18 ++++++++++++++----
2 files changed, 21 insertions(+), 4 deletions(-)
diff --git a/Changes b/Changes
index ada158e..1e3796d 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,10 @@
+2017-09-23 Bob Weiner <address@hidden>
+
+* hib-debbugs.el (debbugs-version-sufficient-p): Added to eliminate use of
version testing
+ function from package.el which some people prefer not to load.
+
+----
+
2017-09-22 Bob Weiner <address@hidden>
* hib-social.el (hibtypes-git-add-project-to-repos-cache)
diff --git a/hib-debbugs.el b/hib-debbugs.el
index bbdcd40..6d221ba 100644
--- a/hib-debbugs.el
+++ b/hib-debbugs.el
@@ -8,7 +8,8 @@
;; See the "HY-COPY" file for license information.
;;
;; This file is part of Hyperbole. It requires the Emacs package
-;; Debbugs 0.9.7 or higher.
+;; Debbugs 0.9.7 or higher; there were bugs in earlier versions
+;; that made it incompatible with the queries Hyperbole issues.
;;
;;; Commentary:
;;
@@ -67,7 +68,7 @@
;;; Other required Elisp libraries
;;; ************************************************************************
-(eval-and-compile (mapc #'require '(hactypes package)))
+(eval-and-compile (mapc #'require '(hactypes)))
(eval-when-compile (require 'debbugs-gnu nil t))
;;; ************************************************************************
@@ -94,7 +95,7 @@ attribute):
bug#id-number?attr1=val1&attr2=val2&attr3=val3
Note that `issue' or `debbugs' may be used as well in place of `bug'."
- (when (package-installed-p 'debbugs (version-to-list "0.9.7"))
+ (when (debbugs-version-sufficient-p)
(if (debbugs-query:at-p)
(cond ((and (match-beginning 3) (string-equal "?" (match-string 3)))
(hact 'debbugs-gnu-query:string (buffer-substring-no-properties
@@ -112,7 +113,7 @@ Note that `issue' or `debbugs' may be used as well in place
of `bug'."
(defun debbugs-gnu-query:help (but)
"Makes a Gnu debbugs id number at point (optionally prefixed with a # sign)
display the pretty pretted status of the bug id.
Ignores other types of Gnu debbugs query strings."
- (if (and (package-installed-p 'debbugs (version-to-list "0.9.7"))
+ (if (and (debbugs-version-sufficient-p)
(debbugs-query:at-p)
(match-beginning 2))
(debbugs-query:status (string-to-number (match-string 2)))
@@ -234,6 +235,15 @@ Ignores nil valued attributes. Returns t unless no
attributes are printed."
(princ (format (concat " %s:%" len "s%S\n") attr " " val))))
has-attr))))
+(defun debbugs-version-sufficient-p ()
+ "Return t iff debbugs version is sufficient for use with Hyperbole (greater
than equal to 0.9.7)."
+ (let ((debbugs-src (locate-file "debbugs" load-path '(".el")))
+ version)
+ (when debbugs-src
+ (setq version (shell-command-to-string (format "fgrep -m1 Version: %s |
sed -e 's/[^.0-9]//g' | tr -d '\n'" debbugs-src)))
+ (when (not (equal version ""))
+ (version-list-<= (version-to-list "0.9.7") (version-to-list
version))))))
+
(provide 'hib-debbugs)
;;; hib-debbugs.el ends here
- [elpa] externals/hyperbole updated (0539520 -> 9b2d75a), Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole 4fdcb7d 02/53: 2016-08-17 Bob Weiner <address@hidden>, Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole 3aea4ee 07/53: Changes to hui-window.el had not been saved in prior commit., Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole a2e2dc3 08/53: Made smart-helm ignore helm candidate separator lines., Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole a6acb39 04/53: 2016-09-08 Bob Weiner <address@hidden>, Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole 488bb31 13/53: hib-debbugs.el: Removed dependency on package.el which some people don't want/need loaded.,
Robert Weiner <=
- [elpa] externals/hyperbole 992870d 12/53: Speeded up search for and addition of a single git project to the dir cache., Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole 1b40c4e 14/53: hib-social.el: When a git-reference is activated, trigger an error if `locate' command is not found., Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole ddd114d 01/53: 2016-08-12 Bob Weiner <address@hidden>, Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole 4ace769 17/53: Added brief pulsing/flashing from source line to line in destination buffer., Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole 632789b 18/53: Made Action Key display selected buffer menu item in the same window as the buffer menu., Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole fed1547 09/53: * hib-social.el (hibtypes-social-default-service): Changed to use a radio, Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole a933051 19/53: Supported Emacs button mouse action; improved Lisp outlining support; improved load library links, Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole 06d6cf1 16/53: V6.0.2a; Action Key drag from buffer, file and helm buffer item menus to another window to display., Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole 9457b27 03/53: * hmouse-drv.el (hkey-help-show): Modified to invoke help-mode only if buffer name includes 'Help' to, Robert Weiner, 2017/11/15
- [elpa] externals/hyperbole 2b9d47e 33/53: Merge branch 'master' of git.sv.gnu.org:/srv/git/hyperbole with Mats assist-flag fix., Robert Weiner, 2017/11/15