Function: gnus-topic-delete
gnus-topic-delete is an interactive and byte-compiled function defined
in gnus-topic.el.gz.
Signature
(gnus-topic-delete TOPIC)
Documentation
Delete a topic.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-topic.el.gz
(defun gnus-topic-delete (topic)
"Delete a topic."
(interactive (list (gnus-group-topic-name)) gnus-topic-mode)
(unless topic
(error "No topic to be deleted"))
(let ((entry (assoc topic gnus-topic-alist))
(inhibit-read-only t))
(when (cdr entry)
(error "Topic not empty"))
;; Delete if visible.
(when (gnus-topic-goto-topic topic)
(gnus-delete-line))
;; Remove from alist.
(setq gnus-topic-alist (delq entry gnus-topic-alist))
;; Remove from topology.
(gnus-topic-find-topology topic nil nil 'delete)
(gnus-dribble-touch)))