From 4b03c60fe9a9bdaa3abb99c5245c8d990b37aa50 Mon Sep 17 00:00:00 2001 From: Arash Esbati Date: Thu, 13 Jun 2024 11:46:09 +0200 Subject: [PATCH] ; Fix some docstrings. (bug#71532) (cherry picked from commit d05f473285de734fd1a30a7ee69f36303d5ecb7c) --- lisp/textmodes/ispell.el | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 67be936ca24..607322b29a9 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -219,8 +219,9 @@ This is also used by `ispell-lookup-words' and `ispell-complete-word'." :type '(choice file (const :tag "None" nil))) (defcustom ispell-complete-word-dict nil - "Plain word-list dictionary used for word completion if -different from `ispell-alternate-dictionary'. + "Plain word-list dictionary used for word completion. +This word-list is used if it is different from +`ispell-alternate-dictionary'. This is also used by `ispell-lookup-words' and `ispell-complete-word'." :type '(choice file (const :tag "None" nil))) @@ -639,8 +640,8 @@ this would require some extra guessing in `ispell-aspell-find-dictionary'.") ("slovenian" "sl_SI") ("svenska" "sv_SE") ("hebrew" "he_IL")) - "Alist with known matching locales for standard dict names in -`ispell-dictionary-base-alist'.") + "Alist with known matching locales for standard dict names. +Standard dict names are defined in `ispell-dictionary-base-alist'.") ;;; ********************************************************************** @@ -759,14 +760,16 @@ Otherwise return the library directory name, if that is defined." ,@body)) (defun ispell-call-process (&rest args) - "Like `call-process', but defend against bad `default-directory'." + "Like `call-process', but defend against bad `default-directory'. +ARGS are passed to `call-process'." (ispell-with-safe-default-directory - (apply 'call-process args))) + (apply #'call-process args))) (defun ispell-call-process-region (&rest args) - "Like `call-process-region', but defend against bad `default-directory'." + "Like `call-process-region', but defend against bad `default-directory'. +ARGS are passed to `call-process'." (ispell-with-safe-default-directory - (apply 'call-process-region args))) + (apply #'call-process-region args))) (defvar ispell-debug-buffer) @@ -856,10 +859,9 @@ Assumes that value contains no whitespace." (car (split-string (buffer-string))))) (defun ispell-aspell-find-dictionary (dict-name) - "For Aspell dictionary DICT-NAME, return a list of parameters if an -associated data file is found or nil otherwise. List format is that -of `ispell-dictionary-base-alist' elements." - + "For Aspell dictionary DICT-NAME, return a list of parameters. +List format is that of `ispell-dictionary-base-alist' elements. Return +nil if no associated data file is found." ;; Make sure `ispell-aspell-dict-dir' is defined (or ispell-aspell-dict-dir (setq ispell-aspell-dict-dir @@ -1614,8 +1616,8 @@ a `~' followed by an extended-character mode -- such as `~.tex'. The last occurring definition in the buffer will be used.") (defun ispell--\\w-filter (char) - "Return CHAR in a string when CHAR doesn't have \"word\" syntax, -nil otherwise. CHAR must be a character." + "Return CHAR as a string when CHAR doesn't have \"word\" syntax. +CHAR must be a valid character. Return nil otherwise." (let ((str (string char))) (and (not (string-match "\\w" str)) @@ -3891,7 +3893,8 @@ Otherwise, it must be a function which is called to get the limit.") (defun ispell-mime-multipartp (&optional limit) - "Return multipart message start boundary or nil if none." + "Return the start boundary of a multipart message, or nil if none. +LIMIT is passed to `re-search-forward', which see." ;; caller must ensure `case-fold-search' is set to t (and (re-search-forward -- 2.39.2