emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 173/352: Täydennetään funktion wcheck-spelling-suggestions kuvau


From: Stefan Monnier
Subject: [elpa] 173/352: Täydennetään funktion wcheck-spelling-suggestions kuvausta
Date: Mon, 07 Jul 2014 14:03:40 +0000

monnier pushed a commit to branch master
in repository elpa.

commit c0dd9bf6eabf0ce3b538d0da1262cd6ae7bf1e07
Author: Teemu Likonen <address@hidden>
Date:   Thu Aug 5 05:56:23 2010 +0000

    Täydennetään funktion wcheck-spelling-suggestions kuvausta
---
 wcheck-mode.el |   25 ++++++++++++++++++-------
 1 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/wcheck-mode.el b/wcheck-mode.el
index ba6d13a..0700007 100644
--- a/wcheck-mode.el
+++ b/wcheck-mode.el
@@ -1062,15 +1062,26 @@ the text and (3) marker at the end of the text."
 
 ;;;###autoload
 (defun wcheck-spelling-suggestions (pos &optional event)
-  "Get spelling suggestions for marked text at POS.
+  "Offer spelling suggestions for marked text.
+
+This function is usually called through a right mouse button
+event or interactively by a user. In both cases function's
+arguments are filled automatically.
+
 If buffer position POS is on marked text (and substitute
 suggestion program is properly configured) show a menu of
-suggested substitutions. If user chooses one of them the original
-marked text is replaced with the chosen substitute. Optional
-EVENT argument is a mouse event. If it's non-nil use a graphic
-toolkit's menu (when available) for selecting suggestions.
-Otherwise use a text menu. Function returns the replacement text
-or nil if nothing was replaced."
+suggested substitutions. When this function is called
+interactively POS is automatically the current point position.
+Optional EVENT argument is a mouse event which is present if this
+function is called through a right mouse button click on marked
+text. If EVENT is non-nil use a graphic toolkit's menu (when
+available) for selecting suggestions. Otherwise use a text menu.
+
+When user chooses one of the suggestions from the menu the
+original marked text is replaced with the chosen substitute.
+Function returns the replacement text (string) or nil if nothing
+was replaced."
+
   (interactive "d")
   (let ((overlay-data (or (wcheck-marked-text-at pos)
                           (wcheck-marked-text-at (1- pos))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]