From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#6539: ispell-complete-word looks for wrong file (at least on w32) Date: Mon, 5 Jul 2010 19:32:33 +0200 Message-ID: References: <20100630103826.GA3847@agmartin.aq.upm.es> <20100630122747.GA20074@agmartin.aq.upm.es> <836310bezc.fsf@gnu.org> <20100705115222.GA2013@agmartin.aq.upm.es> <83mxu59716.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1278353647 2445 80.91.229.12 (5 Jul 2010 18:14:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 5 Jul 2010 18:14:07 +0000 (UTC) Cc: Agustin Martin , 6539@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 05 20:14:05 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OVqBA-0000U7-96 for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Jul 2010 20:14:04 +0200 Original-Received: from localhost ([127.0.0.1]:42969 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OVqB9-0002gF-GI for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Jul 2010 14:14:03 -0400 Original-Received: from [140.186.70.92] (port=57742 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OVqAW-0002JT-0m for bug-gnu-emacs@gnu.org; Mon, 05 Jul 2010 14:13:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OVpxM-0002ps-2G for bug-gnu-emacs@gnu.org; Mon, 05 Jul 2010 13:59:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46355) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OVpxL-0002pn-Va for bug-gnu-emacs@gnu.org; Mon, 05 Jul 2010 13:59:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OVpXS-0004qL-7q; Mon, 05 Jul 2010 13:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Jul 2010 17:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6539 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6539-submit@debbugs.gnu.org id=B6539.127835118018611 (code B ref 6539); Mon, 05 Jul 2010 17:33:02 +0000 Original-Received: (at 6539) by debbugs.gnu.org; 5 Jul 2010 17:33:00 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OVpXQ-0004q8-Bl for submit@debbugs.gnu.org; Mon, 05 Jul 2010 13:33:00 -0400 Original-Received: from mail-ew0-f44.google.com ([209.85.215.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OVpXO-0004q1-CH for 6539@debbugs.gnu.org; Mon, 05 Jul 2010 13:32:58 -0400 Original-Received: by ewy22 with SMTP id 22so1617435ewy.3 for <6539@debbugs.gnu.org>; Mon, 05 Jul 2010 10:32:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=K3uSxozoUeyURn/MiQ83MPb2JpGuthKQoxaqrEZcfRk=; b=Gh86ajx+cBX4Pqh6jedAI+iXtv9WEnzybgQy54xZTlAmUzpp3JvMrBJx/jP8MRtdTd VLlD7u61x1lHRinHX6CKA2cZJpnCKDUvVycsjsaarBD19izIg+px7g7ZhiIXwNVcCGav yZlOGyJr/oc0TK4yOBdDIFCiUws60hLUFmrsE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=CR6ckpg5QW6ytqVUEgUYwYrxS1cjAw8gQ1dauEhmLHA4xOjSD2H+nh/eI2J+toTt2p F+eLGZ2GsSlW5XjwmgNVqHMM36e4OAvp7+Bdoog7+mO4Ne6OPheH9nleqs7Hh9buE3BI 6FfH9EvF6io0Rvtxo/JCpDuWmdlXkCtTHIk0M= Original-Received: by 10.213.16.140 with SMTP id o12mr779876eba.20.1278351173269; Mon, 05 Jul 2010 10:32:53 -0700 (PDT) Original-Received: by 10.213.15.132 with HTTP; Mon, 5 Jul 2010 10:32:33 -0700 (PDT) In-Reply-To: <83mxu59716.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 05 Jul 2010 13:33:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:38244 Archived-At: On Mon, Jul 5, 2010 at 7:23 PM, Eli Zaretskii wrote: >> Date: Mon, 5 Jul 2010 13:52:22 +0200 >> From: Agustin Martin >> Cc: >> >> However, docstrings and error handling for this complete-word stuff need= s >> to be improved, so it provides useful and accurate information. I am >> currently trying something like attached patch where >> `ispell-alternate-dictionary' is set to nil if no default is found and >> checked before use. I find error message too long, but better that befor= e. >> As usually, suggestions are welcome. > > For the error message, just put 2 spaces between the sentences, as we > do everywhere in Emacs. > > For the rest, the patch looks fine, but why not test /usr/dict/words > with file-readable-p as well? =C2=A0Then, if it does not exist, the > defcustom will evaluate to nil, and the error message will be even > more to the point. Such a test will make things even worse with unix style file names on w32 since they with these paths Emacs will look on the current drive. That does not have to be the same drive next time the library is loaded.