unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Mauro Aranda <maurooaranda@gmail.com>
Cc: 11046@debbugs.gnu.org
Subject: bug#11046: 24.0.94; Customize: M-TAB moves cursor over tag; clicking button moves cursor over button
Date: Tue, 01 Oct 2019 14:33:44 +0200	[thread overview]
Message-ID: <87zhik7ihj.fsf@gnus.org> (raw)
In-Reply-To: <CABczVwcOdHfVmipk+7uSHJbtfDPSY1Vxcb_DaGZWGfBJB4yYZA@mail.gmail.com> (Mauro Aranda's message of "Mon, 30 Sep 2019 13:08:50 -0300")

Mauro Aranda <maurooaranda@gmail.com> writes:

> This is because the completion function used for string widgets is
> ispell-complete-word and that command will look back from point until it
> finds a word to complete.
> I can't think of another way of fixing this other than peeking what will
> ispell-complete-word try to complete, so I attach a patch that does
> that.

I think that makes sense...

> -  :complete-function 'ispell-complete-word
> +  :complete (lambda (widget)
> +              (eval-and-compile (require 'ispell)) ; For `ispell-get-word'.

I think the way we usually do this is by just saying (require 'ispell)
in the function, and pacify the compiler by using a `declare-function'.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2019-10-01 12:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-20 16:02 bug#11046: 24.0.94; Customize: M-TAB moves cursor over tag; clicking button moves cursor over button Drew Adams
2012-03-20 17:48 ` Eli Zaretskii
2012-09-17  0:07   ` Drew Adams
2019-09-30 16:08 ` Mauro Aranda
2019-10-01 12:33   ` Lars Ingebrigtsen [this message]
2019-10-05 13:15     ` Mauro Aranda
2019-10-07  2:00       ` Lars Ingebrigtsen

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=87zhik7ihj.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=11046@debbugs.gnu.org \
    --cc=maurooaranda@gmail.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).