diff options
author | Guido Günther <agx@sigxcpu.org> | 2016-06-30 14:17:35 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2016-06-30 14:17:35 +0200 |
commit | c8e1b0c852f141528173ba8a894631715fe8bd2b (patch) | |
tree | c5a96df8327173ea4bb528c302fb18ff2af83ba9 /debian.el | |
parent | 12cb389b405ef48cab8cb0b3997abc8ec8e804d6 (diff) |
Simplify opening bugs
Diffstat (limited to 'debian.el')
-rw-r--r-- | debian.el | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/debian.el b/debian.el new file mode 100644 index 0000000..85b2505 --- /dev/null +++ b/debian.el @@ -0,0 +1,13 @@ +(defun xcpu-deb-open-bug () + "Open the bug under the cursor in the debian bts" + (interactive) + (let* ( + (bounds (bounds-of-thing-at-point 'symbol)) + (text (if bounds + (buffer-substring (car bounds) (cdr bounds)) + (read-string "Debian Number: "))) + (url (concat "http://bugs.debian.org/" text)) + ) + (browse-url url) + )) + |