[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 2b62400: Rename debbugs-reference.el to debbugs-browse.el
From: |
Michael Albinus |
Subject: |
[elpa] master 2b62400: Rename debbugs-reference.el to debbugs-browse.el |
Date: |
Thu, 09 Apr 2015 08:33:17 +0000 |
branch: master
commit 2b62400208ec60eb0c5f7ac76e4b9a47baff2d3b
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>
Rename debbugs-reference.el to debbugs-browse.el
* debbugs-browse.el: Rename from debbugs-reference.el. Rename
also all symbols accordingly.
(debbugs-browse-function): New customer option.
(debbugs-browse-url): Use it.
* debbugs-ug.texi (Minor Mode): Rewrite, explaining `debbugs-browse-mode'.
---
.../{debbugs-reference.el => debbugs-browse.el} | 45 +++++++--------
packages/debbugs/debbugs-ug.info | 59 +++++++++++---------
packages/debbugs/debbugs-ug.texi | 35 ++++++++----
3 files changed, 76 insertions(+), 63 deletions(-)
diff --git a/packages/debbugs/debbugs-reference.el
b/packages/debbugs/debbugs-browse.el
similarity index 59%
rename from packages/debbugs/debbugs-reference.el
rename to packages/debbugs/debbugs-browse.el
index e7dd6b6..b62bb5b 100644
--- a/packages/debbugs/debbugs-reference.el
+++ b/packages/debbugs/debbugs-browse.el
@@ -1,4 +1,4 @@
-;; debbugs-reference.el --- use debbugs-gnu browsing bug references
+;; debbugs-browse.el --- browse bug URLs with debbugs-gnu or debbugs-org
;; Copyright (C) 2015 Free Software Foundation, Inc.
@@ -24,13 +24,19 @@
;;; Commentary:
-;; This file provides minor modes for putting clickable overlays on
-;; references to bugs. It uses bug-reference.el, but changes
-;; buffer-local the browser to present the bugs to `debbugs-gnu-bugs'.
+;; This file provides a minor mode for browsing bug URLs with
+;; `debbugs-gnu-bugs' or `debbugs-org-bugs'.
;;; Code:
-;;;###autoload
+(defcustom debbugs-browse-function 'debbugs-gnu-bugs
+ "The debbugs function used for showing bugs.
+This can be either `debbugs-gnu-bugs' or `debbugs-org-bugs'."
+ :group 'debbugs-gnu
+ :type '(choice (const debbugs-gnu-bugs)
+ (const debbugs-org-bugs))
+ :version "25.1")
+
(defun debbugs-browse-url (url &optional _new-window)
(when (and (stringp url)
(string-match
@@ -39,34 +45,25 @@
(regexp-quote "http://debbugs.gnu.org/")
(regexp-quote "cgi/bugreport.cgi?bug="))
url))
- (debbugs-gnu-bugs (string-to-number (match-string 2 url)))
+ (funcall debbugs-browse-function (string-to-number (match-string 2 url)))
;; Return t for add-function mechanery.
t))
;;;###autoload
-(define-minor-mode debbugs-reference-mode
- "Toggle hyperlinking bug references in the buffer (Bug Reference mode).
-With a prefix argument ARG, enable Bug Reference mode if ARG is
+(define-minor-mode debbugs-browse-mode
+ "Browse GNU Debbugs bug URLs with debbugs-gnu or debbugs-org.
+With a prefix argument ARG, enable Debbugs Browse mode if ARG is
positive, and disable it otherwise. If called from Lisp, enable
-the mode if ARG is omitted or nil."
- nil
- ""
- nil
- (if debbugs-reference-mode
- (add-function
- :before-until (local 'browse-url-browser-function) 'debbugs-browse-url)
- (remove-function (local 'browse-url-browser-function)
'debbugs-browse-url)))
-
-;;;###autoload
-(define-minor-mode debbugs-reference-prog-mode
- "Like `debbugs-reference-mode', but only buttonize in comments and strings."
+the mode if ARG is omitted or nil.
+The customer option `debbugs-browse-function' controls, which of
+the two packages is used for showing bugs."
nil
""
nil
- (if debbugs-reference-prog-mode
+ (if debbugs-browse-mode
(add-function
:before-until (local 'browse-url-browser-function) 'debbugs-browse-url)
(remove-function (local 'browse-url-browser-function)
'debbugs-browse-url)))
-(provide 'debbugs-reference)
-;;; debbugs-reference.el ends here
+(provide 'debbugs-browse)
+;;; debbugs-browse.el ends here
diff --git a/packages/debbugs/debbugs-ug.info b/packages/debbugs/debbugs-ug.info
index 887f550..c0526a6 100644
--- a/packages/debbugs/debbugs-ug.info
+++ b/packages/debbugs/debbugs-ug.info
@@ -1,4 +1,4 @@
-This is debbugs-ug.info, produced by makeinfo version 5.2 from
+This is debbugs-ug.info, produced by makeinfo version 5.0 from
debbugs-ug.texi.
Copyright (C) 2015 Free Software Foundation, Inc.
@@ -50,8 +50,8 @@ Mode: (org)Top.). As backend they use the 'debbugs' Emacs
library
* Retrieving Bugs:: How to retrieve bugs.
* Searching Bugs:: How to search in the debbugs database.
-* Layout:: How to results are presented.
-* Minor Modes:: How to use 'debbugs' in files.
+* Layout:: How the results are presented.
+* Minor Mode:: How to use browse bug URLs.
* Command Index:: Debbugs commands.
* Variable Index:: User options and variables.
@@ -255,7 +255,7 @@ Debbugs server only.
are not supported.
-File: debbugs-ug.info, Node: Layout, Next: Minor Modes, Prev: Searching
Bugs, Up: Top
+File: debbugs-ug.info, Node: Layout, Next: Minor Mode, Prev: Searching
Bugs, Up: Top
3 Layout
********
@@ -467,24 +467,29 @@ the control messages.
email address. The tag to be set is also read interactively.
-File: debbugs-ug.info, Node: Minor Modes, Next: Command Index, Prev:
Layout, Up: Top
+File: debbugs-ug.info, Node: Minor Mode, Next: Command Index, Prev: Layout,
Up: Top
-4 Minor Modes
-*************
+4 Minor Mode
+************
Emacs uses 'bug-reference.el' for adding hyperlinks to bugs in files
like 'ChangeLog', or in commentary sections of other files. The
-reference to such bugs have a specialized format, 'Bug#12345'. The
+reference to such bugs have a specialized format, <Bug#12345>. The
hyperlinks are implemented as minor modes 'bug-reference-mode' and
'bug-reference-prog-mode'.
- This package adds two other minor modes on top of them,
-'debbugs-reference-mode' and 'debbugs-reference-prog-mode'. They work
-like the 'bug-reference-*' modes, but instead of opening a browser for a
-given bug reference, they open a corresponding bug report buffer.
+ This package adds a new minor mode 'debbugs-browse-mode' on top of
+them. Instead of using the default built-in Emacs browser for a given
+bug reference, it opens a corresponding bug report buffer. The customer
+option 'debbugs-browse-function' controls, whether 'debbugs-gnu-bugs' or
+'debbugs-org-bugs' is called.
+
+ This minor mode is applicable for all URLs, not only bug references.
+Any URL with the format <http://debbugs.gnu.org/12345> will be shown in
+a bug report buffer, when 'debbugs-browse-mode' is enabled.
-File: debbugs-ug.info, Node: Command Index, Next: Variable Index, Prev:
Minor Modes, Up: Top
+File: debbugs-ug.info, Node: Command Index, Next: Variable Index, Prev:
Minor Mode, Up: Top
Command Index
*************
@@ -492,14 +497,13 @@ Command Index
[index ]
* Menu:
+* debbugs-browse-mode: Minor Mode. (line 12)
* debbugs-gnu: Retrieving Bugs. (line 14)
* debbugs-gnu-bugs: Retrieving Bugs. (line 68)
* debbugs-gnu-search: Searching Bugs. (line 10)
* debbugs-org: Retrieving Bugs. (line 16)
* debbugs-org-bugs: Retrieving Bugs. (line 69)
* debbugs-org-search: Searching Bugs. (line 11)
-* debbugs-reference-mode: Minor Modes. (line 12)
-* debbugs-reference-prog-mode: Minor Modes. (line 12)
File: debbugs-ug.info, Node: Variable Index, Next: Key Index, Prev: Command
Index, Up: Top
@@ -510,6 +514,7 @@ Variable Index
[index ]
* Menu:
+* debbugs-browse-function: Minor Mode. (line 12)
* debbugs-gnu-all-packages: Retrieving Bugs. (line 35)
* debbugs-gnu-all-severities: Retrieving Bugs. (line 26)
* debbugs-gnu-default-hits-per-page: Retrieving Bugs. (line 61)
@@ -545,17 +550,17 @@ Key Index
Tag Table:
Node: Top1087
-Node: Retrieving Bugs2627
-Node: Searching Bugs6149
-Ref: Searching Bugs-Footnote-110018
-Ref: Searching Bugs-Footnote-210106
-Node: Layout10197
-Node: Tabulated Lists10673
-Node: TODO Items13107
-Node: Control Messages14372
-Node: Minor Modes16532
-Node: Command Index17220
-Node: Variable Index17955
-Node: Key Index18471
+Node: Retrieving Bugs2625
+Node: Searching Bugs6147
+Ref: Searching Bugs-Footnote-110016
+Ref: Searching Bugs-Footnote-210104
+Node: Layout10195
+Node: Tabulated Lists10670
+Node: TODO Items13104
+Node: Control Messages14369
+Node: Minor Mode16529
+Node: Command Index17467
+Node: Variable Index18128
+Node: Key Index18717
End Tag Table
diff --git a/packages/debbugs/debbugs-ug.texi b/packages/debbugs/debbugs-ug.texi
index 720d95d..d3c85a5 100644
--- a/packages/debbugs/debbugs-ug.texi
+++ b/packages/debbugs/debbugs-ug.texi
@@ -61,8 +61,8 @@ Programmer's Manual, debbugs}).
@menu
* Retrieving Bugs:: How to retrieve bugs.
* Searching Bugs:: How to search in the debbugs database.
-* Layout:: How to results are presented.
-* Minor Modes:: How to use @code{debbugs} in files.
+* Layout:: How the results are presented.
+* Minor Mode:: How to use browse bug URLs.
* Command Index:: Debbugs commands.
* Variable Index:: User options and variables.
@@ -534,22 +534,27 @@ address. The tag to be set is also read interactively.
@end table
address@hidden Minor Modes
address@hidden Minor Modes
address@hidden Minor Mode
address@hidden Minor Mode
Emacs uses @file{bug-reference.el} for adding hyperlinks to bugs in
files like @file{ChangeLog}, or in commentary sections of other files.
The reference to such bugs have a specialized format,
address@hidden The hyperlinks are implemented as minor modes
address@hidden The hyperlinks are implemented as minor modes
@code{bug-reference-mode} and @code{bug-reference-prog-mode}.
address@hidden debbugs-reference-mode
address@hidden debbugs-reference-prog-mode
-This package adds two other minor modes on top of them,
address@hidden and @code{debbugs-reference-prog-mode}.
-They work like the @code{bug-reference-*} modes, but instead of
-opening a browser for a given bug reference, they open a corresponding
-bug report buffer.
address@hidden debbugs-browse-mode
address@hidden debbugs-browse-function
+This package adds a new minor mode @code{debbugs-browse-mode} on top
+of them. Instead of using the default built-in Emacs browser for a
+given bug reference, it opens a corresponding bug report buffer. The
+customer option @code{debbugs-browse-function} controls, whether
address@hidden or @code{debbugs-org-bugs} is called.
+
+This minor mode is applicable for all URLs, not only bug references.
+Any URL with the format @uref{http://debbugs.gnu.org/12345} will be
+shown in a bug report buffer, when @code{debbugs-browse-mode} is
+enabled.
@node Command Index
@@ -567,3 +572,9 @@ bug report buffer.
@printindex ky
@bye
+
address@hidden Local Variables:
address@hidden bug-reference-url-format: "http://debbugs.gnu.org/%s"
address@hidden eval: (bug-reference-mode)
address@hidden eval: (debbugs-browse-mode)
address@hidden End:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] master 2b62400: Rename debbugs-reference.el to debbugs-browse.el,
Michael Albinus <=