From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: bug#25107: Acknowledgement (Patches to clean up ispell.el) Date: Tue, 6 Dec 2016 16:20:24 +0000 Message-ID: References: <8360mxjbti.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c1a0ba023ee5e0542ffc86e X-Trace: blaine.gmane.org 1481041282 16143 195.159.176.226 (6 Dec 2016 16:21:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 6 Dec 2016 16:21:22 +0000 (UTC) Cc: 25107@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 06 17:21:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEIUS-0002fC-7H for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Dec 2016 17:21:12 +0100 Original-Received: from localhost ([::1]:33057 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEIUW-00006B-6e for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Dec 2016 11:21:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEIUL-0008W3-H8 for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2016 11:21:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEIUI-0000fL-C0 for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2016 11:21:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43024) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cEIUI-0000eq-4C for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2016 11:21:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cEIUH-0000z7-TR for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2016 11:21:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Dec 2016 16:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25107 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 25107-submit@debbugs.gnu.org id=B25107.14810412333727 (code B ref 25107); Tue, 06 Dec 2016 16:21:01 +0000 Original-Received: (at 25107) by debbugs.gnu.org; 6 Dec 2016 16:20:33 +0000 Original-Received: from localhost ([127.0.0.1]:58423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEITp-0000y3-9R for submit@debbugs.gnu.org; Tue, 06 Dec 2016 11:20:33 -0500 Original-Received: from mail-wj0-f181.google.com ([209.85.210.181]:34950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEITn-0000xp-67 for 25107@debbugs.gnu.org; Tue, 06 Dec 2016 11:20:31 -0500 Original-Received: by mail-wj0-f181.google.com with SMTP id v7so327575458wjy.2 for <25107@debbugs.gnu.org>; Tue, 06 Dec 2016 08:20:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=bEreM+JBKhzndiOVK4DjMP8BGuY/NxLSItLvA6RZwBo=; b=zjDfHYuMGt94AMS5pDBqcgbyCi8vLt/jXjiqaLryBxnO6JufWR8Yp+97BKaG5zRy0K L3xiFlGN08aghqKdySuPwwdeH9EBUZ6yG8RD92zr3y/P/HN0c3sdpnfxJxRq2pIzHOlX QnutetIYjoA5hYSITeg1IvpXuFfmsW2OkiglU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=bEreM+JBKhzndiOVK4DjMP8BGuY/NxLSItLvA6RZwBo=; b=SxtjO7yUh/tg/nlYhdegnkR7ytP0xvfr1LK5tJMVRJY3tL3Iu8TWDUkMjsnOVkJF4+ IpmTwuzjMGoiSvjhq7XlhWBKyJsDMJnzLXndyvgZ65tog+C6I+dUjAf3hA40y0gvtkjM c5/2ZRoY9biynUzVgaAwxXsbe0GY4ThoyrPEo32s8O8tzSGp+PM4XtVtxQAH9lUnKw5T yVWUY57kpVHZkqftyQG0HvOsGU9pPdSVMiOxM4ruMDy7yh89c8QmIIT7In3cIE9eHYYe KNuBBELsjQ2D3mjZxsr6X82CB8d1uGyKel6aC51nsW+K9Fbm861i9D9qudfzgNQaVnjb MeEg== X-Gm-Message-State: AKaTC00dhL6M4uY5P1+Fhb/t+TLJ4TH7XTLzkTHqFU5r03ClOTLavOo+vI5dYRER7ZPJDMPbNKy29BIuTBYVnjrW X-Received: by 10.25.200.197 with SMTP id y188mr23783751lff.132.1481041225437; Tue, 06 Dec 2016 08:20:25 -0800 (PST) Original-Received: by 10.25.190.2 with HTTP; Tue, 6 Dec 2016 08:20:24 -0800 (PST) In-Reply-To: <8360mxjbti.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:126562 Archived-At: --94eb2c1a0ba023ee5e0542ffc86e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 6 December 2016 at 15:51, Eli Zaretskii wrote: > > Why is it useful to remove this information? The documentation of the > spell-checkers themselves leaves a lot to be desired, so asking the > users to go consult it might not be appreciated. I'd rather add here > the missing info about the other spellers. > =E2=80=8BEmacs is enough for us to document without trying to document thir= d-party software. Since all the software involved is free, better to fix it directly, and benefit all its users, rather than take on the burden of documenting it in order only to benefit Emacs users. If you can point out specific deficiencies in spellcheckers, I'm quite happy to file suitable documentation patches with them.=E2=80=8B For exampl= e, the man page for hunspell seems clear enough: The default dictionary depends on the locale settings. The following environment variables are searched: LC_ALL, LC_MESSAGES, and LANG. If none are set then the default personal dictionary is $HOME/.hunspell_default. Setting -d or the DICTIONARY environmental variable, personal dictionary will be $HOME/.hunspell_dicname I find the documentation for GNU aspell a little less obvious, as it requires the user to understand: The personal dictionary generally has a filename of the form: .aspell.LANG.pws and put this together with the "home-dir" setting to realise that the default is "~/.aspell.LANG.pws". The documentation for ispell is a bit clearer: If neither the -p switch nor the WORDLIST environment variable is given, ispell will search for a personal dictionary in both the current directory and $HOME, creating one in $HOME if none is found. The preferred name is constructed by appending ".ispell_" to the base name of the hash file. In summary, it seems that a patch to the man page for aspell (as being the first place users are likely to look) would be helpful. If you have other suggestions, I can look into them. > * lisp/textmodes/ispell.el (ispell-version): Since ispell.el is now > > firmly part of Emacs, and the version hasn=E2=80=99t changed since 2003= , and > > isn=E2=80=99t used anywhere, remove it. 3rd-party code can better use = the > > Emacs version, or feature or function checks. > > I agree, but instead of removing the information, how about replacing > it with the Emacs version? Something like "ispell.el from Emacs %s". > The context is an interactive call to ispell-check-version, which reports what version of the spell-checker is being used. If the user wishes to know what version of Emacs they are running, they can check emacs-version. When ispell.el was third-party code, knowing the version of ispell.el separately made sense, e.g. for bug reports. Now, one would use report-emacs-bug, which already includes the Emacs version; ispell-check-version, used interactively, is now primarily useful for diagnosing problems with the external spell-checker. (In general, having a diagnostic report the Emacs version seems redundant unless there's a good reason: for example, if the information is being transmitted outside Emacs, as is the case with report-emacs-bug.) =E2=80=8BAs you ask (and in light of the recent emacs-devel discussion you = copied to me), I'll give others the opportunity to respond before installing anything. --=20 http://rrt.sc3d.org --94eb2c1a0ba023ee5e0542ffc86e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On = 6 December 2016 at 15:51, Eli Zaretskii <eliz@gnu.org> wrote:
=

Why is it useful to remove this information?=C2=A0 The documentation of the=
spell-checkers themselves leaves a lot to be desired, so asking the
users to go consult it might not be appreciated.=C2=A0 I'd rather add h= ere
the missing info about the other spellers.

<= div>
=E2=80=8BEmacs i= s enough for us to document without trying to document third-party software= . Since all the software involved is free, better to fix it directly, and b= enefit all its users, rather than take on the burden of documenting it in o= rder only to benefit Emacs users.

If you can point out specific deficiencies in spellcheckers, I&#= 39;m quite happy to file suitable documentation patches with them.=E2=80=8B= For example, the man page for hunspell seems clear enough:

Th= e default dictionary depends on the locale settings. The following environm= ent variables are searched: LC_ALL, LC_MESSAGES, and LANG. If none are set = then the default personal dictionary is $HOME/.hunspell_default. Setting -d= or =C2=A0the DICTIONARY environmental variable, personal dictionary will b= e $HOME/.hunspell_dicname

I find the documentation for GNU aspell a little less obvious, as it= requires the user to understand:

The personal dictionary generally has a filename of the form:=

= =C2=A0 =C2=A0 =C2=A0.aspell.LANG.pws

=
and put this together with the "hom= e-dir" setting to realise that the default is "~/.aspell.LANG.pws= ".

The documentation for ispell is a bit clearer:

If neither the -p switch nor the WORDLIST environment variable is give= n, ispell will search for a personal dictionary in both the current directo= ry and $HOME, creating one in $HOME if none is found. The preferred name is= constructed by appending ".ispell_" to the base name of the hash= file.


In summary, it seems that= a patch to the man page for aspell (as being the first place users are lik= ely to look) would be helpful. If you have other suggestions, I can look in= to them.
=
> * li= sp/textmodes/ispell.el (ispell-version): Since ispell.el is now
> firmly part of Emacs, and the version hasn=E2=80=99t changed since 200= 3, and
> isn=E2=80=99t used anywhere, remove it.=C2=A0 3rd-party code can bette= r use the
> Emacs version, or feature or function checks.

I agree, but instead of removing the information, how about replacing
it with the Emacs version?=C2=A0 Something like "ispell.el from Emacs = %s".

The context is an interactive call to ispell-chec= k-version, which reports what version of the spell-checker is being used. I= f the user wishes to know what version of Emacs they are running, they can = check emacs-version. When ispell.el was third-party code, knowing the versi= on of ispell.el separately made sense, e.g. for bug reports. Now, one would= use report-emacs-bug, which already includes the Emacs version; ispell-che= ck-version, used interactively, is now primarily useful for diagnosing prob= lems with the external spell-checker. (In general, having a diagnostic repo= rt the Emacs version seems redundant unless there's a good reason: for = example, if the information is being transmitted outside Emacs, as is the c= ase with report-emacs-bug.)

=E2=80=8BAs you ask (and in li= ght of the recent emacs-devel discussion you copied to me), I'll give o= thers the opportunity to respond before installing anything.

--
--94eb2c1a0ba023ee5e0542ffc86e--