help-gnu-emacs
[Top][All Lists]
Advanced

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

RE: mthesaur v synonyms


From: Drew Adams
Subject: RE: mthesaur v synonyms
Date: Thu, 9 Aug 2007 08:38:35 -0700

> Does anyone have an opinion on what is better?
>
> http://www.emacswiki.org/cgi-bin/wiki/mthesaur.el
> http://www.emacswiki.org/cgi-bin/wiki/synonyms.el

Yes, synonyms.el ;-).

> The second is based on the first. The second seems to be "newer"
> and has a cache so I am going with that for now.
>
> Does anyone have a patch to enable the command synonyms to show the
> word-at-point in the command buffer when I call it using a kbd binding?
> (It does assume the word at point but just doesn't show it in the
> prompt).

Not sure what you mean by "in the command buffer". If you mean the
minibuffer, then just use `M-n' to pull the default value, which is the word
at point, into the minibuffer as your input. Edit it if you like, before
hitting RET.

If you also use Icicles, and you want the default value to _always_ be
inserted in the minibuffer as the initial input, then customize
`icicle-init-value-flag' to `insert'. I personally prefer that behavior, but
I think most people do not.

If you also use thingatpt+.el, then `synonyms' will pick up the word nearest
point as the default value - the cursor need not be exactly on a word.

FWIW - Some vanilla Emacs prompts include the default value in the prompt -
e.g. "(default: foobar)". I do not follow that convention in my code. 1) The
default value is always available anyway as input via `M-n'. 2) I personally
always have the default value inserted as the initial input
(`icicle-init-value-flag' = `insert').

Wrt #2: I prefer to have the value available immediately as editable input.
Rather than waste prompt space, I use the input space - I can always empty
the minibuffer (via `M-k' in Icicles) if I don't want to use the default
value. In sum, I prefer to have to hit a key (`M-k') to get rid of an
unwanted default value, rather than to have to hit a key (`M-n') to retrieve
the default value. This is because I use the default value (possibly editing
it) most of the time.

HTH - Drew






reply via email to

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