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?Andr=C3=A9?= A. Gomes Newsgroups: gmane.emacs.bugs Subject: bug#52331: M-$ doesn't respect subword mode Date: Mon, 06 Dec 2021 16:34:43 +0000 Message-ID: <87sfv5y9ng.fsf@gmail.com> References: 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="8784"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cc: 52331@debbugs.gnu.org To: Paul Pogonyshev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 06 17:35:19 2021 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 1muGxS-00020h-CX for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Dec 2021 17:35:18 +0100 Original-Received: from localhost ([::1]:54314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1muGxP-0001MY-Ft for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Dec 2021 11:35:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muGxC-0001MO-AV for bug-gnu-emacs@gnu.org; Mon, 06 Dec 2021 11:35:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51889) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1muGxC-0005Ob-1P for bug-gnu-emacs@gnu.org; Mon, 06 Dec 2021 11:35:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1muGxB-0007z7-QZ for bug-gnu-emacs@gnu.org; Mon, 06 Dec 2021 11:35:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Andr=C3=A9?= A. Gomes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Dec 2021 16:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52331 X-GNU-PR-Package: emacs Original-Received: via spool by 52331-submit@debbugs.gnu.org id=B52331.163880849230671 (code B ref 52331); Mon, 06 Dec 2021 16:35:01 +0000 Original-Received: (at 52331) by debbugs.gnu.org; 6 Dec 2021 16:34:52 +0000 Original-Received: from localhost ([127.0.0.1]:35202 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muGx2-0007yd-8m for submit@debbugs.gnu.org; Mon, 06 Dec 2021 11:34:52 -0500 Original-Received: from mail-wm1-f51.google.com ([209.85.128.51]:43869) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muGx0-0007yO-S8 for 52331@debbugs.gnu.org; Mon, 06 Dec 2021 11:34:51 -0500 Original-Received: by mail-wm1-f51.google.com with SMTP id o19-20020a1c7513000000b0033a93202467so264836wmc.2 for <52331@debbugs.gnu.org>; Mon, 06 Dec 2021 08:34:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=TrJsTr2LwC6dPReSJjUetxO/6g9lxLTeXyupAsOMtJw=; b=nzTpD82m8X3N/szf9BCC5l68QlnqEiyYqAnIhJyokjsGfC1TgaF5Wr8FGlxPA3jAiC woTkpbyuK9hnTEY+X21P7eYlyFGXt+3z12gMySr6FcyTLmhS9gyKhEXcVpZlnYt566KW qZRv4LLFyhf2V1bNHLnH2UQwYBOFOmjl/mohYm5BiWp+Zkgw9XV+jntxO7n8+7XKomDM nw1tKM4t9q0Nhlpdjm1/fW6ybhPuEoQZdtQC8HrMgREBUEqyIbpvWzlvdf+/4ZfMpqq2 QkCgHW0u7nh9lcZpg2XxSLTWpShedfzL2mJzB1KHVWax5P/woqUfjWGxsSyXvlMQRo55 Tjig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=TrJsTr2LwC6dPReSJjUetxO/6g9lxLTeXyupAsOMtJw=; b=hZGBfMUeT0kBw0PBpu6Sn+C+7CCZGNohdYSqxmkZKiATLLQdlHhFfpr+LRvsbb+PPX SFHp8wJS3YE8CNuxsBuj6xFirB9xiHY5iUb6jRLxWhg6CTKo70n6obanOMUGO5cJG2Xz Na65dFj52ekD1hqYyGNcrTNIhziVev2w57sPUpXoyGiI1F1cfBp4QwunoK05P3wJTDKD CsNKj0gZQ7ifhMvGnuIqd9tcw2dnXWpmMG0A4NdOv8hVVBJ4OLGRQJWs7ZpswqDJ/BBu qvWUrn7Lobjs0d3nzGnicOM7rKgQOQth2Ekl+KTAP3IY6qf+yuuRs+9xQUxxqlGB2pbW ncfg== X-Gm-Message-State: AOAM532rGG+aEzar7eqxEjbdbfYNZJML3mLTgDDiwrX6tFNZ0WpbTVT5 hIt7HK+fogWQha5GxBJ/UH7AbJBHyt8= X-Google-Smtp-Source: ABdhPJwbbTxXXR8rJBkf+hdoeoQ3hJ10nwb8uF++l6UY9JQnkjHZp0BIMmO49Lkum9tQfTFIf2iEWQ== X-Received: by 2002:a1c:f416:: with SMTP id z22mr40437401wma.121.1638808485225; Mon, 06 Dec 2021 08:34:45 -0800 (PST) Original-Received: from guix-xps13 ([2001:818:daa9:6700:462d:384e:6de8:4a1c]) by smtp.gmail.com with ESMTPSA id j134sm11904948wmj.3.2021.12.06.08.34.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Dec 2021 08:34:44 -0800 (PST) In-Reply-To: (Paul Pogonyshev's message of "Mon, 6 Dec 2021 16:09:49 +0100") 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" Xref: news.gmane.io gmane.emacs.bugs:221760 Archived-At: Paul Pogonyshev writes: > To reproduce: > > $ emacs --batch --eval "(global-subword-mode)" --eval "(insert > \"getBanana\")" --eval "(ispell-word)" > > Expected output: > ... > BANANA is correct > > Expected output: > ... > Checking spelling of GETBANANA...=20 Thank you for the bug report. There's only one speller checker that handles camelCase (AFAIK), which is aspell since 0.60.8. If you're using it, then you can add the following to your init file: (setq ispell-extra-args '("--camel-case")) However, and the Emacs maintainers will probably agree, the responsibility of sending the "right" word to the ispell sub-process should be on Emacs' side. I.e., when subword-mode is on, there should be a call to word-at-point before sending it to the spell checker. --=20 Andr=C3=A9 A. Gomes "Free Thought, Free World"