unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: uzibalqa <uzibalqa@proton.me>
To: Drew Adams <drew.adams@oracle.com>
Cc: uzibalqa via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Subject: RE: [External] : Testing validity of a word
Date: Wed, 26 Jul 2023 02:32:58 +0000	[thread overview]
Message-ID: <U9abXloTJhSYgKAnYNqjjp76AqbVl2BMlKDpiBAPFz-wr7QLVq0zO0669ItpcQ9u8QdAhiFl_gIJgKv6NCtS0oUrQG5ikUtzo-P_uXjcB-A=@proton.me> (raw)
In-Reply-To: <SJ0PR10MB5488A00F25657BD686BD56E0F300A@SJ0PR10MB5488.namprd10.prod.outlook.com>






Sent with Proton Mail secure email.

------- Original Message -------
On Wednesday, July 26th, 2023 at 1:33 PM, Drew Adams <drew.adams@oracle.com> wrote:


> > Is there a package in Emacs for dictionary word lookup ?
> 
> 
> Maybe have a look at the links here, under "Dictionaries". There seem to be a dozen or so.
> 
> https://www.emacswiki.org/emacs/CategoryInterface

Have taken the ispell route.  But I got into the difficulty of 

(error "Marker points into wrong buffer" #<marker at 1 in  *temp*>)

Furthermore I am not sure whether the method is efficient.

(defun is-valid-word (word)
  "Check if the WORD is valid using `ispell`."
  (let ((original-buffer (current-buffer)))
    (with-temp-buffer
      (insert word)
      (ispell-word)
      (not (eq (current-buffer) original-buffer)))))




  parent reply	other threads:[~2023-07-26  2:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-26  0:21 Testing validity of a word uzibalqa
2023-07-26  1:33 ` [External] : " Drew Adams
2023-07-26  1:40   ` uzibalqa
2023-07-26  2:27     ` uzibalqa
2023-07-26  4:21     ` Drew Adams
2023-07-26  2:32   ` uzibalqa [this message]
2023-07-26 12:06 ` Emanuel Berg
2023-07-26 17:08   ` uzibalqa
2023-07-26 17:45     ` Emanuel Berg
2023-07-26 19:07     ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='U9abXloTJhSYgKAnYNqjjp76AqbVl2BMlKDpiBAPFz-wr7QLVq0zO0669ItpcQ9u8QdAhiFl_gIJgKv6NCtS0oUrQG5ikUtzo-P_uXjcB-A=@proton.me' \
    --to=uzibalqa@proton.me \
    --cc=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).