From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: No Wayman Newsgroups: gmane.emacs.bugs Subject: bug#69312: 30.0.50; [WISHLIST] dicitionary buffer should retain search information Date: Sun, 03 Mar 2024 12:16:42 -0500 Message-ID: <87jzmjtev9.fsf@gmail.com> References: <87v86gbaxp.fsf@gmail.com> <86zfvrwxgh.fsf@mail.linkov.net> <87frxjkxlt.fsf@gmail.com> <86cyslep8p.fsf@mail.linkov.net> <8734thfarx.fsf@gmail.com> <86o7c513ep.fsf@mail.linkov.net> <86v864sfpk.fsf@mail.linkov.net> <87plwcqe8i.fsf@gmail.com> <86cysbrbw6.fsf@mail.linkov.net> <86r0grntey.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22755"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.0; emacs 30.0.50 Cc: 69312@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 03 18:17:48 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 1rgpTA-0005fm-E1 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 Mar 2024 18:17:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rgpT0-0000xx-8Y; Sun, 03 Mar 2024 12:17:38 -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 1rgpSv-0000mE-6W for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2024 12:17:33 -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 1rgpSu-0007Jm-UA for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2024 12:17:32 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rgpTN-0001BY-Vc for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2024 12:18:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: No Wayman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Mar 2024 17:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69312 X-GNU-PR-Package: emacs Original-Received: via spool by 69312-submit@debbugs.gnu.org id=B69312.17094862604523 (code B ref 69312); Sun, 03 Mar 2024 17:18:01 +0000 Original-Received: (at 69312) by debbugs.gnu.org; 3 Mar 2024 17:17:40 +0000 Original-Received: from localhost ([127.0.0.1]:41217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rgpT2-0001As-3X for submit@debbugs.gnu.org; Sun, 03 Mar 2024 12:17:40 -0500 Original-Received: from mail-oo1-f41.google.com ([209.85.161.41]:52479) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rgpSz-0001AZ-So for 69312@debbugs.gnu.org; Sun, 03 Mar 2024 12:17:38 -0500 Original-Received: by mail-oo1-f41.google.com with SMTP id 006d021491bc7-5a136ac89b3so121805eaf.0 for <69312@debbugs.gnu.org>; Sun, 03 Mar 2024 09:17:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709486163; x=1710090963; darn=debbugs.gnu.org; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=m2lgKZETI26Ei8lPfnhRXX7n0CRa8EwxtuMkKTM2eY8=; b=D0+x13gaLHgF8Y10Ynx8sjfjPrPq42u6xN5gSkVbmobTye3S6nT3gbWEEtEIwB986T h6/j3zb5Ix7NmeHdOxFMGomchBoUHjnleWkYcTUHukY0hlf0adIIJfY6VU/4DYMUGkBp +GSx0PJdBDYImnbLhLE8Q3MWXu5oo2EJ+SXPTd7td1WkgC6PwGOOD3DLcsI+22I7FswC fQxauarcBn7r+lvjGLNmE0tfGNpddeFm7LtJO1Ldr82luI/bv3GFciPNNM9qfgndjcjf XmdnwYN3b9S1SgHM5mRGynMcW+1+p3YU36EzNboIl92UPdjLTODgJaIWntguuXefnt8R BSwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709486163; x=1710090963; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=m2lgKZETI26Ei8lPfnhRXX7n0CRa8EwxtuMkKTM2eY8=; b=hB4m7RKY4ahZQdynpfCzQhXwTDeSsCvEbz9SGuCmRu+bQ8J6hr5veX43UH+fQAC7o5 XWLmXc+EHllEV3lB4KZyp+Aui7OVHWEJvm6G2a8/TcWywVkXX0Yz+QvdK4Mij9nb8kv9 /qnlVPjNim1eFnDJAxDxzpJJht63SLZJKCcZ3H1VKvp6NtxCJHjBmg3KjUlHkreZVhZ+ Fxp3QNMhG9/yOO+BHNuf4WLjoEPiqTFeQ7j8jaQZ9rkf0GAJk8Iu2yT9dr26n5Aq25o1 4EBcAeVAMaYYX+PqoHjA+mW/Xo70MB+TcAG1Q4ZWHQbmggvGemtEhq9X9RQ+cjWshPXn +5uQ== X-Gm-Message-State: AOJu0YxVMPtrCcH9vD9gc9mMPGNg8YFr3aZ7/fkCk2+/4V5oWMQduaHa OAtn1mIGpbFfxThWvmvjLA8w56K/DS/z34EBN/P2oGr+Czi6SNYGIteJzTs6 X-Google-Smtp-Source: AGHT+IEhPr5qAYjC61I6vX0ifnVHVdvHEjmLUl/k7DvlbrFg/Z/+aBlHzTQLJxckkZSUhS/KXGmQeA== X-Received: by 2002:a05:6358:3a03:b0:17b:bd6e:22c9 with SMTP id g3-20020a0563583a0300b0017bbd6e22c9mr9146392rwe.8.1709486162637; Sun, 03 Mar 2024 09:16:02 -0800 (PST) Original-Received: from laptop ([2601:84:847f:c697:e217:2894:4724:14f4]) by smtp.gmail.com with ESMTPSA id mf15-20020a0562145d8f00b0068cc0b46682sm4254596qvb.4.2024.03.03.09.16.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 09:16:02 -0800 (PST) In-Reply-To: <86r0grntey.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 03 Mar 2024 18:59:01 +0200") 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:280952 Archived-At: Juri Linkov writes: > close 69312 30.0.50 > thanks > >>>> This won't work. The buffer is in read-only mode, but even if >>>> that is >>>> inhibited, >>>> the string is overwritten by the call to the display function >>>> at the end: >>> >>>> (funcall function reply) >>> >>> With it installed, the dictionary-do-matching command is >>> broken. >>> It results in: >>> >>> dictionary-do-matching: Buffer is read-only: #>> *Dictionary*> >> >> Please provide a test case to reproduce the issue that you see. > > Never mind, I see now what is missing. So this is fixed now. > Thanks for the bug report. To clarify the issue: (defun dictionary-do-matching (word dictionary strategy function) "Search for WORD with STRATEGY in DICTIONARY and display them with FUNCTION." ;;This insertion is thrown away... (insert (format-message "Lookup matching words for `%s' in `%s' using `%s'\n" word dictionary strategy)) ;; [OMITTED FUNCTION BODY] ;; ...when this display function is called (funcall function reply)))