From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: mthesaur v synonyms Date: Thu, 9 Aug 2007 08:38:35 -0700 Message-ID: References: <7jejic28rx.fsf@news.ubuntu.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1186674084 24139 80.91.229.12 (9 Aug 2007 15:41:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Aug 2007 15:41:24 +0000 (UTC) To: "Hadron" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 09 17:41:17 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IJA8Q-0005er-U5 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Aug 2007 17:41:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IJA8Q-0003IH-BS for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Aug 2007 11:41:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IJA8B-0003HK-1N for help-gnu-emacs@gnu.org; Thu, 09 Aug 2007 11:40:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IJA8A-0003GN-4q for help-gnu-emacs@gnu.org; Thu, 09 Aug 2007 11:40:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IJA8A-0003GD-0z for help-gnu-emacs@gnu.org; Thu, 09 Aug 2007 11:40:58 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IJA89-00033F-Ki for help-gnu-emacs@gnu.org; Thu, 09 Aug 2007 11:40:57 -0400 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id l79FduUu009354; Thu, 9 Aug 2007 09:39:56 -0600 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id l79CxMv1030211; Thu, 9 Aug 2007 09:39:56 -0600 Original-Received: from dhcp-4op11-4op12-west-130-35-178-179.us.oracle.com by acsmt350.oracle.com with ESMTP id 3109066841186673920; Thu, 09 Aug 2007 08:38:40 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <7jejic28rx.fsf@news.ubuntu.home> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-Detected-Kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:46440 Archived-At: > 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