Function: dictionary-connection-close

dictionary-connection-close is a byte-compiled function defined in dictionary-connection.el.gz.

Signature

(dictionary-connection-close CONNECTION)

Documentation

Force closing of the CONNECTION.

Source Code

;; Defined in /usr/src/emacs/lisp/net/dictionary-connection.el.gz
(defun dictionary-connection-close (connection)
  "Force closing of the CONNECTION."
  (when (dictionary-connection-p connection)
    (let ((buffer (dictionary-connection-buffer connection))
          (process (dictionary-connection-process connection)))
      (if process
          (delete-process process))
      (if buffer
          (kill-buffer buffer))

      (dictionary-connection-set-process connection nil)
      (dictionary-connection-set-buffer connection nil))))