summaryrefslogtreecommitdiff
path: root/debian.el
blob: d1034510c9f7a98e9129129031bbe08ebf916dad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
(defun xcpu-deb-open-bts ()
  "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 Bug Number: ")))
         (url (concat "http://bugs.debian.org/" text))
	 )
    (browse-url url)
    ))

(defun xcpu-deb-open-security-tracker ()
  "Open the symbol under the cursor in the debian security tracker"
  (interactive)
  (let* (
         (bounds (bounds-of-thing-at-point 'symbol))
         (text (if bounds
                   (buffer-substring (car bounds) (cdr bounds))
                 (read-string "CVE Number: ")))
         (url (concat "http://security-tracker.debian.org/" text))
	 )
    (browse-url url)
    ))

(defun xcpu-deb-open-tracker ()
  "Open the symbol under the cursor in the debian package tracker"
  (interactive)
  (let* (
         (bounds (bounds-of-thing-at-point 'symbol))
         (text (if bounds
                   (buffer-substring (car bounds) (cdr bounds))
                 (read-string "Package name: ")))
         (url (concat "http://tracker.debian.org/pkg/" text))
	 )
    (browse-url url)
    ))