From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74511: 31.0.50; `dictionary-search-interface' overrides the user's customization of `dictionary-read-word-function' Date: Sun, 24 Nov 2024 21:03:50 +0200 Message-ID: <86sergihd5.fsf@gnu.org> References: <878qt8pik7.fsf@stebalien.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14916"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74511@debbugs.gnu.org To: Steven Allen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 24 20:05:24 2024 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 1tFHvA-0003k8-3b for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Nov 2024 20:05:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFHuu-0007P2-Ql; Sun, 24 Nov 2024 14:05:08 -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 1tFHus-0007Mm-CF for bug-gnu-emacs@gnu.org; Sun, 24 Nov 2024 14:05:07 -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 1tFHup-0000j2-U7 for bug-gnu-emacs@gnu.org; Sun, 24 Nov 2024 14:05:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=g7Ua5+J/P/gEB+PkQce9G8rcZWYHjTzhStjqfneD+Jc=; b=s2cZxY3rvkyuKDL7Ce7SDu9mzNX3DBkkwXvyzckhQsLs1TkJb4031ejmYlaC630iKyk2XV3+XDOM8N0xObHHErQdIytBg9oTprnlcCqsbPd7Ad8GQMGwphDDZxmGeeWp+SNOI/Zq1Aok0XTc9mNx2OLynuEK1CZFQJ42u6ZmwJghDZjTvAo9pfieNmyZvuTwtZVDmyCZN5Xg6NUb7zRNDAZGvchKx44Ua8NA8e1ZR+aoBs+V+UnnB2wf1F1HFVdKZELC2/YG1guH2/Tlk4B5plJBFCwcZ5kwRvQtP1KgV0xjq4EPf6Oh0Ju0PQxUSeEv1NZb4ay//vVXaU9hg53dSg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tFHuo-0005gD-Ce for bug-gnu-emacs@gnu.org; Sun, 24 Nov 2024 14:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Nov 2024 19:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74511 X-GNU-PR-Package: emacs Original-Received: via spool by 74511-submit@debbugs.gnu.org id=B74511.173247505821769 (code B ref 74511); Sun, 24 Nov 2024 19:05:02 +0000 Original-Received: (at 74511) by debbugs.gnu.org; 24 Nov 2024 19:04:18 +0000 Original-Received: from localhost ([127.0.0.1]:36058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFHu6-0005f3-15 for submit@debbugs.gnu.org; Sun, 24 Nov 2024 14:04:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFHu3-0005ep-R4 for 74511@debbugs.gnu.org; Sun, 24 Nov 2024 14:04:16 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tFHtx-0000c4-Cc; Sun, 24 Nov 2024 14:04:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=g7Ua5+J/P/gEB+PkQce9G8rcZWYHjTzhStjqfneD+Jc=; b=r4bdEoJKAME/ KsrZUzX/4PrXC58YDDFizEP0/1iWLw0VTasfBn2yZ990WI5pVafihX0JUOveBsDzaOR/7pYRE2CyJ Xj1LvDntUVDF4h8wlmJL7Z2PFu/e+Td0ip7WJmhMKzghwLfwsRTWIO7u/AEjL/EO1Z34c/QCo0Jqd eGTcgXdbiiKEBfTF4FybC3VsrzQ1Sdwn2og9gUsLYSB21QU9fUpMnBNHJONKrLf6CgIiE4elucJAH TpAXGBrVQFugEjacExmkTmTuE8k8BDby2eKxiKD1ZasPvhQrexYCBytbabj6w/VDfDHLMw/N2F2pK 7bT9jsqxL7tWo10LEDHzrw==; In-Reply-To: <878qt8pik7.fsf@stebalien.com> (bug-gnu-emacs@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:295918 Archived-At: > Date: Sun, 24 Nov 2024 10:56:08 -0800 > From: Steven Allen via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > > If the user customizes `dictionary-read-word-function' then loads the > dictionary package, the value of `dictionary-read-word-function' will be > overridden when `dictionary-search-interface' is loaded. To reproduce: > > 1. Run emacs with `emacs -Q`. > 2. Open a scratch buffer and evaluate the following: > > (setopt dictionary-read-word-function 'dictionary-completing-read-word) > (require 'dictionary) > (message "%S" dictionary-read-word-function) > > I'd expect `dictionary-read-word-function' to be > `dictionary-completing-read-word' but instead it gets reset back to the > default, `dictionary-read-dictionary-default'. I can work around this by > calling `setopt' after loading the `dictionary' package, but ideally > that wouldn't be necessary. You are supposed to customize dictionary-search-interface if you want this mode of operation.