From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Bj=C3=B6rn?= Lindqvist Newsgroups: gmane.emacs.bugs Subject: bug#67045: No way to control location of .aspell.en.prepl from within Emacs Date: Sat, 11 Nov 2023 17:39:00 +0100 Message-ID: References: <83jzqpy2mi.fsf@gnu.org> <837cmoydx2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1740"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67045@debbugs.gnu.org, Stefan Kangas To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 11 17:39:45 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r1r1M-0000H1-SA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Nov 2023 17:39:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r1r12-000390-TS; Sat, 11 Nov 2023 11:39:24 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r1r10-00038p-VB for bug-gnu-emacs@gnu.org; Sat, 11 Nov 2023 11:39:22 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r1r10-0004tM-Mk for bug-gnu-emacs@gnu.org; Sat, 11 Nov 2023 11:39:22 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r1r1e-00060X-Pu for bug-gnu-emacs@gnu.org; Sat, 11 Nov 2023 11:40:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Bj=C3=B6rn?= Lindqvist Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Nov 2023 16:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67045 X-GNU-PR-Package: emacs Original-Received: via spool by 67045-submit@debbugs.gnu.org id=B67045.169972080123082 (code B ref 67045); Sat, 11 Nov 2023 16:40:02 +0000 Original-Received: (at 67045) by debbugs.gnu.org; 11 Nov 2023 16:40:01 +0000 Original-Received: from localhost ([127.0.0.1]:54378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r1r1c-00060C-M4 for submit@debbugs.gnu.org; Sat, 11 Nov 2023 11:40:01 -0500 Original-Received: from mail-vs1-xe32.google.com ([2607:f8b0:4864:20::e32]:46130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r1r1a-000600-Ud for 67045@debbugs.gnu.org; Sat, 11 Nov 2023 11:39:59 -0500 Original-Received: by mail-vs1-xe32.google.com with SMTP id ada2fe7eead31-460f623392fso552178137.0 for <67045@debbugs.gnu.org>; Sat, 11 Nov 2023 08:39:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699720753; x=1700325553; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=riUlyhTVTWj0TK//u7q/eaRW7JKjveVWbAzZMquHVIA=; b=ZiTk3GsqrD7qVf895Va2apqz5gxVqhRyX85y/TY6c0d2c5pVjJ9JK+2X6B3o9xfU8a PN2eKzuad330L6MOdbeAupXp0jC7GvIp5mnf6BD9t0br7jkMdZPUUND7+9DLKGbzsKrp p9zS5iAkyclx5xvMxXiZA6QzGjLzAfBiWsUdX2ajW/zQM5xCScwOoKxPnaPRbZ/UDvuw K2eiR2PwsowTjMCCHDVH1/LpzI2bCtjfeJ1HzMmSbZGH/yGsqMsThGwZisEGnk4w+ZZv D5Kl2RF3S5GghCUIXlKkmnG0KRFUye02dCg6VtPfxe9pjP293Hm40N6lWaZJ2ufuddHS A1CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699720753; x=1700325553; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=riUlyhTVTWj0TK//u7q/eaRW7JKjveVWbAzZMquHVIA=; b=Xk1BdmMgIDEjkiArVjEDDZLij7t95ei1w77bDbtIIjh6se/4gOMiS/QdMwQa5WVSw2 CXCP+AEsp1lWnMx2Phy+cXBqYTUYRObamSwJ/l+v1t81xoeATcPDbb3OmoGSBT3Ase70 pbV17Wv7PKYxD4bgtrUlVlor728STBSCIU6aLlnjrScvbb4dG46r8TEldbhqktsm/6Ii BL48OrIyyp2oqBB6TpRUcnhRumvcS/sJ2ZmhCAPJAinyGx86ul1cjL3awcaYwpP6CPpT rSzD85ZUZ943rjLaLynnif9hIYPSCu88GL9k9pMAvu2s6/LVxhMeujE1YIKN/ON2pAtj JEjw== X-Gm-Message-State: AOJu0YxGZR4mVOXbghZ8ZMh0rc9/wXmfu11ePXeXvq9i/SKstdkkRjEc pq+G1h2hbchvOsg8K8kafZMxfMQQhD40hxttXmw= X-Google-Smtp-Source: AGHT+IGrmpCik+n5wZAgy25M7F68Aygjz9pb9Z4CA+bXXWMh0qgf+Nnng/re3Cn8Nw9FdIn/1gy4xYckPHTUxFnvp4I= X-Received: by 2002:a05:6102:1494:b0:45e:fe82:1d14 with SMTP id d20-20020a056102149400b0045efe821d14mr3061021vsv.7.1699720752728; Sat, 11 Nov 2023 08:39:12 -0800 (PST) In-Reply-To: <837cmoydx2.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:274166 Archived-At: I care little about what speller backend Emacs uses. I just want it to follow the XDG (which I think it should do by default because dumping dotfiles in ~/ is for neanderthals, but that's a different story). Getting it to work was very difficult especially as I'm often switching between languages. Here is part of my setup: (defun set-language (code name) (let* ((dir (expand-file-name "~/.config/aspell/")) (pd (concat dir code ".pws")) (rd (concat dir code ".prepl"))) (make-directory dir t) (setq ispell-personal-dictionary pd) (setq ispell-extra-args (list "--repl" rd))) (ispell-change-dictionary code) (flyspell-buffer) (message (format "Switched to %s" name))) (setq flyspell-issue-message-flag nil) (add-hook 'text-mode-hook 'flyspell-mode) (add-hook 'flyspell-mode-hook (lambda () (set-language "en" "English"))) I also have keybindings setup to quickly restart aspell because having one buffer spell-checked in one language and another buffer in a different language is not supported. I would be happier if I could write: (setq ispell-personal-directory "~/.config/aspell") and have ispell understand that it should dump all user configuration files to that directory. Den l=C3=B6r 11 nov. 2023 kl 07:58 skrev Eli Zaretskii : > > > From: Bj=C3=B6rn Lindqvist > > Date: Fri, 10 Nov 2023 22:33:17 +0100 > > Cc: 67045@debbugs.gnu.org > > > > > Can't you customize ispell-extra-args? In addition, > > > ispell-dictionary-alist supports language-specific options, AFAIK. > > > > I didn't know about that variable and it's not in the manual afaics. I > > managed to piece some elisp together using it to set the --repl > > option. It works, though I don't think it is a very user-friendly > > solution. > > Why do you consider it not a user-friendly solution? There's no limit > to command-line options a speller can have, so it is not reasonable > IMO to expect Emacs to have a separate variable for each one of them. > Thus, our solution to have a single variable that can hold any > additional options is a reasonable compromise. > > As for its discoverability: in general, when you are faced with a > problem in some Emacs Lisp package, my advice is first to see whether > a solution already exists by browsing all the defcustom's of that > package (and its parent packages, if that is appropriate). One way of > doing that is by using "M-x customize-group" bu giving it the group of > the package. > > Stefan, WDYT? --=20 mvh/best regards Bj=C3=B6rn Lindqvist