From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Steven Allen via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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 12:36:00 -0800 Message-ID: <875xocpdxr.fsf@stebalien.com> References: <878qt8pik7.fsf@stebalien.com> <86sergihd5.fsf@gnu.org> Reply-To: Steven Allen Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18719"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74511@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 24 21:37:19 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 1tFJM6-0004hC-Oq for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Nov 2024 21:37:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFJLr-0005VK-LF; Sun, 24 Nov 2024 15:37:03 -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 1tFJLq-0005VC-LQ for bug-gnu-emacs@gnu.org; Sun, 24 Nov 2024 15:37:02 -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 1tFJLq-0002Pz-Cu for bug-gnu-emacs@gnu.org; Sun, 24 Nov 2024 15:37:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=M+mdUe9FIAXFhKrIvti26hEgX2nr8/EZaySnwppLV04=; b=L06oebbPS9eWGi4nT7HdXB18Y8Luti1quZDJnu/OBvXioDlaeMz1Wt03MpitDIKpFQ1Xx105Lfl+R1Xr4VRuLHLlBk89fq/n9p80zAPwl8B9bJRCRWQnqEQj7vSvPbJXTK1LZu8M9UAEhkjy6EXUaXtYCQsWrvKJI5fvJDaIYjieR8UGR8c8cvJbuoD0x0CJNA98+D53/zrnAVHu0goO9NRo1e/Hz5ViGnnu/rS8ALTcsKoD/Ef6mqeK0iukXrMvfFnD289p0SpgQgCIh06lSLB2RWKxLCxGz+EOVPpvndHg5kWPR7z5BFWm6XzHc0vIztDzP6aXH3BOBJmSiU2dMQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tFJLq-0001ug-79 for bug-gnu-emacs@gnu.org; Sun, 24 Nov 2024 15:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Steven Allen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Nov 2024 20:37: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.17324805707264 (code B ref 74511); Sun, 24 Nov 2024 20:37:02 +0000 Original-Received: (at 74511) by debbugs.gnu.org; 24 Nov 2024 20:36:10 +0000 Original-Received: from localhost ([127.0.0.1]:36247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFJKz-0001t6-Rw for submit@debbugs.gnu.org; Sun, 24 Nov 2024 15:36:10 -0500 Original-Received: from fout-a7-smtp.messagingengine.com ([103.168.172.150]:55711) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFJKx-0001sq-Gt for 74511@debbugs.gnu.org; Sun, 24 Nov 2024 15:36:08 -0500 Original-Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfout.phl.internal (Postfix) with ESMTP id 6DB3213800F0; Sun, 24 Nov 2024 15:36:02 -0500 (EST) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Sun, 24 Nov 2024 15:36:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stebalien.com; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm3; t=1732480562; x= 1732566962; bh=M+mdUe9FIAXFhKrIvti26hEgX2nr8/EZaySnwppLV04=; b=s w7ju7wUXsSvBueOSC0jptFf/HNwSIOm1NzmGc2Te8IN0GbSjvl7vHGtlnn6En9tQ Hpyk/350ktsW4D2GWTQhMrJg/uyy5XXn1AxHec1cTxIrU/2ZbJY1IoM7DNl9izpa eZR3JRmSeejCVE+qkEcFs+tiUI4t+FAJgA+kb2j/xGamAmhB+T6mTTJSak1O5oRJ arGneeokBwa/YQg5QsYDBrx6A3J4kn+qqsWkDiB062S3ZGho/4Qaf4Ki+AH3f1n0 JO7fCWgpdttZsgnAxGUlVqMCaE5Anf9Z0RFcGASBEvl/uKjWnBy7qvRkH/Ljqtpk ilexYS3znnne96QzJ7zmA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1732480562; x=1732566962; bh=M+mdUe9FIAXFhKrIvti26hEgX2nr8/EZayS nwppLV04=; b=GTwv1V5xcs0UzBcH6lko0aWvn82J6ZM1IJuSZ3wmienU7w19Gwm SC2HtLrekPmC1MGda2y08ErkOYou9x5IOizXCzjM8hUn2lzvujHgZ67VpzCxhThb l/Nt/3JNQTeEHZpoE/LMeaLHfHATTFao8rNxlq6cslQhNzv8TpyI7fMtTge53jTD lIYfuglaErqwJrn+SOWSpILc2oMoseXdx+lR2aZeU6gD4lRamIEGfbtUNXfoZ3jO EjNtcmCb07pkryu0+HtYdt9s0jhzQwf3jGCYpXUrWVIGTLikHTMCdIGV3nO1E/EA EQVfZo6QbiYq+0fSgkhIx+Ca46jOeXBl6oA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrgeefgddufeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefujghffffkgggtsehttdertddttddtnecu hfhrohhmpefuthgvvhgvnhcutehllhgvnhcuoehsthgvvhgvnhesshhtvggsrghlihgvnh drtghomheqnecuggftrfgrthhtvghrnhepvdekheekgeelheehgefgudelkeethffhgfeu ffetkeegtddvfeduuddttdejjedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepshhtvghvvghnsehsthgvsggrlhhivghnrdgtohhmpdhnsggp rhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegvlhhiiiesgh hnuhdrohhrghdprhgtphhtthhopeejgeehudduseguvggssghughhsrdhgnhhurdhorhhg X-ME-Proxy: Feedback-ID: ie8a146a7:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 24 Nov 2024 15:36:01 -0500 (EST) In-Reply-To: <86sergihd5.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:295920 Archived-At: Eli Zaretskii writes: >> 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. In addition to dictionary-search-interface, there are three separately customizable variables: - dictionary-display-definition-function - dictionary-read-word-function - dictionary-read-dictionary-function I'd expect dictionary-search-interface to override the defaults for these variables, but I wouldn't expect it to completely clobber any user customizations of said variables. If these variables cannot be customized, I'd expect them to be "defvar" not "defcustom". Although that would be rather unfortunate because, while I want to enable minibuffer completion for words/dictionaries, I'd also like to use the real dictionary mode (not the help buffer). Adding ":initialize 'custom-initialize-changed" to dictionary-search-interface would make it possible to specify either dictionary-search-interface or any of the other variables (but not both at the same time).