Function: ispell-get-decoded-string

ispell-get-decoded-string is a byte-compiled function defined in ispell.el.gz.

Signature

(ispell-get-decoded-string N)

Documentation

Get the decoded string in slot N of the descriptor of the current dict.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/ispell.el.gz
;; Return a string decoded from Nth element of the current dictionary.
(defun ispell-get-decoded-string (n)
  "Get the decoded string in slot N of the descriptor of the current dict."
  (let* ((slot (or
		(assoc ispell-current-dictionary ispell-local-dictionary-alist)
		(assoc ispell-current-dictionary ispell-dictionary-alist)
		(error "No data for dictionary \"%s\" in `ispell-local-dictionary-alist' or `ispell-dictionary-alist'"
		       ispell-current-dictionary)))
         (str (nth n slot)))
    (if (stringp str)
        (decode-coding-string str (ispell-get-coding-system) t))))